/* ==========================================================================
   The Seeds — design system
   Terra, papel e o verde do logótipo. Fraunces (display) + Geist (texto).
   Motion: curvas fortes, durações curtas, só transform/opacity/clip-path.
   ========================================================================== */

:root {
  /* Terra */
  --soil-950: #0e0906;
  --soil-900: #160f0a;
  --soil-800: #23170f;
  --soil-700: #3a2618;
  --loam:     #6b3416;   /* castanho do logótipo */
  --clay:     #a4592c;

  /* Folha */
  --leaf-900: #10291a;
  --leaf-800: #163b24;
  --leaf-700: #1f4d2b;   /* verde do logótipo (base) */
  --leaf-500: #2f7a45;   /* verde do logótipo (topo) */
  --leaf-300: #9fc9a1;
  --sprout:   #cfe3a6;

  /* Papel */
  --paper:    #f4efe6;
  --paper-2:  #ebe4d6;
  --paper-3:  #ded5c3;
  --ink:      #1b1611;
  --ink-2:    #4d4237;   /* texto secundário: contraste AA+ sobre papel */
  --ink-3:    #6f6355;
  --line:     rgba(27, 22, 17, .14);
  --line-strong: rgba(27, 22, 17, .28);

  --on-dark:   #f4efe6;
  --on-dark-2: rgba(244, 239, 230, .74);
  --line-dark: rgba(244, 239, 230, .16);

  /* Tipografia */
  --font-display: "Fraunces", "Iowan Old Style", Georgia, serif;
  --font-sans: "Geist", ui-sans-serif, system-ui, -apple-system, "Segoe UI", sans-serif;
  --font-mono: "Geist Mono", ui-monospace, "SFMono-Regular", Menlo, monospace;

  --step--1: clamp(.84rem, .82rem + .1vw, .9rem);
  --step-0:  clamp(1rem, .97rem + .15vw, 1.0625rem);
  --step-1:  clamp(1.2rem, 1.1rem + .45vw, 1.45rem);
  --step-2:  clamp(1.45rem, 1.25rem + 1vw, 2.1rem);
  --step-3:  clamp(1.9rem, 1.5rem + 2vw, 3.2rem);
  --step-4:  clamp(2.5rem, 1.8rem + 3.6vw, 5rem);
  --step-5:  clamp(3rem, 2rem + 5.6vw, 7.4rem);

  /* Espaço */
  --gutter: clamp(20px, 4vw, 56px);
  --max: 1360px;
  --section: clamp(88px, 12vw, 184px);
  --radius: 14px;

  /* Motion (Emil Kowalski) */
  --ease-out: cubic-bezier(0.23, 1, 0.32, 1);
  --ease-in-out: cubic-bezier(0.77, 0, 0.175, 1);
  --ease-drawer: cubic-bezier(0.32, 0.72, 0, 1);

  --header-h: 76px;

  color-scheme: light;
}

/* ---------- Base ---------- */

*, *::before, *::after { box-sizing: border-box; }

html {
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
  scroll-padding-top: calc(var(--header-h) + 16px);
}

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--font-sans);
  font-size: var(--step-0);
  line-height: 1.6;
  font-feature-settings: "ss01", "cv11";
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
}

img, svg, video { display: block; max-width: 100%; }
img { height: auto; }

a { color: inherit; text-decoration: none; }

button, input, textarea, select { font: inherit; color: inherit; }
button { cursor: pointer; background: none; border: 0; padding: 0; }

h1, h2, h3, h4, p, ul, ol, figure, blockquote, dl, dd { margin: 0; }
ul, ol { padding: 0; list-style: none; }

::selection { background: var(--leaf-700); color: var(--paper); }

:focus-visible {
  outline: 2px solid var(--leaf-500);
  outline-offset: 3px;
  border-radius: 4px;
}

.skip-link {
  position: fixed;
  left: 16px;
  top: 12px;
  z-index: 200;
  padding: 10px 16px;
  border-radius: 999px;
  background: var(--ink);
  color: var(--paper);
  transform: translateY(-160%);
}
.skip-link:focus-visible { transform: none; }

.visually-hidden {
  position: absolute !important;
  width: 1px; height: 1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
}

.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }

.container {
  width: 100%;
  max-width: var(--max);
  margin-inline: auto;
  padding-inline: var(--gutter);
}

/* ---------- Tipografia ---------- */

.display, .h1, .h2, .h3 {
  font-family: var(--font-display);
  font-weight: 340;
  font-variation-settings: "SOFT" 60, "opsz" 144;
  letter-spacing: -0.025em;
  line-height: 1.02;
  text-wrap: balance;
}
.display { font-size: var(--step-5); letter-spacing: -0.035em; line-height: .96; }
.h1 { font-size: var(--step-4); }
.h2 { font-size: var(--step-3); line-height: 1.06; }
.h3 { font-size: var(--step-2); line-height: 1.12; letter-spacing: -0.015em; }

.display em, .h1 em, .h2 em {
  font-style: italic;
  font-weight: 300;
  color: var(--leaf-700);
}

.lead {
  font-size: var(--step-1);
  line-height: 1.5;
  color: var(--ink-2);
  max-width: 38ch;
  text-wrap: pretty;
}

.prose { max-width: 65ch; color: var(--ink-2); text-wrap: pretty; }
.prose p + p { margin-top: 1.1em; }

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: .75em;
  font-family: var(--font-mono);
  font-size: .75rem;
  font-weight: 500;
  letter-spacing: .08em;
  text-transform: uppercase;
  color: var(--ink-2);
}
.eyebrow::before {
  content: "";
  width: 7px; height: 7px;
  border-radius: 50%;
  background: var(--loam);
  flex-shrink: 0;
}
.eyebrow--plain::before { display: none; }

.num {
  font-family: var(--font-mono);
  font-size: .75rem;
  letter-spacing: .04em;
  color: var(--ink-3);
  font-variant-numeric: tabular-nums;
}

.link {
  display: inline-flex;
  align-items: center;
  gap: .5em;
  font-weight: 500;
  border-bottom: 1px solid var(--line-strong);
  padding-bottom: 2px;
  transition: border-color 200ms ease, color 200ms ease;
}
.link .icon { width: 1.05em; height: 1.05em; transition: transform 240ms var(--ease-out); }

@media (hover: hover) and (pointer: fine) {
  .link:hover { border-color: currentColor; color: var(--leaf-700); }
  .link:hover .icon { transform: translateX(3px); }
}

.icon { width: 20px; height: 20px; flex-shrink: 0; }

/* ---------- Botões ---------- */

.btn {
  --btn-bg: var(--ink);
  --btn-fg: var(--paper);
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: .6em;
  min-height: 52px;
  padding: 0 26px;
  border-radius: 999px;
  background: var(--btn-bg);
  color: var(--btn-fg);
  font-weight: 500;
  font-size: .98rem;
  letter-spacing: -0.005em;
  white-space: nowrap;
  transition: transform 160ms var(--ease-out), background-color 200ms ease, color 200ms ease, box-shadow 200ms ease;
  -webkit-tap-highlight-color: transparent;
}
.btn:active { transform: scale(0.97); }
.btn .icon { width: 18px; height: 18px; transition: transform 240ms var(--ease-out); }

