/* =========================================================================
   Instituto Pão Irmão
   Paleta: pão e trigo, terra vermelha da Estrutural, folha de árvore.
   Formas: arcos suaves, cantos arredondados, nada anguloso.
   ========================================================================= */

/* ---------- 1. Tokens ---------- */

:root {
  /* tinta */
  --ink:        #2B2117;
  --ink-2:      #4A3C2C;
  --ink-3:      #7A6952;
  --muted:      #98866D;

  /* papéis */
  --cream:      #FBF7F1;
  --cream-2:    #F5EDE0;
  --sand:       #EFE3D0;
  --sand-2:     #E4D4BB;

  /* pão / trigo */
  --gold:       #C79856;
  --gold-deep:  #A3763A;
  --gold-soft:  #E9C88A;
  --gold-wash:  #F7EBD5;

  /* terra da Estrutural */
  --clay:       #A8523A;
  --clay-deep:  #7E3B29;
  --clay-soft:  #E3BBAA;

  /* folha */
  --leaf:       #6B7C5B;
  --leaf-soft:  #CBD5BD;

  --danger:     #A63A2E;

  /* tipografia */
  --font-display: "Fraunces", "Iowan Old Style", "Palatino Linotype", Georgia, serif;
  --font-body:    "Inter", ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;

  --step--1: clamp(.82rem, .78rem + .18vw, .92rem);
  --step-0:  clamp(1rem, .96rem + .22vw, 1.09rem);
  --step-1:  clamp(1.14rem, 1.05rem + .42vw, 1.32rem);
  --step-2:  clamp(1.5rem, 1.3rem + .95vw, 2.1rem);
  --step-3:  clamp(1.95rem, 1.6rem + 1.7vw, 3rem);
  --step-4:  clamp(2.3rem, 1.75rem + 2.5vw, 3.85rem);

  /* formas */
  --r-xs: 10px;
  --r-sm: 14px;
  --r:    20px;
  --r-lg: 28px;
  --r-xl: 40px;
  --arch: 999px 999px var(--r-lg) var(--r-lg);

  /* sombras quentes */
  --sh-1: 0 1px 2px rgba(74,60,44,.05), 0 4px 14px -6px rgba(74,60,44,.12);
  --sh-2: 0 2px 6px rgba(74,60,44,.06), 0 16px 40px -18px rgba(74,60,44,.24);
  --sh-3: 0 4px 12px rgba(74,60,44,.07), 0 34px 70px -26px rgba(74,60,44,.34);

  /* ritmo */
  --shell: 1250px;
  --gutter: clamp(1.15rem, 4vw, 2.5rem);
  --sec-y: clamp(3.75rem, 7vw, 6.75rem);

  /* movimento */
  --ease: cubic-bezier(.22, .68, .32, 1);
  --ease-out: cubic-bezier(.16, 1, .3, 1);
  --dur: .55s;
}

/* ---------- 2. Base ---------- */

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

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

body {
  margin: 0;
  background: var(--cream);
  color: var(--ink-2);
  font-family: var(--font-body);
  font-size: var(--step-0);
  line-height: 1.68;
  letter-spacing: -.005em;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

/* A trava usa position:fixed porque o iOS ignora overflow:hidden no body.
   O script guarda e devolve a posição da rolagem. */
body.is-locked {
  position: fixed;
  left: 0;
  right: 0;
  width: 100%;
  overflow: hidden;
}
body.is-locked .scroll-progress { opacity: 0; }

img, svg { display: block; max-width: 100%; }
img { height: auto; }

h1, h2, h3, h4 {
  margin: 0;
  color: var(--ink);
  font-weight: 600;
  line-height: 1.12;
  letter-spacing: -.02em;
}

p { margin: 0 0 1.1em; }
p:last-child { margin-bottom: 0; }

a { color: var(--clay); text-decoration: none; }
a:hover { color: var(--clay-deep); }

ul, ol { margin: 0; padding: 0; list-style: none; }

strong { color: var(--ink); font-weight: 600; }

:focus-visible {
  outline: 2.5px solid var(--gold-deep);
  outline-offset: 3px;
  border-radius: 6px;
}

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

.display {
  font-family: var(--font-display);
  font-weight: 600;
  font-variation-settings: "SOFT" 28, "WONK" 0, "opsz" 72;
  letter-spacing: -.028em;
  line-height: 1.06;
  text-wrap: balance;
}

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

.skip-link {
  position: absolute;
  left: -9999px;
  top: 0;
  z-index: 200;
  background: var(--ink);
  color: var(--cream);
  padding: .8rem 1.2rem;
  border-radius: 0 0 var(--r-sm) 0;
}
.skip-link:focus { left: 0; color: var(--cream); }

.icon-sprite { position: absolute; width: 0; height: 0; overflow: hidden; }

.ico {
  width: 1.15em;
  height: 1.15em;
  flex: none;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.7;
  stroke-linecap: round;
  stroke-linejoin: round;
}
.ico--fill { fill: currentColor; stroke: none; }

.grain {
  position: absolute;
  inset: 0;
  pointer-events: none;
  opacity: .5;
  mix-blend-mode: soft-light;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='180' height='180'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.82' numOctaves='3'/%3E%3C/filter%3E%3Crect width='180' height='180' filter='url(%23n)' opacity='.38'/%3E%3C/svg%3E");
}

/* ---------- 3. Botões ---------- */

.btn {
  --btn-bg: var(--gold);
  --btn-fg: #fff;
  display: inline-flex;
  align-items: center;
  gap: .58em;
  padding: .82em 1.5em;
  border: 0;
  border-radius: 999px;
  background: var(--btn-bg);
  color: var(--btn-fg);
  font: inherit;
  font-weight: 500;
  font-size: var(--step--1);
  letter-spacing: .005em;
  cursor: pointer;
  text-align: center;
  position: relative;
  isolation: isolate;
  overflow: hidden;
  transition: transform .35s var(--ease-out), box-shadow .35s var(--ease), color .25s;
}
.btn::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background: var(--gold-deep);
  transform: translateY(101%);
  border-radius: inherit;
  transition: transform .45s var(--ease-out);
}
.btn:hover::before { transform: translateY(0); }
.btn:hover { color: var(--btn-fg); transform: translateY(-2px); }
.btn:active { transform: translateY(0) scale(.985); }
.btn .ico { transition: transform .35s var(--ease-out); }
.btn:hover .ico { transform: translateX(2px); }

.btn--primary { box-shadow: 0 10px 24px -12px rgba(163,118,58,.75); }
.btn--primary:hover { box-shadow: 0 16px 34px -14px rgba(163,118,58,.8); }

.btn--ghost {
  --btn-bg: transparent;
  --btn-fg: var(--ink);
  box-shadow: inset 0 0 0 1.4px var(--sand-2);
}
.btn--ghost::before { background: var(--sand); }
.btn--ghost:hover { --btn-fg: var(--ink); }

.btn--light { --btn-bg: var(--cream); --btn-fg: var(--clay-deep); }
.btn--light::before { background: #fff; }

.btn--outline-light {
  --btn-bg: transparent;
  --btn-fg: var(--cream);
  box-shadow: inset 0 0 0 1.4px rgba(251,247,241,.42);
}
.btn--outline-light::before { background: rgba(251,247,241,.14); }

.btn--sm { padding: .62em 1.1em; }
.btn--lg { padding: 1.02em 1.85em; font-size: var(--step-0); }
.btn--wide { width: 100%; justify-content: center; }

/* ---------- 4. Header ---------- */

.scroll-progress {
  position: fixed;
  inset: 0 0 auto 0;
  height: 3px;
  z-index: 95;
  pointer-events: none;
  transition: opacity .3s;
}
.scroll-progress i {
  display: block;
  height: 100%;
  width: 100%;
  transform: scaleX(0);
  transform-origin: 0 50%;
  background: linear-gradient(90deg, var(--gold-soft), var(--gold), var(--clay));
}

.site-header {
  position: fixed;
  inset: 0 0 auto 0;
  z-index: 100;
  padding-top: env(safe-area-inset-top, 0px);
}

/* No topo da página o cabeçalho ocupa toda a largura e não tem cor. Ao rolar,
   ele recolhe até a largura do próprio conteúdo e a ilha desce por trás. */
.site-header__inner {
  position: relative;
  display: flex;
  align-items: center;
  gap: 1.5rem;
  width: 100%;
  max-width: var(--shell);
  height: 5.1rem;
  margin-inline: auto;
  padding-inline: var(--gutter);
  transition:
    max-width .62s var(--ease-out),
    height .42s var(--ease),
    padding-inline .5s var(--ease-out);
}
.site-header.is-stuck .site-header__inner {
  /* --bar-w é medido no script: a largura natural do conteúdo do cabeçalho. */
  max-width: min(var(--bar-w, 62rem), calc(100% - 2 * var(--gutter)));
  height: 4.35rem;
  padding-inline: 1.2rem;
}

/* O conteúdo fica acima da ilha. */
.brand,
.nav,
.nav-toggle { position: relative; z-index: 1; }

/* A ilha. Cantos de baixo convexos, cantos de cima côncavos, que emendam a
   forma na borda superior da página. Os cantos côncavos são dois quadrados
   com um quarto de círculo recortado por máscara. */
.site-header__bar {
  --inv: 20px;
  position: absolute;
  inset: 0;
  border-radius: 0 0 var(--r-lg) var(--r-lg);
  background: #FFFCF7;
  box-shadow: inset 0 -1px 0 rgba(196,176,144,.4);
  /* drop-shadow segue o recorte real, inclusive os cantos côncavos.
     Um box-shadow desenharia a sombra do retângulo e apareceria uma emenda. */
  filter:
    drop-shadow(0 1px 1px rgba(74,60,44,.10))
    drop-shadow(0 8px 18px rgba(74,60,44,.14));
  opacity: 0;
  transform: translateY(-101%);
  transition: opacity .4s var(--ease), transform .58s var(--ease-out);
}
.site-header.is-stuck .site-header__bar { opacity: 1; transform: none; }

.site-header__bar::before,
.site-header__bar::after {
  content: "";
  position: absolute;
  top: 0;
  width: var(--inv);
  height: var(--inv);
  background: inherit;
  pointer-events: none;
}
.site-header__bar::before {
  left: calc(var(--inv) * -1);
  -webkit-mask: radial-gradient(circle at 0 100%, transparent var(--inv), #000 calc(var(--inv) + .5px));
          mask: radial-gradient(circle at 0 100%, transparent var(--inv), #000 calc(var(--inv) + .5px));
}
.site-header__bar::after {
  right: calc(var(--inv) * -1);
  -webkit-mask: radial-gradient(circle at 100% 100%, transparent var(--inv), #000 calc(var(--inv) + .5px));
          mask: radial-gradient(circle at 100% 100%, transparent var(--inv), #000 calc(var(--inv) + .5px));
}

/* Durante a medição da largura nada pode animar. */
.site-header.is-measuring,
.site-header.is-measuring * { transition: none !important; }

.brand {
  display: inline-flex;
  align-items: center;
  gap: .7rem;
  color: var(--ink);
  margin-right: auto;
}
.brand__mark {
  width: 46px;
  height: 46px;
  border-radius: 50%;
  overflow: hidden;
  background: var(--gold-wash);
  box-shadow: 0 0 0 1.5px rgba(199,152,86,.4), var(--sh-1);
  transition: transform .5s var(--ease-out), box-shadow .4s;
}
.brand__mark img { width: 100%; height: 100%; object-fit: cover; }
.brand:hover .brand__mark { transform: rotate(-7deg) scale(1.05); box-shadow: 0 0 0 2px rgba(199,152,86,.6), var(--sh-2); }
.brand__text { display: flex; flex-direction: column; line-height: 1.15; }
.brand__text strong {
  font-family: var(--font-display);
  font-size: 1.06rem;
  font-weight: 600;
  letter-spacing: -.022em;
}
.brand__text small { font-size: .72rem; color: var(--muted); letter-spacing: .07em; text-transform: uppercase; }

.nav { display: flex; align-items: center; gap: 1.75rem; }
.nav__list { display: flex; align-items: center; gap: 1.5rem; }
.nav__link {
  position: relative;
  touch-action: manipulation;
  -webkit-tap-highlight-color: transparent;
  color: var(--ink-2);
  font-size: var(--step--1);
  font-weight: 500;
  padding: .3rem 0;
}
.nav__link::after {
  content: "";
  position: absolute;
  left: 0; right: 0; bottom: -1px;
  height: 1.5px;
  background: var(--gold);
  border-radius: 2px;
  transform: scaleX(0);
  transform-origin: 100% 50%;
  transition: transform .4s var(--ease-out);
}
.nav__link:hover, .nav__link.is-active { color: var(--ink); }
.nav__link:hover::after, .nav__link.is-active::after { transform: scaleX(1); transform-origin: 0 50%; }

.nav-toggle {
  display: none;
  width: 44px; height: 44px;
  touch-action: manipulation;
  -webkit-tap-highlight-color: transparent;
  border: 0;
  border-radius: 50%;
  background: var(--sand);
  cursor: pointer;
  position: relative;
}
.nav-toggle span {
  position: absolute;
  left: 50%;
  width: 18px; height: 1.8px;
  border-radius: 2px;
  background: var(--ink);
  transform: translateX(-50%);
  transition: transform .4s var(--ease-out), opacity .3s;
}
.nav-toggle span:nth-child(1) { top: 18px; }
.nav-toggle span:nth-child(2) { top: 24px; }
.nav-toggle[aria-expanded="true"] span:nth-child(1) { top: 21px; transform: translateX(-50%) rotate(45deg); }
.nav-toggle[aria-expanded="true"] span:nth-child(2) { top: 21px; transform: translateX(-50%) rotate(-45deg); }

/* ---------- 5. Hero ---------- */

.hero {
  position: relative;
  padding-top: clamp(7rem, 12vh, 8.75rem);
  padding-bottom: clamp(3.25rem, 6vw, 5.5rem);
  overflow: clip;
  background:
    radial-gradient(90% 65% at 78% 8%, var(--gold-wash) 0%, transparent 62%),
    radial-gradient(70% 60% at 6% 90%, #F2E7DC 0%, transparent 60%),
    var(--cream);
}

.hero__aura {
  position: absolute;
  top: -18%;
  right: -12%;
  width: min(760px, 78vw);
  aspect-ratio: 1;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(233,200,138,.62) 0%, rgba(233,200,138,0) 68%);
  filter: blur(28px);
  animation: drift 17s var(--ease) infinite alternate;
  pointer-events: none;
}
@keyframes drift {
  from { transform: translate3d(0,0,0) scale(1); }
  to   { transform: translate3d(-4%, 4%, 0) scale(1.09); }
}

.hero__arcs {
  position: absolute;
  inset: auto 0 0 0;
  width: 100%;
  height: 78%;
  opacity: .8;
  pointer-events: none;
}

.hero__grid {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 1.12fr) minmax(0, .84fr);
  gap: clamp(2rem, 4.5vw, 4rem);
  align-items: center;
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: .5em;
  margin: 0 0 1.15rem;
  padding: .42em .95em .42em .8em;
  border-radius: 999px;
  background: rgba(255,255,255,.72);
  box-shadow: inset 0 0 0 1.2px var(--sand-2);
  color: var(--ink-3);
  font-size: .76rem;
  font-weight: 500;
  letter-spacing: .05em;
  text-transform: uppercase;
}
.eyebrow .ico { color: var(--gold-deep); width: 1em; height: 1em; }
.eyebrow--light {
  background: rgba(251,247,241,.14);
  box-shadow: inset 0 0 0 1.2px rgba(251,247,241,.32);
  color: rgba(251,247,241,.92);
}
.eyebrow--light .ico { color: var(--gold-soft); }

.hero__title {
  font-size: var(--step-4);
  max-width: 14ch;
  margin: .4rem 0 1.15rem;
}

.hero__lead {
  font-size: var(--step-1);
  color: var(--ink-2);
  max-width: 44ch;
  margin-bottom: 1.75rem;
}

.hero__actions {
  display: flex;
  flex-wrap: wrap;
  gap: .75rem;
  margin-bottom: 2.1rem;
}

.hero__facts {
  display: flex;
  flex-wrap: wrap;
  gap: 1.15rem 2.4rem;
  margin: 0;
  padding-top: 1.35rem;
  border-top: 1px solid var(--sand-2);
}
.hero__facts dt {
  font-size: .68rem;
  letter-spacing: .1em;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: .3rem;
}
.hero__facts dd {
  margin: 0;
  font-size: var(--step--1);
  font-weight: 500;
  color: var(--ink);
}

/* palco de imagens */
.hero__stage {
  position: relative;
  min-height: min(34rem, 66vh);
}

.arch {
  position: relative;
  margin: 0;
  overflow: hidden;
  border-radius: var(--arch);
  background: var(--sand);
  box-shadow: var(--sh-3);
}
.arch img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: var(--pos, 50% 50%);
}
.arch::after {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;
  box-shadow: inset 0 0 0 1px rgba(255,255,255,.4), inset 0 -60px 80px -50px rgba(43,33,23,.5);
  pointer-events: none;
}

.arch--hero {
  width: min(76%, 23.5rem);
  aspect-ratio: 3 / 3.85;
  margin-left: auto;
}
.arch--hero-sm {
  position: absolute;
  left: -7%;
  bottom: 1%;
  width: min(37%, 11rem);
  aspect-ratio: 3 / 4;
  border-radius: 999px 999px var(--r) var(--r);
  box-shadow: var(--sh-2);
  border: 5px solid var(--cream);
}

.float-card {
  position: absolute;
  left: 4%;
  top: 8%;
  display: flex;
  align-items: center;
  gap: .8rem;
  width: min(19rem, 68%);
  padding: .65rem .95rem .65rem .65rem;
  border-radius: var(--r-lg);
  background: rgba(255,255,255,.88);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  box-shadow: var(--sh-2);
  transition: transform .5s var(--ease-out), box-shadow .5s var(--ease);
}
.float-card:hover { transform: translateY(-4px); box-shadow: var(--sh-3); }
.float-card__thumb {
  width: 3.1rem; height: 3.1rem;
  flex: none;
  border-radius: 16px;
  overflow: hidden;
  background: var(--sand);
}
.float-card__thumb img { width: 100%; height: 100%; object-fit: cover; }
.float-card__body { display: flex; flex-direction: column; line-height: 1.3; min-width: 0; }
.float-card__body strong { font-size: .93rem; }
.float-card__body small { font-size: .76rem; color: var(--ink-3); }
.float-card__go { color: var(--gold-deep); margin-left: auto; width: 1.05rem; height: 1.05rem; }
.stretched { position: absolute; inset: 0; border-radius: inherit; }

.seal {
  position: absolute;
  right: 2%;
  bottom: 2%;
  width: 7.4rem; height: 7.4rem;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: var(--cream);
  box-shadow: var(--sh-2);
}
.seal > svg:first-child {
  position: absolute;
  inset: 0;
  width: 100%; height: 100%;
  animation: spin 26s linear infinite;
}
.seal text {
  font-family: var(--font-body);
  font-size: 7.1px;
  font-weight: 500;
  letter-spacing: .1em;
  text-transform: uppercase;
  fill: var(--ink-3);
}
.seal__ico { width: 2rem; height: 2rem; color: var(--gold-deep); stroke-width: 1.4; }
@keyframes spin { to { transform: rotate(360deg); } }

.scroll-cue {
  position: absolute;
  left: 50%;
  bottom: 1.4rem;
  transform: translateX(-50%);
  display: grid;
  place-items: center;
  gap: .4rem;
  color: var(--muted);
}
.scroll-cue span {
  display: block;
  width: 1.3px; height: 2.6rem;
  background: linear-gradient(var(--sand-2), transparent);
  overflow: hidden;
  position: relative;
}
.scroll-cue span::after {
  content: "";
  position: absolute;
  inset: 0 auto auto 0;
  width: 100%; height: 40%;
  background: var(--gold-deep);
  animation: cue 2.3s var(--ease) infinite;
}
@keyframes cue {
  0%   { transform: translateY(-100%); opacity: 0; }
  35%  { opacity: 1; }
  100% { transform: translateY(260%); opacity: 0; }
}
.scroll-cue .ico { width: .95rem; height: .95rem; }

/* ---------- 7. Seções ---------- */

.section {
  position: relative;
  padding-block: var(--sec-y);
}
.section--cream { background: var(--cream-2); }
.section--clay {
  background:
    radial-gradient(75% 60% at 15% 0%, rgba(233,200,138,.16) 0%, transparent 60%),
    linear-gradient(165deg, var(--clay) 0%, var(--clay-deep) 100%);
  color: rgba(251,247,241,.86);
  overflow: hidden;
}
.section--clay h2, .section--clay h3, .section--clay strong { color: #fff; }

.sec-head { margin-bottom: clamp(2.25rem, 4vw, 3.4rem); max-width: 42rem; }
.sec-head--center { margin-inline: auto; text-align: center; }
.sec-head--center .eyebrow { justify-content: center; }
.sec-head h2 { font-size: var(--step-3); }
.sec-head__sub { margin-top: 1.1rem; font-size: var(--step-1); color: var(--ink-3); }
.section--clay .sec-head__sub { color: rgba(251,247,241,.78); }

.lede { font-size: var(--step-1); color: var(--ink-2); }
.section--clay .lede { color: rgba(251,247,241,.9); }

/* ---------- 8. Quem somos ---------- */

.about {
  display: grid;
  grid-template-columns: minmax(0, .82fr) minmax(0, 1.05fr);
  gap: clamp(2rem, 5vw, 4.5rem);
  align-items: center;
  margin-bottom: clamp(3.5rem, 7vw, 6rem);
}
.arch--about { aspect-ratio: 3 / 3.7; --pos: 50% 26%; }
.arch--about figcaption {
  position: absolute;
  left: 50%;
  bottom: 1.1rem;
  transform: translateX(-50%);
  white-space: nowrap;
  padding: .38em 1em;
  border-radius: 999px;
  background: rgba(43,33,23,.42);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  color: rgba(255,255,255,.95);
  font-size: .74rem;
  letter-spacing: .03em;
  z-index: 1;
}

.pullquote {
  position: relative;
  margin: 2.2rem 0 0;
  padding: 2rem 1.9rem;
  border-radius: var(--r-lg);
  background: var(--gold-wash);
  box-shadow: inset 0 0 0 1px rgba(199,152,86,.28);
}
.pullquote__mark {
  position: absolute;
  width: 2rem; height: 2rem;
  padding: .38rem;
  border-radius: 50%;
  background: var(--cream);
  color: var(--gold-deep);
  box-shadow: var(--sh-1);
  box-sizing: content-box;
}
.pullquote__mark--open { top: -.85rem; left: 1.6rem; }
.pullquote__mark--close { bottom: -.85rem; right: 1.6rem; transform: rotate(180deg); }

.pullquote p {
  font-family: var(--font-display);
  font-size: var(--step-2);
  font-style: italic;
  font-weight: 400;
  line-height: 1.28;
  letter-spacing: -.02em;
  color: var(--ink);
  margin-bottom: 0;
  text-wrap: balance;
}

.values {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(15rem, 1fr));
  gap: clamp(1rem, 2vw, 1.5rem);
}
.v-card {
  padding: 1.9rem 1.6rem;
  border-radius: var(--r-lg);
  background: #fff;
  box-shadow: var(--sh-1);
  transition: transform .45s var(--ease-out), box-shadow .45s var(--ease);
}
.v-card:hover { transform: translateY(-5px); box-shadow: var(--sh-2); }
.v-card__ico {
  display: grid;
  place-items: center;
  width: 3rem; height: 3rem;
  margin-bottom: 1.1rem;
  border-radius: 18px;
  background: var(--gold-wash);
  color: var(--gold-deep);
  transition: transform .5s var(--ease-out), background .35s;
}
.v-card__ico .ico { width: 1.4rem; height: 1.4rem; stroke-width: 1.5; }
.v-card:hover .v-card__ico { transform: rotate(-6deg) scale(1.06); background: var(--gold-soft); }
.v-card h3 { font-family: var(--font-display); font-size: 1.22rem; margin-bottom: .45rem; }
.v-card p { font-size: var(--step--1); color: var(--ink-3); }

/* ---------- 9. Tijolinho ---------- */

.tijolinho {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(0, .8fr);
  gap: clamp(2rem, 5vw, 4.5rem);
  align-items: center;
  margin-bottom: clamp(3rem, 6vw, 5rem);
}
.tijolinho h2 { font-size: var(--step-3); margin-bottom: 1.4rem; max-width: 16ch; }
.tijolinho__actions { display: flex; flex-wrap: wrap; gap: .85rem; margin-top: 2rem; }

.tijolinho__visual { position: relative; }
.arch--tall { aspect-ratio: 3 / 4; --pos: 50% 74%; }
.arch--tall::after { box-shadow: inset 0 0 0 1px rgba(255,255,255,.25); }

.roots {
  position: absolute;
  left: 50%;
  bottom: -2.6rem;
  width: 62%;
  transform: translateX(-50%);
  color: rgba(251,247,241,.34);
  pointer-events: none;
}

.steps {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(15rem, 1fr));
  gap: clamp(1rem, 2.5vw, 2rem);
  padding-top: clamp(2rem, 4vw, 3rem);
  border-top: 1px solid rgba(251,247,241,.2);
}
.step { position: relative; padding-left: 3.6rem; }
.step__n {
  position: absolute;
  left: 0; top: -.1rem;
  display: grid;
  place-items: center;
  width: 2.6rem; height: 2.6rem;
  border-radius: 50%;
  background: rgba(251,247,241,.12);
  box-shadow: inset 0 0 0 1px rgba(251,247,241,.3);
  font-family: var(--font-display);
  font-size: .86rem;
  font-weight: 600;
  color: var(--gold-soft);
}
.step h3 { font-family: var(--font-display); font-size: 1.18rem; margin-bottom: .4rem; }
.step p { font-size: var(--step--1); color: rgba(251,247,241,.76); }

/* ---------- 10. Linha do tempo ---------- */

.timeline {
  position: relative;
  max-width: 54rem;
  margin-inline: auto;
  padding-left: 3.4rem;
}
.timeline::before {
  content: "";
  position: absolute;
  left: 1.32rem;
  top: .6rem;
  bottom: .6rem;
  width: 1.6px;
  background: linear-gradient(var(--sand-2), var(--gold-soft) 20%, var(--gold-soft) 80%, transparent);
  transform-origin: 50% 0;
  transform: scaleY(var(--tl-progress, 1));
  transition: transform .2s linear;
}
.tl { position: relative; padding-bottom: 2rem; }
.tl:last-child { padding-bottom: 0; }
.tl__dot {
  position: absolute;
  left: -3.4rem;
  top: .45rem;
  display: grid;
  place-items: center;
  width: 2.65rem; height: 2.65rem;
  border-radius: 50%;
  background: var(--cream);
  box-shadow: 0 0 0 1.4px var(--sand-2), var(--sh-1);
  color: var(--gold-deep);
  transition: transform .5s var(--ease-out), box-shadow .4s;
}
.tl__dot .ico { width: 1.15rem; height: 1.15rem; stroke-width: 1.55; }
.tl:hover .tl__dot { transform: scale(1.08); box-shadow: 0 0 0 1.4px var(--gold), var(--sh-2); }

.tl__card {
  padding: 1.6rem 1.7rem;
  border-radius: var(--r-lg);
  background: #fff;
  box-shadow: var(--sh-1);
  transition: transform .45s var(--ease-out), box-shadow .45s var(--ease);
}
.tl:hover .tl__card { transform: translateY(-3px); box-shadow: var(--sh-2); }
.tl__card--media {
  display: grid;
  grid-template-columns: 9.5rem minmax(0, 1fr);
  gap: 1.5rem;
  align-items: center;
  padding: 1.1rem 1.7rem 1.1rem 1.1rem;
}
.tl__media {
  margin: 0;
  aspect-ratio: 4 / 3.4;
  border-radius: var(--r);
  overflow: hidden;
  background: var(--sand);
}
.tl__media img { width: 100%; height: 100%; object-fit: cover; transition: transform .8s var(--ease-out); }
.tl:hover .tl__media img { transform: scale(1.06); }
.tl__date {
  margin-bottom: .3rem;
  font-size: .72rem;
  letter-spacing: .09em;
  text-transform: uppercase;
  color: var(--gold-deep);
  font-weight: 500;
}
.tl__card h3 { font-family: var(--font-display); font-size: 1.24rem; margin-bottom: .45rem; }
.tl__card p { font-size: var(--step--1); color: var(--ink-3); }

/* ---------- 11. Galeria ---------- */

.gallery { padding-block: var(--sec-y); overflow: hidden; }
.gallery__head {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-end;
  justify-content: space-between;
  gap: 1.5rem;
  margin-bottom: clamp(2rem, 4vw, 3rem);
}
.gallery__head h2 { font-size: var(--step-3); }

.marquee {
  position: relative;
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 6%, #000 94%, transparent);
  mask-image: linear-gradient(90deg, transparent, #000 6%, #000 94%, transparent);
}
.marquee__track {
  display: flex;
  gap: 1.1rem;
  width: max-content;
  animation: slide var(--marquee-dur, 62s) linear infinite;
}
.marquee:hover .marquee__track,
.marquee:focus-within .marquee__track { animation-play-state: paused; }
@keyframes slide { to { transform: translateX(-50%); } }

.shot {
  position: relative;
  margin: 0;
  width: clamp(13rem, 21vw, 17rem);
  aspect-ratio: 4 / 5;
  border-radius: var(--r-lg);
  overflow: hidden;
  background: var(--sand);
  box-shadow: var(--sh-1);
  flex: none;
}
.shot img { width: 100%; height: 100%; object-fit: cover; transition: transform .9s var(--ease-out), filter .5s; }
.shot::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(43,33,23,.62), transparent 52%);
  opacity: .85;
  transition: opacity .45s;
}
.shot:hover img { transform: scale(1.07); }
.shot:hover::after { opacity: 1; }
.shot figcaption {
  position: absolute;
  left: 1.1rem; right: 1.1rem; bottom: 1rem;
  z-index: 1;
  color: #fff;
  font-size: .82rem;
  font-weight: 500;
  letter-spacing: .01em;
  transform: translateY(4px);
  transition: transform .45s var(--ease-out);
}
.shot:hover figcaption { transform: translateY(0); }

/* ---------- 12. Doar ---------- */

.give {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: clamp(1.5rem, 3.5vw, 3rem);
  align-items: start;
}

.give__pix {
  padding: clamp(1.6rem, 3vw, 2.4rem);
  border-radius: var(--r-xl);
  background: #fff;
  box-shadow: var(--sh-2);
  position: relative;
  overflow: hidden;
}
.give__pix::before {
  content: "";
  position: absolute;
  top: -40%; right: -25%;
  width: 60%; aspect-ratio: 1;
  border-radius: 50%;
  background: radial-gradient(circle, var(--gold-wash), transparent 70%);
  pointer-events: none;
}
.give__pix-head {
  position: relative;
  display: flex;
  align-items: center;
  gap: .9rem;
  padding-bottom: 1.4rem;
  margin-bottom: 1.4rem;
  border-bottom: 1px solid var(--sand);
}
.give__pix-head .ico { width: 1.7rem; height: 1.7rem; color: var(--gold-deep); stroke-width: 1.5; }
.give__pix-head h3 { font-family: var(--font-display); font-size: 1.3rem; }
.give__pix-head p { margin: .15rem 0 0; font-size: .85rem; color: var(--ink-3); }

.copyrow {
  position: relative;
  display: grid;
  grid-template-columns: 1fr auto;
  align-items: center;
  gap: .8rem;
  padding: 1rem 1.1rem;
  border-radius: var(--r);
  background: var(--gold-wash);
  box-shadow: inset 0 0 0 1px rgba(199,152,86,.32);
}
.copyrow__label {
  grid-column: 1;
  font-size: .68rem;
  letter-spacing: .1em;
  text-transform: uppercase;
  color: var(--ink-3);
}
.copyrow__value {
  grid-column: 1;
  font-family: var(--font-display);
  font-size: 1.2rem;
  font-weight: 600;
  letter-spacing: -.01em;
  color: var(--ink);
  word-break: break-all;
}
.copyrow__btn {
  grid-column: 2;
  grid-row: 1 / span 2;
  display: inline-flex;
  align-items: center;
  gap: .45em;
  padding: .6em 1em;
  border: 0;
  border-radius: 999px;
  background: var(--ink);
  color: var(--cream);
  font: inherit;
  font-size: .8rem;
  font-weight: 500;
  cursor: pointer;
  transition: background .3s, transform .3s var(--ease-out);
}
.copyrow__btn:hover { background: var(--gold-deep); transform: translateY(-1px); }
.copyrow.is-copied .copyrow__btn { background: var(--leaf); }

.bankinfo {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(8rem, 1fr));
  gap: 1.1rem;
  margin: 1.5rem 0;
}
.bankinfo dt {
  font-size: .68rem;
  letter-spacing: .1em;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: .22rem;
}
.bankinfo dd { margin: 0; font-weight: 500; color: var(--ink); font-size: var(--step--1); }