.btn--leaf { --btn-bg: var(--leaf-700); --btn-fg: var(--paper); }
.btn--paper { --btn-bg: var(--paper); --btn-fg: var(--ink); }
.btn--ghost {
  --btn-bg: transparent;
  --btn-fg: currentColor;
  box-shadow: inset 0 0 0 1px var(--line-strong);
}
.on-dark .btn--ghost { box-shadow: inset 0 0 0 1px var(--line-dark); }
.btn--sm { min-height: 42px; padding: 0 18px; font-size: .92rem; }
.btn--block { width: 100%; }

@media (hover: hover) and (pointer: fine) {
  .btn:hover .icon { transform: translateX(3px); }
  .btn--leaf:hover { --btn-bg: var(--leaf-800); }
  .btn--paper:hover { --btn-bg: #fff; }
  .btn:not(.btn--leaf):not(.btn--paper):not(.btn--ghost):hover { --btn-bg: #000; }
  .btn--ghost:hover { box-shadow: inset 0 0 0 1px currentColor; }
}

/* ---------- Cabeçalho ---------- */

.site-header {
  position: fixed;
  inset: 0 0 auto 0;
  z-index: 100;
  height: var(--header-h);
  color: var(--ink);
  transition: color 300ms ease, background-color 300ms ease, box-shadow 300ms ease, transform 400ms var(--ease-out);
}
.site-header::before {
  content: "";
  position: absolute;
  inset: 0;
  background: rgba(244, 239, 230, .82);
  -webkit-backdrop-filter: saturate(1.4) blur(14px);
  backdrop-filter: saturate(1.4) blur(14px);
  box-shadow: 0 1px 0 var(--line);
  opacity: 0;
  transition: opacity 300ms ease;
}
.site-header.is-solid::before { opacity: 1; }
.site-header.is-dark { color: var(--on-dark); }
.site-header.is-dark::before { opacity: 0; }
/* Escondido durante a animação da hero (home); reaparece com o título final */
.site-header.is-concealed {
  opacity: 0;
  transform: translateY(-12px);
  visibility: hidden;
  pointer-events: none;
}
.site-header { transition: color 300ms ease, opacity 400ms var(--ease-out), transform 400ms var(--ease-out), visibility 0s; }
.site-header.is-concealed { transition: opacity 200ms ease, transform 200ms ease, visibility 0s linear 200ms; }

.site-header__inner {
  position: relative;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  font-family: var(--font-display);
  font-size: 1.32rem;
  font-weight: 450;
  font-variation-settings: "SOFT" 80, "opsz" 36;
  letter-spacing: -0.02em;
  line-height: 1;
}
.brand .mark { width: 30px; height: auto; flex-shrink: 0; }
.brand__seeds { color: var(--leaf-700); }
.is-dark .brand__seeds { color: var(--leaf-300); }
.is-dark .brand .mark { --mark-soil: #c58a5c; --mark-leaf-top: #9fc9a1; --mark-leaf-bottom: #6fa877; }

.nav { display: flex; align-items: center; gap: clamp(14px, 2vw, 30px); }
.nav__links { display: flex; gap: clamp(14px, 1.8vw, 28px); }
.nav__links a {
  position: relative;
  font-size: .94rem;
  font-weight: 450;
  padding: 6px 0;
  opacity: .82;
  transition: opacity 200ms ease;
}
.nav__links a[aria-current="page"] { opacity: 1; }
.nav__links a[aria-current="page"]::after {
  content: "";
  position: absolute;
  left: 50%;
  bottom: -4px;
  width: 4px; height: 4px;
  margin-left: -2px;
  border-radius: 50%;
  background: currentColor;
}
@media (hover: hover) and (pointer: fine) {
  .nav__links a:hover { opacity: 1; }
}

.nav__actions { display: flex; align-items: center; gap: 10px; }

.lang-switch {
  display: inline-flex;
  font-family: var(--font-mono);
  font-size: .72rem;
  letter-spacing: .06em;
  border-radius: 999px;
  box-shadow: inset 0 0 0 1px var(--line-strong);
  padding: 3px;
}
.is-dark .lang-switch { box-shadow: inset 0 0 0 1px var(--line-dark); }
.lang-switch a {
  padding: 6px 9px;
  border-radius: 999px;
  opacity: .7;
  transition: opacity 200ms ease, background-color 200ms ease;
}
.lang-switch a[aria-current="true"] { opacity: 1; background: var(--line); }
.is-dark .lang-switch a[aria-current="true"] { background: var(--line-dark); }

.site-header .btn { min-height: 42px; padding: 0 18px; font-size: .9rem; }
.is-dark .btn--ghost { box-shadow: inset 0 0 0 1px var(--line-dark); }

.menu-toggle {
  display: none;
  width: 44px; height: 44px;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  box-shadow: inset 0 0 0 1px var(--line-strong);
  transition: transform 160ms var(--ease-out);
}
.menu-toggle:active { transform: scale(0.95); }
.is-dark .menu-toggle { box-shadow: inset 0 0 0 1px var(--line-dark); }

@media (max-width: 1080px) {
  .nav__links, .nav__actions .btn--ghost, .nav__actions .lang-switch { display: none; }
  .menu-toggle { display: inline-flex; }
}
@media (max-width: 520px) {
  .nav__actions .btn--leaf { display: none; }
}

/* Menu móvel */
.mobile-menu {
  position: fixed;
  inset: 0;
  z-index: 150;
  display: flex;
  flex-direction: column;
  padding: calc(var(--header-h) + 12px) var(--gutter) 28px;
  background: var(--soil-900);
  color: var(--on-dark);
  clip-path: inset(0 0 100% 0);
  visibility: hidden;
  transition: clip-path 420ms var(--ease-in-out), visibility 0s linear 420ms;
}
.mobile-menu.is-open {
  clip-path: inset(0 0 0 0);
  visibility: visible;
  transition: clip-path 480ms var(--ease-in-out), visibility 0s;
}
.mobile-menu__close {
  position: absolute;
  top: 16px;
  right: var(--gutter);
  width: 44px; height: 44px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  box-shadow: inset 0 0 0 1px var(--line-dark);
}
.mobile-menu nav a {
  display: flex;
  align-items: baseline;
  gap: 14px;
  padding: 10px 0;
  border-bottom: 1px solid var(--line-dark);
  font-family: var(--font-display);
  font-size: clamp(1.8rem, 7vw, 2.6rem);
  font-weight: 330;
  letter-spacing: -0.02em;
  line-height: 1.15;
}
.mobile-menu nav a .num { color: var(--on-dark-2); }
.mobile-menu__foot {
  margin-top: auto;
  padding-top: 24px;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 12px;
  justify-content: space-between;
}
.mobile-menu .lang-switch { box-shadow: inset 0 0 0 1px var(--line-dark); }
.mobile-menu .lang-switch a[aria-current="true"] { background: var(--line-dark); }

/* ---------- Secções ---------- */

.section { padding-block: var(--section); }
.section--tight { padding-block: calc(var(--section) * .6); }
.section--dark { background: var(--soil-900); color: var(--on-dark); }
.section--dark .lead, .section--dark .prose { color: var(--on-dark-2); }
.section--dark .eyebrow { color: var(--on-dark-2); }
.section--dark .eyebrow::before { background: var(--clay); }
.section--paper2 { background: var(--paper-2); }

.section-head {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 22px;
  margin-bottom: clamp(48px, 7vw, 96px);
}
@media (min-width: 900px) {
  .section-head--split {
    grid-template-columns: minmax(0, 5fr) minmax(0, 7fr);
    align-items: end;
    gap: 48px;
  }
}

.rule { height: 1px; background: var(--line); border: 0; margin: 0; }

/* Cabeçalho das páginas interiores */
.page-hero {
  position: relative;
  padding-top: calc(var(--header-h) + clamp(56px, 10vw, 140px));
  padding-bottom: clamp(56px, 8vw, 110px);
  overflow: hidden;
}
.page-hero__grid {
  display: grid;
  gap: 28px;
}
@media (min-width: 960px) {
  .page-hero__grid { grid-template-columns: minmax(0, 8fr) minmax(0, 4fr); align-items: end; gap: 56px; }
}
.page-hero .h1 { max-width: 16ch; }
.page-hero .lead { max-width: 42ch; }
.page-hero__mark {
  position: absolute;
  right: calc(var(--gutter) * -1);
  top: calc(var(--header-h) + 24px);
  width: clamp(160px, 22vw, 340px);
  opacity: .08;
  pointer-events: none;
}

.crumbs {
  display: flex;
  gap: 8px;
  margin-bottom: 28px;
  font-family: var(--font-mono);
  font-size: .72rem;
  letter-spacing: .06em;
  text-transform: uppercase;
  color: var(--ink-3);
}
.crumbs a { color: var(--ink-2); }
@media (hover: hover) and (pointer: fine) { .crumbs a:hover { color: var(--ink); } }

/* ---------- Home: intro + factos ---------- */

.intro__text {
  font-family: var(--font-display);
  font-size: var(--step-3);
  font-weight: 320;
  font-variation-settings: "SOFT" 70, "opsz" 96;
  line-height: 1.14;
  letter-spacing: -0.02em;
  max-width: 24ch;
  text-wrap: balance;
}
@media (min-width: 900px) { .intro__text { max-width: 28ch; } }
.intro__text .soft { color: var(--ink-3); }

.intro__grid { display: grid; gap: 40px; }
@media (min-width: 900px) {
  .intro__grid { grid-template-columns: minmax(0, 3fr) minmax(0, 9fr); gap: 48px; }
}

.facts {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  margin-top: clamp(56px, 8vw, 120px);
  border-top: 1px solid var(--line);
}
.fact {
  padding: 28px 24px 0 0;
  border-right: 1px solid var(--line);
  padding-left: 0;
}
.fact + .fact { padding-left: 24px; }
.fact:last-child { border-right: 0; }
@media (max-width: 720px) {
  .fact { border-right: 0; border-bottom: 1px solid var(--line); padding: 22px 0; }
  .fact + .fact { padding-left: 0; }
}
.fact__value {
  display: block;
  font-family: var(--font-display);
  font-size: clamp(3rem, 2rem + 4vw, 5.4rem);
  font-weight: 300;
  font-variation-settings: "SOFT" 100, "opsz" 144;
  line-height: 1;
  letter-spacing: -0.04em;
  font-variant-numeric: tabular-nums;
  color: var(--leaf-700);
}
.fact__label { display: block; margin-top: 12px; color: var(--ink-2); max-width: 22ch; }

/* ---------- Lista das frentes ---------- */

.front-list { border-top: 1px solid var(--line); counter-reset: front; }
.front-row {
  position: relative;
  display: grid;
  grid-template-columns: 56px minmax(0, 1fr) 44px;
  gap: 20px;
  align-items: center;
  padding: clamp(22px, 3vw, 34px) 0;
  border-bottom: 1px solid var(--line);
  isolation: isolate;
}
@media (min-width: 900px) {
  .front-row { grid-template-columns: 80px minmax(0, 6fr) minmax(0, 5fr) 52px; gap: 32px; }
}
.front-row::before {
  content: "";
  position: absolute;
  inset: 0 calc(var(--gutter) * -0.5);
  z-index: -1;
  border-radius: 10px;
  background: var(--paper-2);
  opacity: 0;
  transform: scaleY(.96);
  transition: opacity 240ms ease, transform 240ms var(--ease-out);
}
.front-row__title {
  font-family: var(--font-display);
  font-size: var(--step-2);
  font-weight: 340;
  font-variation-settings: "SOFT" 60, "opsz" 72;
  letter-spacing: -0.02em;
  line-height: 1.1;
}
.front-row__text { color: var(--ink-2); display: none; }
@media (min-width: 900px) { .front-row__text { display: block; max-width: 44ch; } }
.front-row__arrow {
  width: 44px; height: 44px;
  border-radius: 50%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  box-shadow: inset 0 0 0 1px var(--line-strong);
  justify-self: end;
  transition: background-color 240ms ease, color 240ms ease, transform 240ms var(--ease-out), box-shadow 240ms ease;
}
.front-row__arrow .icon { width: 18px; height: 18px; }
.front-row:active .front-row__arrow { transform: scale(0.94); }

@media (hover: hover) and (pointer: fine) {
  .front-row:hover::before { opacity: 1; transform: none; }
  .front-row:hover .front-row__arrow { background: var(--leaf-700); color: var(--paper); box-shadow: none; }
}

/* ---------- Fotografia ---------- */

.photo-band { position: relative; }
.photo-band__media {
  position: relative;
  overflow: hidden;
  border-radius: var(--radius);
  aspect-ratio: 16 / 8;
  background: var(--paper-3);
}
@media (max-width: 720px) { .photo-band__media { aspect-ratio: 4 / 3.4; } }
.photo-band__media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 30%;
}
.photo-band__caption {
  display: flex;
  justify-content: space-between;
  gap: 24px;
  margin-top: 16px;
  color: var(--ink-2);
  font-size: var(--step--1);
}

/* ---------- Envolva-se (home) ---------- */

.involve__grid { display: grid; gap: 48px; }
@media (min-width: 980px) {
  .involve__grid { grid-template-columns: minmax(0, 5fr) minmax(0, 6fr); gap: clamp(56px, 7vw, 120px); align-items: start; }
  .involve__aside { position: sticky; top: calc(var(--header-h) + 40px); }
}
.involve__aside .h2 { max-width: 13ch; }
.involve__aside .lead { margin-top: 24px; }

.promise {
  display: grid;
  gap: 0;
  margin-top: 40px;
  border-top: 1px solid var(--line-dark);
}
.promise li {
  display: grid;
  grid-template-columns: 40px 1fr;
  gap: 8px;
  padding: 18px 0;
  border-bottom: 1px solid var(--line-dark);
}
.promise strong { display: block; font-weight: 500; }
.promise span { color: var(--on-dark-2); font-size: var(--step--1); }

/* Formas de ajudar */
.ways {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  border-top: 1px solid var(--line);
}
.way {
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 14px;
  min-height: 260px;
  padding: 28px 28px 28px 0;
  border-right: 1px solid var(--line);
}
.way + .way { padding-left: 28px; }
.way:last-child { border-right: 0; }
@media (max-width: 860px) {
  .way { border-right: 0; border-bottom: 1px solid var(--line); min-height: 0; padding: 26px 0; }
  .way + .way { padding-left: 0; }
}
.way__title {
  font-family: var(--font-display);
  font-size: var(--step-2);
  font-weight: 340;
  letter-spacing: -0.02em;
}
.way__text { color: var(--ink-2); max-width: 32ch; }
.way .link { margin-top: auto; align-self: flex-start; }

/* Em preparação */
.next {
  display: grid;
  gap: 32px;
  padding: clamp(32px, 5vw, 64px);
  border-radius: var(--radius);
  background: var(--paper-2);
}
@media (min-width: 900px) { .next { grid-template-columns: minmax(0, 7fr) minmax(0, 4fr); align-items: end; } }
.next .h3 { max-width: 20ch; margin-top: 16px; }
.next p { color: var(--ink-2); margin-top: 16px; max-width: 54ch; }
.next__actions { display: flex; flex-wrap: wrap; gap: 12px; }
@media (min-width: 900px) { .next__actions { justify-content: flex-end; } }

/* ---------- Formulários ---------- */

.form { display: grid; gap: 22px; }
.form__row { display: grid; gap: 22px; }
@media (min-width: 640px) { .form__row--2 { grid-template-columns: 1fr 1fr; } }

.field { display: grid; gap: 8px; }
.field__label {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  font-size: .86rem;
  font-weight: 500;
}
.field__label small { font-weight: 400; color: var(--ink-3); }
.field input, .field textarea, .field select {
  width: 100%;
  min-height: 52px;
  padding: 14px 16px;
  border-radius: 10px;
  border: 1px solid var(--line-strong);
  background: rgba(255, 255, 255, .55);
  font-size: 1rem;
  transition: border-color 200ms ease, box-shadow 200ms ease, background-color 200ms ease;
  -webkit-appearance: none;
  appearance: none;
}
.field textarea { min-height: 120px; resize: vertical; line-height: 1.5; }
.field input:focus, .field textarea:focus, .field select:focus {
  outline: none;
  border-color: var(--leaf-500);
  background: #fff;
  box-shadow: 0 0 0 4px rgba(47, 122, 69, .14);
}
.field.has-error input, .field.has-error textarea { border-color: #a3341c; }
.field__error { font-size: .82rem; color: #a3341c; }
.check.has-error { color: #a3341c; }
.on-dark .field__error, .on-dark .check.has-error { color: #f2a48c; }
.on-dark .field.has-error input, .on-dark .field.has-error textarea { border-color: #f2a48c; }

.on-dark .field input, .on-dark .field textarea {
  background: rgba(244, 239, 230, .06);
  border-color: var(--line-dark);
  color: var(--on-dark);
}
.on-dark .field input::placeholder, .on-dark .field textarea::placeholder { color: rgba(244, 239, 230, .45); }
.on-dark .field input:focus, .on-dark .field textarea:focus {
  background: rgba(244, 239, 230, .1);
  border-color: var(--leaf-300);
  box-shadow: 0 0 0 4px rgba(159, 201, 161, .16);
}
.on-dark .field__label small { color: var(--on-dark-2); }

fieldset { border: 0; margin: 0; padding: 0; min-width: 0; }
legend { padding: 0; margin-bottom: 12px; font-size: .86rem; font-weight: 500; }

.chips { display: flex; flex-wrap: wrap; gap: 8px; }
.chip { position: relative; }
.chip input { position: absolute; opacity: 0; inset: 0; margin: 0; cursor: pointer; }
.chip span {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-height: 40px;
  padding: 0 15px;
  border-radius: 999px;
  box-shadow: inset 0 0 0 1px var(--line-strong);
  font-size: .9rem;
  transition: background-color 200ms ease, color 200ms ease, box-shadow 200ms ease, transform 160ms var(--ease-out);
  user-select: none;
}
.chip span::before {
  content: "";
  width: 7px; height: 7px;
  border-radius: 50%;
  box-shadow: inset 0 0 0 1.5px currentColor;
  transition: background-color 200ms ease;
}
.chip input:checked + span { background: var(--leaf-700); color: var(--paper); box-shadow: none; }
.chip input:checked + span::before { background: currentColor; }
.chip input:focus-visible + span { outline: 2px solid var(--leaf-500); outline-offset: 2px; }
.chip:active span { transform: scale(0.97); }
.on-dark .chip span { box-shadow: inset 0 0 0 1px var(--line-dark); }
.on-dark .chip input:checked + span { background: var(--paper); color: var(--ink); }
@media (hover: hover) and (pointer: fine) {
  .chip:hover input:not(:checked) + span { box-shadow: inset 0 0 0 1px currentColor; }
}

.check {
  display: grid;
  grid-template-columns: 22px 1fr;
  gap: 12px;
  align-items: start;
  font-size: .9rem;
  color: var(--ink-2);
}
.on-dark .check { color: var(--on-dark-2); }
.check input {
  width: 22px; height: 22px;
  margin: 1px 0 0;
  accent-color: var(--leaf-700);
}

.form__foot { display: flex; flex-wrap: wrap; align-items: center; gap: 16px 24px; justify-content: space-between; }
.form__note { font-size: .82rem; color: var(--ink-3); }
.on-dark .form__note { color: var(--on-dark-2); }

.form [type="submit"] .btn__label { transition: opacity 200ms ease, filter 200ms ease; }
.form.is-sending [type="submit"] { pointer-events: none; }
.form.is-sending [type="submit"] .btn__label { opacity: .7; filter: blur(1px); }

.form-status {
  display: none;
  padding: 14px 16px;
  border-radius: 10px;
  font-size: .92rem;
  background: rgba(163, 52, 28, .08);
  color: #8a2c17;
}
.form-status.is-visible { display: block; }
.on-dark .form-status { background: rgba(255, 180, 160, .1); color: #f6c3b3; }

.form-success {
  display: grid;
  gap: 14px;
  justify-items: start;
  padding: 8px 0;
  opacity: 1;
  transform: none;
  transition: opacity 400ms var(--ease-out), transform 400ms var(--ease-out);
}
@starting-style {
  .form-success { opacity: 0; transform: translateY(8px); }
}
.form-success__icon {
  width: 52px; height: 52px;
  border-radius: 50%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: var(--leaf-700);
  color: var(--paper);
}
.on-dark .form-success__icon { background: var(--paper); color: var(--leaf-700); }
.form-success__icon .icon { width: 24px; height: 24px; }
.form-success h3 { font-family: var(--font-display); font-size: var(--step-2); font-weight: 340; letter-spacing: -0.02em; line-height: 1.15; }
.form-success p { color: var(--ink-2); max-width: 44ch; }
.on-dark .form-success p { color: var(--on-dark-2); }

.form-card {
  padding: clamp(24px, 4vw, 44px);
  border-radius: var(--radius);
  background: var(--paper);
  box-shadow: 0 1px 0 var(--line), 0 30px 60px -30px rgba(27, 22, 17, .25);
}
.on-dark .form-card, .form-card.on-dark {
  background: var(--soil-800);
  box-shadow: inset 0 0 0 1px var(--line-dark);
}

.flash {
  margin-bottom: 28px;
  padding: 16px 18px;
  border-radius: 10px;
  background: rgba(47, 122, 69, .12);
  color: var(--leaf-800);
}
.flash--error { background: rgba(163, 52, 28, .1); color: #8a2c17; }

.flash-toast {
  position: fixed;
  left: 50%;
  top: calc(var(--header-h) + 12px);
  z-index: 110;
  width: min(560px, calc(100% - 32px));
  transform: translateX(-50%);
}
.flash-toast .flash { margin: 0; box-shadow: 0 20px 40px -20px rgba(27, 22, 17, .35); background: var(--paper); border-left: 3px solid var(--leaf-500); }
.flash-toast .flash--error { border-left-color: #a3341c; }

/* ---------- Gaveta "Ser voluntário" ---------- */

.drawer {
  position: fixed;
  inset: 0;
  z-index: 180;
  width: 100%;
  max-width: none;
  height: 100%;
  max-height: none;
  margin: 0;
  padding: 0;
  border: 0;
  background: transparent;
  color: var(--on-dark);
  overflow: hidden;
}
.drawer::backdrop { background: transparent; }
.drawer__scrim {
  position: absolute;
  inset: 0;
  background: rgba(14, 9, 6, .5);
  opacity: 0;
  transition: opacity 300ms ease;
}
.drawer__panel {
  position: absolute;
  top: 0;
  right: 0;
  bottom: 0;
  width: min(560px, 100%);
  display: flex;
  flex-direction: column;
  background: var(--soil-900);
  box-shadow: -30px 0 80px -40px rgba(0, 0, 0, .6);
  transform: translateX(100%);
  transition: transform 240ms var(--ease-out);
}
.drawer.is-open .drawer__scrim { opacity: 1; }
.drawer.is-open .drawer__panel { transform: none; transition: transform 460ms var(--ease-drawer); }
@media (max-width: 640px) {
  .drawer__panel {
    top: auto;
    left: 0;
    width: 100%;
    max-height: 92svh;
    border-radius: 20px 20px 0 0;
    transform: translateY(100%);
  }
}
.drawer__head {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 16px;
  padding: 28px clamp(22px, 4vw, 40px) 0;
}
.drawer__head h2 { font-family: var(--font-display); font-size: var(--step-3); font-weight: 330; letter-spacing: -0.025em; line-height: 1; }
.drawer__head p { margin-top: 10px; color: var(--on-dark-2); max-width: 36ch; }
.drawer__close {
  width: 44px; height: 44px;
  flex-shrink: 0;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  box-shadow: inset 0 0 0 1px var(--line-dark);
  transition: transform 160ms var(--ease-out);
}
.drawer__close:active { transform: scale(0.94); }
.drawer__body { flex: 1; overflow-y: auto; overscroll-behavior: contain; padding: 28px clamp(22px, 4vw, 40px) 32px; }
.drawer__grip { display: none; }
@media (max-width: 640px) {
  .drawer__grip { display: block; width: 40px; height: 4px; border-radius: 4px; background: var(--line-dark); margin: 10px auto 0; }
  .drawer__head { padding-top: 14px; }
}

/* Botão flutuante (mobile) */
.fab {
  position: fixed;
  right: 16px;
  bottom: calc(16px + env(safe-area-inset-bottom));
  z-index: 90;
  box-shadow: 0 14px 30px -12px rgba(16, 41, 26, .55);
  opacity: 0;
  transform: translateY(12px);
  pointer-events: none;
  transition: opacity 240ms var(--ease-out), transform 240ms var(--ease-out);
}
.fab.is-visible { opacity: 1; transform: none; pointer-events: auto; }
.fab.is-visible:active { transform: scale(0.97); }
@media (min-width: 1081px) { .fab { display: none; } }

/* ---------- Equipa ---------- */

.team {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
  gap: clamp(28px, 3vw, 44px) clamp(18px, 2vw, 28px);
}
.member__photo {
  position: relative;
  aspect-ratio: 4 / 5;
  overflow: hidden;
  border-radius: 10px;
  background: var(--paper-3);
}
.member__photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 22%;
  filter: grayscale(1) contrast(1.06) brightness(1.02);
  transform: scale(1.001);
  transition: filter 400ms ease, transform 600ms var(--ease-out);
}
.member__photo::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(107, 52, 22, 0) 40%, rgba(107, 52, 22, .22));
  mix-blend-mode: multiply;
  pointer-events: none;
}
.member__name {
  margin-top: 16px;
  font-family: var(--font-display);
  font-size: 1.36rem;
  font-weight: 380;
  letter-spacing: -0.015em;
  line-height: 1.15;
}
.member__role { margin-top: 4px; font-size: .92rem; font-weight: 500; color: var(--leaf-700); }
.member__focus { margin-top: 8px; font-size: .9rem; color: var(--ink-2); max-width: 30ch; }
.member__link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  margin-top: 12px;
  font-size: .85rem;
  color: var(--ink-2);
}
.member__link .icon { width: 16px; height: 16px; }
@media (hover: hover) and (pointer: fine) {
  .member:hover .member__photo img { filter: grayscale(0) contrast(1.02); transform: scale(1.03); }
  .member__link:hover { color: var(--ink); }
}

/* ---------- Sobre ---------- */

.story { display: grid; gap: 40px; }
@media (min-width: 960px) { .story { grid-template-columns: minmax(0, 4fr) minmax(0, 7fr); gap: 72px; } }
.story .prose { font-size: var(--step-1); line-height: 1.55; }

.quote {
  font-family: var(--font-display);
  font-size: var(--step-4);
  font-weight: 300;
  font-style: italic;
  font-variation-settings: "SOFT" 100, "opsz" 144;
  line-height: 1.04;
  letter-spacing: -0.03em;
  max-width: 18ch;
  text-wrap: balance;
}
.quote::before { content: "“"; color: var(--clay); }
.quote::after { content: "”"; color: var(--clay); }

.pillars {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  border-top: 1px solid var(--line);
}
.pillar { padding: 32px 32px 32px 0; border-right: 1px solid var(--line); }
.pillar + .pillar { padding-left: 32px; }
.pillar:last-child { border-right: 0; }
@media (max-width: 960px) {
  .pillar { border-right: 0; border-bottom: 1px solid var(--line); padding: 28px 0; }
  .pillar + .pillar { padding-left: 0; }
}
.pillar h3 { font-family: var(--font-display); font-size: var(--step-2); font-weight: 340; letter-spacing: -0.02em; margin: 18px 0 14px; }
.pillar p { color: var(--ink-2); }

.values { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 8px; }
.values li {
  padding: 8px 16px;
  border-radius: 999px;
  box-shadow: inset 0 0 0 1px var(--line-strong);
  font-size: .94rem;
}

.figure-pair { display: grid; gap: 16px; }
@media (min-width: 800px) { .figure-pair { grid-template-columns: 7fr 5fr; align-items: end; } }
.figure-pair figure { overflow: hidden; border-radius: var(--radius); background: var(--paper-3); }
.figure-pair img { width: 100%; height: 100%; object-fit: cover; }
.figure-pair figure:first-child { aspect-ratio: 4 / 3; }
.figure-pair figure:last-child { aspect-ratio: 4 / 5; }

/* ---------- Frente (detalhe) ---------- */

.front-detail { display: grid; gap: 56px; }
@media (min-width: 960px) { .front-detail { grid-template-columns: minmax(0, 4fr) minmax(0, 7fr); gap: 80px; } }
.front-detail__nav { display: grid; gap: 4px; align-content: start; }
@media (min-width: 960px) { .front-detail__nav { position: sticky; top: calc(var(--header-h) + 40px); } }
.front-detail__nav a {
  display: grid;
  grid-template-columns: 34px 1fr;
  gap: 8px;
  padding: 10px 0;
  border-bottom: 1px solid var(--line);
  color: var(--ink-2);
  font-size: .95rem;
  transition: color 200ms ease;
}
.front-detail__nav a[aria-current="page"] { color: var(--ink); font-weight: 500; }
.front-detail__nav a[aria-current="page"] .num { color: var(--leaf-700); }
@media (hover: hover) and (pointer: fine) { .front-detail__nav a:hover { color: var(--ink); } }

.block + .block { margin-top: clamp(48px, 6vw, 80px); }
.block .h3 { margin: 16px 0 20px; }
.approach { display: grid; gap: 0; border-top: 1px solid var(--line); }
.approach li {
  display: grid;
  grid-template-columns: 40px 1fr;
  gap: 12px;
  padding: 18px 0;
  border-bottom: 1px solid var(--line);
  font-size: var(--step-1);
  line-height: 1.4;
}
.pending {
  display: flex;
  gap: 16px;
  align-items: flex-start;
  padding: 22px 24px;
  border-radius: 12px;
  background: var(--paper-2);
  color: var(--ink-2);
}
.pending::before {
  content: "";
  flex-shrink: 0;
  width: 10px; height: 10px;
  margin-top: 8px;
  border-radius: 50%;
  background: var(--clay);
  box-shadow: 0 0 0 5px rgba(164, 89, 44, .16);
}

.help-card {
  display: grid;
  gap: 18px;
  padding: clamp(28px, 4vw, 44px);
  border-radius: var(--radius);
  background: var(--leaf-800);
  color: var(--on-dark);
}
.help-card p { color: var(--on-dark-2); }
.help-card .h3 { margin: 0; }

/* ---------- Projetos ---------- */

.phases {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
  gap: 0;
  counter-reset: phase;
  border-top: 1px solid var(--line);
}
.phase {
  position: relative;
  padding: 22px 18px 22px 0;
  border-right: 1px solid var(--line);
}
.phase:last-child { border-right: 0; }
.phase + .phase { padding-left: 18px; }
.phase__dot { display: block; width: 10px; height: 10px; border-radius: 50%; margin-bottom: 18px; background: var(--leaf-500); }
.phase--paused .phase__dot { background: var(--ink-3); }
.phase strong { font-weight: 500; }
@media (max-width: 720px) {
  .phase { border-right: 0; border-bottom: 1px solid var(--line); padding: 16px 0; display: flex; gap: 14px; align-items: center; }
  .phase + .phase { padding-left: 0; }
  .phase__dot { margin: 0; }
}

.empty {
  display: grid;
  gap: 24px;
  justify-items: start;
  padding: clamp(32px, 6vw, 80px);
  border-radius: var(--radius);
  border: 1px dashed var(--line-strong);
}
.empty .h3 { max-width: 22ch; }
.empty p { color: var(--ink-2); max-width: 56ch; }

.projects { display: grid; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); gap: 28px; }
.project { display: grid; gap: 14px; }
.project__media { aspect-ratio: 4 / 3; overflow: hidden; border-radius: 12px; background: var(--paper-3); }
.project__media img { width: 100%; height: 100%; object-fit: cover; }
.project__meta { display: flex; flex-wrap: wrap; gap: 8px 16px; font-size: .86rem; color: var(--ink-2); }
.badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 5px 11px;
  border-radius: 999px;
  font-family: var(--font-mono);
  font-size: .7rem;
  letter-spacing: .06em;
  text-transform: uppercase;
  box-shadow: inset 0 0 0 1px var(--line-strong);
  color: var(--ink-2);
  white-space: nowrap;
}
.badge::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: var(--clay); }
.progress { height: 4px; border-radius: 4px; background: var(--paper-3); overflow: hidden; }
.progress span { display: block; height: 100%; background: var(--leaf-500); transform-origin: left; }

/* ---------- Transparência ---------- */

.docs { border-top: 1px solid var(--line); }
.doc {
  display: grid;
  grid-template-columns: 44px minmax(0, 1fr);
  gap: 16px;
  align-items: start;
  padding: 26px 0;
  border-bottom: 1px solid var(--line);
}
@media (min-width: 860px) { .doc { grid-template-columns: 60px minmax(0, 5fr) minmax(0, 6fr) auto; align-items: center; gap: 24px; } }
.doc__icon {
  width: 44px; height: 44px;
  border-radius: 10px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: var(--paper-2);
  color: var(--ink-2);
}
.doc h3 { font-size: 1.08rem; font-weight: 500; letter-spacing: -0.01em; }
.doc p { color: var(--ink-2); font-size: .95rem; }
.doc .badge { justify-self: start; }
@media (max-width: 859px) { .doc p, .doc .badge { grid-column: 2; } }

/* ---------- Envolva-se ---------- */

.steps {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 0;
  border-top: 1px solid var(--line-dark);
  margin-top: 40px;
}
.step { padding: 24px 24px 0 0; }
.step + .step { padding-left: 24px; border-left: 1px solid var(--line-dark); }
@media (max-width: 760px) {
  .step, .step + .step { padding: 20px 0; border-left: 0; border-bottom: 1px solid var(--line-dark); }
}
.step strong { display: block; margin: 14px 0 6px; font-weight: 500; font-size: 1.05rem; }
.step p { color: var(--on-dark-2); font-size: .95rem; }
.section--dark .num { color: var(--on-dark-2); }

.split { display: grid; gap: 48px; }
@media (min-width: 980px) { .split { grid-template-columns: minmax(0, 5fr) minmax(0, 6fr); gap: clamp(56px, 7vw, 120px); align-items: start; } }

/* ---------- Doar ---------- */

.options { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 16px; }
.option {
  display: grid;
  gap: 10px;
  align-content: start;
  padding: 28px;
  border-radius: 12px;
  background: var(--paper-2);
}
.option h3 { font-family: var(--font-display); font-size: var(--step-2); font-weight: 340; letter-spacing: -0.02em; }
.option p { color: var(--ink-2); }

.methods { display: flex; flex-wrap: wrap; gap: 8px; margin: 18px 0; }
.methods li {
  padding: 8px 14px;
  border-radius: 8px;
  box-shadow: inset 0 0 0 1px var(--line-strong);
  font-family: var(--font-mono);
  font-size: .78rem;
  letter-spacing: .03em;
}

/* ---------- Contactos ---------- */

.offices { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 16px; }
.office {
  position: relative;
  display: grid;
  gap: 8px;
  padding: 28px;
  border-radius: 12px;
  background: var(--paper-2);
  overflow: hidden;
}
.office__country { font-family: var(--font-display); font-size: var(--step-2); font-weight: 340; letter-spacing: -0.02em; }
.office__coords { font-family: var(--font-mono); font-size: .75rem; color: var(--ink-3); letter-spacing: .04em; }
.office .link { justify-self: start; margin-top: 12px; }

.email-big {
  display: inline-block;
  font-family: var(--font-display);
  font-size: clamp(1.8rem, 1rem + 4vw, 4.2rem);
  font-weight: 300;
  letter-spacing: -0.03em;
  line-height: 1.05;
  border-bottom: 2px solid var(--line-strong);
  transition: border-color 200ms ease, color 200ms ease;
  word-break: break-word;
}
@media (hover: hover) and (pointer: fine) { .email-big:hover { color: var(--leaf-700); border-color: currentColor; } }

.socials { display: flex; gap: 10px; }
.socials a {
  width: 44px; height: 44px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  box-shadow: inset 0 0 0 1px var(--line-strong);
  transition: background-color 200ms ease, color 200ms ease, transform 160ms var(--ease-out);
}
.socials a:active { transform: scale(0.94); }
.socials .icon { width: 18px; height: 18px; }
.on-dark .socials a { box-shadow: inset 0 0 0 1px var(--line-dark); }
@media (hover: hover) and (pointer: fine) {
  .socials a:hover { background: var(--ink); color: var(--paper); box-shadow: none; }
  .on-dark .socials a:hover { background: var(--paper); color: var(--ink); }
}

/* ---------- Rodapé ---------- */

.site-footer {
  position: relative;
  background: var(--soil-950);
  color: var(--on-dark);
  padding-top: clamp(80px, 10vw, 140px);
  overflow: hidden;
}
.footer__motto {
  font-family: var(--font-display);
  font-size: clamp(2.6rem, 1rem + 7.4vw, 9.4rem);
  font-weight: 300;
  font-variation-settings: "SOFT" 100, "opsz" 144;
  line-height: .92;
  letter-spacing: -0.045em;
  max-width: 12ch;
}
.footer__motto em { font-style: italic; color: var(--leaf-300); }
.footer__grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(190px, 1fr));
  gap: 40px 32px;
  margin-top: clamp(64px, 8vw, 120px);
  padding-top: 40px;
  border-top: 1px solid var(--line-dark);
}
.footer__col h2 {
  margin-bottom: 18px;
  font-family: var(--font-mono);
  font-size: .72rem;
  font-weight: 500;
  letter-spacing: .08em;
  text-transform: uppercase;
  color: var(--on-dark-2);
}
.footer__col li + li { margin-top: 8px; }
.footer__col a { color: var(--on-dark); opacity: .86; transition: opacity 200ms ease; }
@media (hover: hover) and (pointer: fine) { .footer__col a:hover { opacity: 1; } }
.footer__col p { color: var(--on-dark-2); font-size: .94rem; max-width: 34ch; }
.footer__col--wide { grid-column: span 2; }
@media (max-width: 640px) { .footer__col--wide { grid-column: auto; } }

.newsletter { display: flex; gap: 8px; margin-top: 16px; }
.newsletter input {
  flex: 1;
  min-width: 0;
  min-height: 48px;
  padding: 0 18px;
  border-radius: 999px;
  border: 1px solid var(--line-dark);
  background: rgba(244, 239, 230, .05);
  color: var(--on-dark);
}
.newsletter input::placeholder { color: rgba(244, 239, 230, .45); }
.newsletter input:focus { outline: none; border-color: var(--leaf-300); }
.newsletter .btn { min-height: 48px; }

.footer__bottom {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 16px;
  margin-top: 64px;
  padding: 24px 0 32px;
  border-top: 1px solid var(--line-dark);
  font-size: .84rem;
  color: var(--on-dark-2);
}
.footer__bottom nav { display: flex; flex-wrap: wrap; gap: 20px; }
.footer__bottom button { color: inherit; font-size: inherit; }
@media (hover: hover) and (pointer: fine) {
  .footer__bottom a:hover, .footer__bottom button:hover { color: var(--on-dark); }
}
.footer__mark {
  position: absolute;
  right: -40px;
  bottom: -60px;
  width: clamp(220px, 30vw, 460px);
  opacity: .07;
  pointer-events: none;
  --mark-soil: #f4efe6;
  --mark-leaf-top: #f4efe6;
  --mark-leaf-bottom: #f4efe6;
}

/* ---------- Aviso de cookies ---------- */

.consent {
  position: fixed;
  left: 16px;
  bottom: calc(16px + env(safe-area-inset-bottom));
  z-index: 120;
  width: min(420px, calc(100% - 32px));
  padding: 20px;
  border-radius: 14px;
  background: var(--ink);
  color: var(--on-dark);
  box-shadow: 0 24px 60px -24px rgba(0, 0, 0, .5);
  font-size: .9rem;
  opacity: 1;
  transform: none;
  transition: opacity 300ms var(--ease-out), transform 300ms var(--ease-out);
}
@starting-style { .consent { opacity: 0; transform: translateY(12px); } }
.consent[hidden] { display: none; }
.consent p { color: var(--on-dark-2); }
.consent__actions { display: flex; gap: 8px; margin-top: 16px; }

/* ---------- Revelação ao scroll ---------- */

.js [data-reveal] {
  opacity: 0;
  transform: translateY(14px);
  transition: opacity 700ms var(--ease-out), transform 700ms var(--ease-out);
  transition-delay: var(--delay, 0ms);
}
.js [data-reveal].is-in { opacity: 1; transform: none; }

.js [data-reveal="clip"] {
  opacity: 1;
  transform: none;
  clip-path: inset(12% 0 0 0 round var(--radius));
  transition: clip-path 1100ms var(--ease-in-out);
}
.js [data-reveal="clip"] img { transform: scale(1.08); transition: transform 1400ms var(--ease-out); }
.js [data-reveal="clip"].is-in { clip-path: inset(0 0 0 0 round var(--radius)); }
.js [data-reveal="clip"].is-in img { transform: none; }

/* ==========================================================================
   HERO — da semente ao logótipo
   ========================================================================== */

.hero {
  position: relative;
  background: var(--paper);
}
.hero__stage {
  position: relative;
  height: 100svh;
  min-height: 560px;
  overflow: hidden;
  background: var(--paper);
}
.hero.is-scrub { height: 420svh; }
.hero.is-scrub .hero__stage { position: sticky; top: 0; }
@media (max-width: 720px) { .hero.is-scrub { height: 360svh; } }

.js:not(.hero-ready) .hero__stage > * { visibility: hidden; }

.hero__svg { position: absolute; inset: 0; width: 100%; height: 100%; }

.hero-soil-rect { fill: url(#soilGrad); }
.hero-strata path { fill: none; stroke: rgba(244, 239, 230, .05); stroke-width: 1.2; }
.hero-surface { fill: none; stroke: #4a3020; stroke-width: 2; }
.hero-grain circle { fill: #4b3021; }
.hero-grain circle:nth-child(3n) { fill: #2c1d13; }
.hero-grain circle:nth-child(5n) { fill: #6b3a1f; }
.hero-stone { fill: #2e2017; }
.hero-roots path { fill: none; stroke: #cdb68d; stroke-linecap: round; }
.hero-shoot { fill: none; stroke: url(#shootGrad); stroke-width: 9; stroke-linecap: round; }
.hero-seed-shell { fill: url(#seedGrad); stroke: #a0643a; stroke-width: 1.5; }
.hero-seed-core { fill: #f2d9a6; }
.hero-glow { fill: url(#glowGrad); }
.hero-sun { fill: url(#sunGrad); }

/* Textos sobre a cena */
.hero__captions { position: absolute; inset: 0; pointer-events: none; }
.hero__caption {
  position: absolute;
  left: var(--gutter);
  top: 50%;
  max-width: min(480px, 42vw);
  color: var(--on-dark);
  transform: translateY(-50%);
  opacity: 0;
}
.hero__caption p:first-of-type {
  font-family: var(--font-display);
  font-size: var(--step-3);
  font-weight: 320;
  font-variation-settings: "SOFT" 80, "opsz" 96;
  line-height: 1.06;
  letter-spacing: -0.025em;
  text-wrap: balance;
}
.hero__caption p + p { margin-top: 14px; color: var(--on-dark-2); max-width: 34ch; }
.hero__caption--light { color: var(--ink); top: calc(var(--header-h) + 9vh); transform: none; }
.hero__caption--light p + p { color: var(--ink-2); }
.hero__caption .num { display: block; margin-bottom: 18px; color: var(--on-dark-2); }
.hero__caption--light .num { color: var(--ink-3); }

@media (max-width: 760px) {
  .hero__caption {
    left: var(--gutter);
    right: var(--gutter);
    top: auto;
    bottom: calc(96px + env(safe-area-inset-bottom));
    max-width: none;
    transform: none;
  }
  .hero__caption--light { top: calc(var(--header-h) + 24px); bottom: auto; }
  .hero__caption:not(.hero__caption--light) { text-shadow: 0 1px 14px rgba(14, 9, 6, .9), 0 0 2px rgba(14, 9, 6, .6); }
  .hero__intro .eyebrow { display: none; }
  .hero__intro { justify-content: flex-end; }
}

.hero__intro {
  position: absolute;
  left: var(--gutter);
  right: var(--gutter);
  bottom: calc(28px + env(safe-area-inset-bottom));
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  gap: 16px;
  color: var(--on-dark-2);
  font-family: var(--font-mono);
  font-size: .72rem;
  letter-spacing: .08em;
  text-transform: uppercase;
}
.hero__intro .eyebrow { color: var(--on-dark-2); }
.hero__intro .eyebrow::before { background: var(--clay); }
.hero__scroll { display: inline-flex; align-items: center; gap: 12px; }
.hero__scroll i {
  position: relative;
  width: 1px;
  height: 40px;
  background: var(--line-dark);
  overflow: hidden;
}
.hero__scroll i::after {
  content: "";
  position: absolute;
  left: 0;
  top: 0;
  width: 1px;
  height: 40%;
  background: var(--on-dark);
  animation: scrollHint 2.2s var(--ease-in-out) infinite;
}
@keyframes scrollHint {
  from { transform: translateY(-100%); }
  to { transform: translateY(260%); }
}

.hero__skip {
  position: absolute;
  right: var(--gutter);
  top: calc(var(--header-h) + 12px);
  padding: 8px 14px;
  border-radius: 999px;
  font-family: var(--font-mono);
  font-size: .7rem;
  letter-spacing: .08em;
  text-transform: uppercase;
  color: var(--on-dark-2);
  box-shadow: inset 0 0 0 1px var(--line-dark);
  transition: opacity 300ms ease, transform 160ms var(--ease-out), color 200ms ease;
}
.hero__skip:active { transform: scale(0.96); }
@media (hover: hover) and (pointer: fine) { .hero__skip:hover { color: var(--on-dark); } }

.hero__final {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  pointer-events: none;
}
.hero__final-inner {
  width: 100%;
  max-width: var(--max);
  margin-inline: auto;
  padding-inline: var(--gutter);
}
.hero__final-copy { max-width: min(600px, 48vw); pointer-events: auto; }
.hero__final .eyebrow { margin-bottom: 26px; }
.hero__final h1 {
  font-family: var(--font-display);
  font-size: clamp(2.4rem, 1.4rem + 3.6vw, 5.2rem);
  font-weight: 330;
  font-variation-settings: "SOFT" 70, "opsz" 144;
  line-height: .99;
  letter-spacing: -0.035em;
  text-wrap: balance;
}
.hero__final h1 em { font-style: italic; font-weight: 300; color: var(--leaf-700); }
.hero__final .lead { margin-top: 24px; max-width: 44ch; font-size: var(--step-0); line-height: 1.6; }
.hero__final-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 32px; }

@media (max-width: 760px) {
  .hero__final { align-items: flex-end; padding-bottom: calc(28px + env(safe-area-inset-bottom)); }
  .hero__final-copy { max-width: none; }
  .hero__final .eyebrow { margin-bottom: 14px; }
  .hero__final h1 { font-size: clamp(2rem, 8.6vw, 2.8rem); }
  .hero__final .lead { margin-top: 14px; font-size: .95rem; }
  .hero__final-actions { margin-top: 20px; }
  .hero__final-actions .btn { flex: 1 1 auto; }
}
@media (max-width: 760px) and (max-height: 700px) {
  .hero__final .lead { display: none; }
}

/* Ecrãs quase quadrados (ex.: tablet, janela estreita): logótipo em cima, texto em baixo */
.hero.is-stacked .hero__final { align-items: flex-end; padding-bottom: calc(40px + env(safe-area-inset-bottom)); }
.hero.is-stacked .hero__final-copy { max-width: 640px; }
.hero.is-stacked .hero__final .eyebrow { margin-bottom: 16px; }
.hero.is-stacked .hero__final h1 { font-size: clamp(2rem, 5.4vw, 3.4rem); }
.hero.is-stacked .hero__final .lead { margin-top: 16px; }
.hero.is-stacked .hero__final-actions { margin-top: 24px; }

/* Sem JS ou com movimento reduzido: só o estado final, com o logótipo ao lado do título */
.hero:not(.is-scrub) [data-h="world"] { transform: translate(230px, 0); }
@media (max-width: 860px), (max-aspect-ratio: 21/20) {
  .hero:not(.is-scrub) [data-h="world"] { transform: translate(500px, 250px) scale(.6) translate(-500px, -480px); }
}
.hero:not(.is-scrub) .hero__captions,
.hero:not(.is-scrub) .hero__intro,
.hero:not(.is-scrub) .hero__skip { display: none; }

/* ---------- Movimento reduzido ---------- */

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 1ms !important;
    animation-iteration-count: 1 !important;
    scroll-behavior: auto !important;
  }
  .js [data-reveal] { transform: none; transition: opacity 400ms ease; }
  .js [data-reveal="clip"] { clip-path: none; }
  .js [data-reveal="clip"] img { transform: none; }
  .drawer__panel, .drawer.is-open .drawer__panel { transition: opacity 200ms ease; transform: none; }
  .drawer__panel { opacity: 0; }
  .drawer.is-open .drawer__panel { opacity: 1; }
  .mobile-menu, .mobile-menu.is-open { transition: opacity 200ms ease, visibility 0s; clip-path: none; opacity: 0; }
  .mobile-menu.is-open { opacity: 1; }
  .btn:active, .chip:active span { transform: none; }
}