.give__note {
  display: flex;
  gap: .7rem;
  margin: 0;
  padding-top: 1.3rem;
  border-top: 1px solid var(--sand);
  font-size: .85rem;
  color: var(--ink-3);
  line-height: 1.55;
}
.give__note .ico { width: 1.15rem; height: 1.15rem; color: var(--leaf); flex: none; margin-top: .15rem; }

.give__ways-title {
  font-family: var(--font-display);
  font-size: 1.3rem;
  margin-bottom: 1.2rem;
}
.ways { display: grid; gap: .8rem; margin-bottom: 1.6rem; }
.way {
  display: flex;
  align-items: flex-start;
  gap: 1rem;
  padding: 1.1rem 1.25rem;
  border-radius: var(--r-lg);
  background: #fff;
  box-shadow: var(--sh-1);
  transition: transform .4s var(--ease-out), box-shadow .4s;
}
.way:hover { transform: translateX(5px); box-shadow: var(--sh-2); }
.way__ico {
  display: grid;
  place-items: center;
  width: 2.5rem; height: 2.5rem;
  flex: none;
  border-radius: 14px;
  background: var(--cream-2);
  color: var(--gold-deep);
}
.way__ico .ico { width: 1.2rem; height: 1.2rem; stroke-width: 1.55; }
.way h4 { font-size: 1rem; margin-bottom: .15rem; }
.way p { font-size: .87rem; color: var(--ink-3); margin: 0; }

/* ---------- 13. Parceiros ---------- */

.partners {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(17rem, 1fr));
  gap: clamp(1rem, 2.5vw, 1.8rem);
}
.p-card {
  display: flex;
  flex-direction: column;
  padding: clamp(1.6rem, 3vw, 2.2rem);
  border-radius: var(--r-xl);
  background: #fff;
  box-shadow: var(--sh-1);
  transition: transform .45s var(--ease-out), box-shadow .45s var(--ease);
}
.p-card:hover { transform: translateY(-6px); box-shadow: var(--sh-2); }
.p-card--featured {
  background: linear-gradient(170deg, var(--gold-wash), #fff 58%);
  box-shadow: var(--sh-2), inset 0 0 0 1.4px rgba(199,152,86,.32);
}
.p-card__ico {
  display: grid;
  place-items: center;
  width: 3.2rem; height: 3.2rem;
  margin-bottom: 1.3rem;
  border-radius: 20px;
  background: var(--cream-2);
  color: var(--gold-deep);
  transition: transform .5s var(--ease-out);
}
.p-card--featured .p-card__ico { background: #fff; }
.p-card__ico .ico { width: 1.5rem; height: 1.5rem; stroke-width: 1.5; }
.p-card:hover .p-card__ico { transform: rotate(-6deg) scale(1.05); }
.p-card h3 { font-family: var(--font-display); font-size: 1.4rem; margin-bottom: .6rem; }
.p-card > p { font-size: var(--step--1); color: var(--ink-3); }

.ticks { display: grid; gap: .55rem; margin: 1.2rem 0 1.8rem; }
.ticks li {
  position: relative;
  padding-left: 1.7rem;
  font-size: .88rem;
  color: var(--ink-2);
}
.ticks li::before {
  content: "";
  position: absolute;
  left: 0; top: .42em;
  width: 1.05rem; height: 1.05rem;
  border-radius: 50%;
  background: var(--leaf-soft) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23455139' stroke-width='3.2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M20 6 9 17l-5-5'/%3E%3C/svg%3E") center / .62rem no-repeat;
}

.p-card__link {
  display: inline-flex;
  align-items: center;
  gap: .45em;
  margin-top: auto;
  color: var(--gold-deep);
  font-size: var(--step--1);
  font-weight: 500;
}
.p-card__link .ico { transition: transform .4s var(--ease-out); }
.p-card__link:hover { color: var(--clay); }
.p-card__link:hover .ico { transform: translateX(4px); }

/* ---------- 14. Contato ---------- */

.contact {
  display: grid;
  grid-template-columns: minmax(0, .92fr) minmax(0, 1.08fr);
  gap: clamp(1.8rem, 4vw, 3.5rem);
  align-items: start;
}

.cinfo { display: grid; gap: 1.4rem; margin-bottom: 2rem; }
.cinfo li { display: flex; align-items: flex-start; gap: 1rem; }
.cinfo__ico {
  display: grid;
  place-items: center;
  width: 2.7rem; height: 2.7rem;
  flex: none;
  border-radius: 16px;
  background: #fff;
  color: var(--gold-deep);
  box-shadow: var(--sh-1);
  transition: transform .4s var(--ease-out), color .3s;
}
.cinfo li:hover .cinfo__ico { transform: translateY(-3px); color: var(--clay); }
.cinfo__ico .ico { width: 1.2rem; height: 1.2rem; stroke-width: 1.6; }
.cinfo strong { display: block; font-size: .72rem; letter-spacing: .09em; text-transform: uppercase; color: var(--muted); font-weight: 500; margin-bottom: .18rem; }
.cinfo a { color: var(--ink); font-weight: 500; }
.cinfo a:hover { color: var(--clay); }
.cinfo address { font-style: normal; font-size: var(--step--1); color: var(--ink-2); line-height: 1.5; }

.arch--contact { aspect-ratio: 4 / 3.2; --pos: 50% 58%; }

.form {
  padding: clamp(1.6rem, 3vw, 2.4rem);
  border-radius: var(--r-xl);
  background: #fff;
  box-shadow: var(--sh-2);
}
.form__intro { font-size: .9rem; color: var(--ink-3); margin-bottom: 1.6rem; }

.field { margin-bottom: 1.1rem; }
.field-row { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; }
.field label {
  display: block;
  margin-bottom: .45rem;
  font-size: .78rem;
  font-weight: 500;
  letter-spacing: .04em;
  text-transform: uppercase;
  color: var(--ink-3);
}
.field .opt { text-transform: none; letter-spacing: 0; color: var(--muted); font-weight: 400; }

.field input,
.field textarea,
.field select {
  width: 100%;
  padding: .85rem 1rem;
  border: 1.4px solid var(--sand-2);
  border-radius: var(--r-sm);
  background: var(--cream);
  color: var(--ink);
  font: inherit;
  font-size: var(--step--1);
  transition: border-color .3s, background .3s, box-shadow .3s;
}
.field textarea { resize: vertical; min-height: 7rem; line-height: 1.6; }
.field input:hover, .field textarea:hover, .field select:hover { border-color: var(--gold-soft); }
.field input:focus, .field textarea:focus, .field select:focus {
  outline: none;
  border-color: var(--gold);
  background: #fff;
  box-shadow: 0 0 0 4px rgba(199,152,86,.16);
}
.field.is-invalid input,
.field.is-invalid textarea { border-color: var(--danger); background: #FCF4F2; }

.select-wrap { position: relative; }
.select-wrap select { appearance: none; padding-right: 2.8rem; cursor: pointer; }
.select-wrap .ico {
  position: absolute;
  right: 1rem; top: 50%;
  transform: translateY(-50%);
  width: 1.05rem; height: 1.05rem;
  color: var(--ink-3);
  pointer-events: none;
}

.field__error {
  display: block;
  min-height: 1.1rem;
  margin-top: .3rem;
  font-size: .78rem;
  color: var(--danger);
  opacity: 0;
  transform: translateY(-3px);
  transition: opacity .3s, transform .3s var(--ease-out);
}
.field.is-invalid .field__error { opacity: 1; transform: translateY(0); }

.form__ok {
  display: flex;
  align-items: center;
  gap: .6rem;
  margin: 1rem 0 0;
  padding: .9rem 1.1rem;
  border-radius: var(--r-sm);
  background: #EFF3EA;
  color: #41522F;
  font-size: .88rem;
  opacity: 0;
  max-height: 0;
  padding-block: 0;
  overflow: hidden;
  transition: opacity .4s, max-height .5s var(--ease), padding .4s;
}
.form__ok.is-on { opacity: 1; max-height: 6rem; padding-block: .9rem; }
.form__ok .ico { color: var(--leaf); }

/* ---------- 15. Finale ---------- */

.finale {
  position: relative;
  overflow: hidden;
  padding-block: clamp(4rem, 8vw, 6.5rem);
  text-align: center;
  background:
    radial-gradient(70% 80% at 50% 0%, rgba(233,200,138,.2) 0%, transparent 65%),
    linear-gradient(160deg, #3A2C1E 0%, #221A12 100%);
  color: rgba(251,247,241,.78);
}
.finale__inner { position: relative; display: grid; justify-items: center; gap: 1.2rem; }
.finale h2 { font-size: var(--step-3); color: #fff; max-width: 16ch; }
.finale p { max-width: 42ch; margin: 0; }
.finale__ico { width: 2.4rem; height: 2.4rem; color: var(--gold-soft); stroke-width: 1.3; }
.finale .btn { margin-top: .8rem; }

/* ---------- 16. Rodapé ---------- */

.site-footer {
  background: var(--cream-2);
  border-top: 1px solid var(--sand-2);
  padding-block: clamp(3rem, 6vw, 4.5rem) 2rem;
  font-size: var(--step--1);
}
.site-footer__top {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1.5fr);
  gap: clamp(2rem, 5vw, 4rem);
  padding-bottom: 2.5rem;
  border-bottom: 1px solid var(--sand-2);
}
.brand--footer { margin-right: 0; margin-bottom: 1rem; }
.site-footer__brand p { color: var(--ink-3); max-width: 28ch; font-family: var(--font-display); font-style: italic; font-size: 1.02rem; line-height: 1.45; }

.socials { display: flex; gap: .6rem; margin-top: 1.2rem; }
.socials a {
  display: grid;
  place-items: center;
  width: 2.5rem; height: 2.5rem;
  border-radius: 50%;
  background: #fff;
  color: var(--ink-2);
  box-shadow: var(--sh-1);
  transition: transform .4s var(--ease-out), color .3s, background .3s;
}
.socials a:hover { transform: translateY(-3px); background: var(--gold); color: #fff; }
.socials .ico { width: 1.1rem; height: 1.1rem; }

.site-footer__nav {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(11rem, 1fr));
  gap: 2rem;
}
.site-footer__nav h3 {
  font-size: .72rem;
  letter-spacing: .1em;
  text-transform: uppercase;
  color: var(--muted);
  font-weight: 500;
  margin-bottom: .9rem;
}
.site-footer__nav ul { display: grid; gap: .55rem; }
.site-footer__nav a { color: var(--ink-2); }
.site-footer__nav a:hover { color: var(--clay); }
.site-footer__data li { color: var(--ink-3); line-height: 1.5; }

.site-footer__bottom {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: .6rem;
  padding-top: 1.6rem;
  color: var(--muted);
  font-size: .82rem;
}
.site-footer__bottom p { margin: 0; }

.to-top {
  position: fixed;
  right: clamp(1rem, 3vw, 2rem);
  bottom: calc(clamp(1rem, 3vw, 2rem) + env(safe-area-inset-bottom, 0px));
  z-index: 90;
  width: 3rem; height: 3rem;
  display: grid;
  place-items: center;
  border: 0;
  border-radius: 50%;
  background: var(--ink);
  color: var(--cream);
  cursor: pointer;
  opacity: 0;
  transform: translateY(14px) scale(.85);
  pointer-events: none;
  box-shadow: var(--sh-2);
  transition: opacity .4s, transform .5s var(--ease-out), background .3s;
}
.to-top.is-on { opacity: 1; transform: none; pointer-events: auto; }
.to-top:hover { background: var(--gold-deep); }
.to-top .ico { width: 1.15rem; height: 1.15rem; transform: rotate(-45deg); }

.toast {
  position: fixed;
  left: 50%;
  bottom: 2rem;
  z-index: 200;
  transform: translate(-50%, 140%);
  padding: .85rem 1.4rem;
  border-radius: 999px;
  background: var(--ink);
  color: var(--cream);
  font-size: .85rem;
  box-shadow: var(--sh-3);
  opacity: 0;
  visibility: hidden;
  transition: transform .55s var(--ease-out), opacity .35s, visibility .35s;
}
.toast.is-on { transform: translate(-50%, 0); opacity: 1; visibility: visible; }

/* ---------- 17. Animações ---------- */

/* Sem JavaScript nada se esconde: os estados iniciais dependem da classe .js */

.js .reveal {
  opacity: 0;
  transform: translateY(22px);
  filter: blur(6px);
  will-change: transform, opacity;
  transition:
    opacity .8s var(--ease-out) var(--d, 0s),
    transform .9s var(--ease-out) var(--d, 0s),
    filter .8s var(--ease-out) var(--d, 0s);
}
.js .reveal.is-in { opacity: 1; transform: none; filter: none; will-change: auto; }

.js .reveal-img {
  clip-path: inset(0 0 100% 0 round 999px 999px 28px 28px);
  opacity: 0;
  will-change: clip-path;
  transition: clip-path 1.15s var(--ease-out) var(--d, 0s), opacity .5s linear var(--d, 0s);
}
.js .reveal-img.is-in {
  clip-path: inset(0 0 0 0 round 999px 999px 28px 28px);
  opacity: 1;
  will-change: auto;
}
.js .reveal-img img {
  transform: scale(1.14);
  transition: transform 1.5s var(--ease-out) var(--d, 0s);
}
.js .reveal-img.is-in img { transform: scale(1); }

[data-split] .line { display: inline-block; overflow: hidden; vertical-align: bottom; padding-bottom: .09em; margin-bottom: -.09em; }
.js [data-split] .word {
  display: inline-block;
  transform: translateY(105%) rotate(2.5deg);
  opacity: 0;
  transition: transform .95s var(--ease-out), opacity .7s linear;
  transition-delay: var(--wd, 0s);
}
.js [data-split].is-in .word { transform: none; opacity: 1; }

.js .draw {
  stroke-dasharray: var(--len, 1200);
  stroke-dashoffset: var(--len, 1200);
  transition: stroke-dashoffset 2.4s var(--ease-out) var(--d, 0s);
}
.js .draw.is-in { stroke-dashoffset: 0; }

.magnetic { transition: transform .45s var(--ease-out), box-shadow .35s var(--ease), color .25s; }

/* ---------- 18. Responsivo ---------- */

@media (max-width: 1080px) {
  .nav__list { gap: 1.1rem; }
  .nav { gap: 1.1rem; }
  .nav__link { font-size: .84rem; }
}

@media (max-width: 920px) {
  .nav-toggle { display: block; }

  /* No telefone o conteúdo do cabeçalho é só a marca e o botão. Recolher até
     essa largura daria uma pastilha pequena demais, então a ilha recolhe até
     as margens da página e mantém a mesma forma. */
  .site-header.is-stuck .site-header__inner {
    max-width: calc(100% - 2 * var(--gutter));
    padding-inline: .9rem;
  }
  .site-header__bar { --inv: 14px; }

  /* Painel simples: opacidade e deslocamento. Sem clip-path, que falha em
     navegadores móveis antigos, e com altura dinâmica por causa da barra do
     navegador, que aparece e desaparece durante a rolagem. */
  .nav {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    height: 100vh;
    height: 100dvh;
    flex-direction: column;
    justify-content: center;
    gap: 2.25rem;
    padding: calc(5.5rem + env(safe-area-inset-top, 0px)) var(--gutter)
             calc(2.5rem + env(safe-area-inset-bottom, 0px));
    overflow-y: auto;
    overscroll-behavior: contain;
    -webkit-overflow-scrolling: touch;
    background: var(--cream);
    opacity: 0;
    visibility: hidden;
    transform: translateY(-10px);
    transition: opacity .32s var(--ease), transform .45s var(--ease-out), visibility .32s;
  }
  .nav.is-open { opacity: 1; visibility: visible; transform: none; }
  .brand { position: relative; z-index: 2; }
  .nav-toggle { position: relative; z-index: 3; }
  .nav__list { flex-direction: column; gap: 1.4rem; text-align: center; }
  .nav__link { font-size: 1.4rem; font-family: var(--font-display); }
  .nav__cta { font-size: var(--step-0); padding: .9em 1.7em; }

  .hero { padding-top: 7.5rem; }
  .hero__grid { grid-template-columns: 1fr; gap: 3.5rem; }
  .hero__title { max-width: 16ch; }
  .hero__stage { min-height: 0; max-width: 34rem; margin-inline: auto; width: 100%; }
  .arch--hero { width: min(72%, 22rem); }
  .seal { width: 6rem; height: 6rem; right: 0; }
  .seal__ico { width: 1.6rem; height: 1.6rem; }
  .scroll-cue { display: none; }

  .about { grid-template-columns: 1fr; }
  .arch--about { max-width: 26rem; margin-inline: auto; aspect-ratio: 4 / 4.2; }

  .tijolinho { grid-template-columns: 1fr; }
  .tijolinho__visual { max-width: 24rem; margin-inline: auto; width: 100%; }
  .roots { display: none; }

  .give { grid-template-columns: 1fr; }
  .contact { grid-template-columns: 1fr; }
  .arch--contact { max-width: 30rem; }

  .site-footer__top { grid-template-columns: 1fr; }
}

@media (max-width: 620px) {
  .hero__facts { gap: 1.1rem 1.8rem; }
  .hero__facts > div { flex: 1 1 8rem; }
  .hero__actions .btn { flex: 1 1 100%; justify-content: center; }
  .float-card { position: static; width: 100%; margin-top: 1.2rem; }
  .arch--hero { width: 100%; margin-inline: auto; }
  .arch--hero-sm { display: none; }
  .seal { top: -1.2rem; right: -0.3rem; bottom: auto; width: 5.2rem; height: 5.2rem; }

  .timeline { padding-left: 2.9rem; }
  .timeline::before { left: 1.07rem; }
  .tl__dot { left: -2.9rem; width: 2.15rem; height: 2.15rem; }
  .tl__dot .ico { width: .95rem; height: .95rem; }
  .tl__card--media { grid-template-columns: 1fr; gap: 1rem; padding: 1.1rem; }
  .tl__media { aspect-ratio: 16 / 10; }

  .field-row { grid-template-columns: 1fr; gap: 0; }
  .copyrow { grid-template-columns: 1fr; }
  .copyrow__btn { grid-column: 1; grid-row: auto; justify-content: center; }

  .site-footer__bottom { flex-direction: column; }
}

/* ---------- 19. Movimento reduzido ---------- */

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation-duration: .001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: .001ms !important;
  }
  .reveal, .reveal-img, [data-split] .word,
  .js .reveal, .js .reveal-img, .js [data-split] .word {
    opacity: 1 !important;
    transform: none !important;
    filter: none !important;
    clip-path: none !important;
  }
  .draw, .js .draw { stroke-dashoffset: 0 !important; }
  .marquee__track { animation: none; }
}

/* ---------- 20. Impressão ---------- */

@media print {
  .site-header, .to-top, .scroll-cue, .scroll-progress, .marquee, .form { display: none !important; }
  body { background: #fff; color: #000; }
  .reveal, .reveal-img, .js .reveal, .js .reveal-img { opacity: 1 !important; transform: none !important; clip-path: none !important; filter: none !important; }
  .js [data-split] .word { opacity: 1 !important; transform: none !important; }
}
