/* ============================================================
   Raquel Silva: estilos do site
   Conceito: fios que tecem. Papel cru, terra, folha e argila.
   ============================================================ */
:root {
  --paper: #f7f1e8;
  --hero: #fff1db;
  --paper-2: #efe5d6;
  --paper-3: #e5d5bf;
  --card: #fbf8f2;
  --ink: #2f2620;
  --ink-2: #5a4a3e;
  --muted: #86735f;
  --line: #dccab2;

  --terra: #b4552d;
  --terra-d: #8e3d1d;
  --ocre: #c08a2e;
  --sage: #7a8560;
  --moss: #55603e;
  --clay: #c47656;
  --rust: #99492e;

  --serif: 'Instrument Serif', 'Times New Roman', serif;
  --sans: 'DM Sans', system-ui, -apple-system, 'Segoe UI', sans-serif;
  --hand: 'Caveat', 'Segoe Print', cursive;

  --radius: 18px;
  --shadow: 0 1px 2px rgba(60, 40, 20, .06), 0 12px 32px -12px rgba(60, 40, 20, .22);
  --wrap: 1240px;
  --gut: clamp(16px, 4vw, 40px);
  --ease: cubic-bezier(.2, .7, .2, 1);
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font: 400 17px/1.65 var(--sans);
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
/* grão de papel */
body::before {
  content: '';
  position: fixed; inset: 0;
  pointer-events: none; z-index: 100;
  opacity: .35;
  mix-blend-mode: multiply;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='160' height='160'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.85' numOctaves='3' stitchTiles='stitch'/%3E%3CfeColorMatrix values='0 0 0 0 .45 0 0 0 0 .35 0 0 0 0 .25 0 0 0 .09 0'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}
img { max-width: 100%; display: block; }
a { color: var(--terra-d); text-decoration-thickness: 1px; text-underline-offset: 3px; }
a:hover { color: var(--terra); }
button { font: inherit; color: inherit; cursor: pointer; }
:focus-visible { outline: 2px solid var(--terra); outline-offset: 3px; border-radius: 4px; }
::selection { background: var(--ocre); color: #fff; }

h1, h2, h3, h4 { font-family: var(--serif); font-weight: 400; line-height: 1.08; margin: 0 0 .5em; letter-spacing: -.01em; }
h1 { font-size: clamp(2.6rem, 6vw, 5rem); }
h2 { font-size: clamp(2rem, 4vw, 3.2rem); }
h3 { font-size: clamp(1.45rem, 2.2vw, 1.9rem); }
p { margin: 0 0 1em; }
em, i { font-style: italic; }

.wrap { width: 100%; max-width: var(--wrap); margin: 0 auto; padding: 0 var(--gut); }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.skip { position: absolute; left: -999px; top: 8px; background: var(--ink); color: #fff; padding: 8px 14px; border-radius: 8px; z-index: 200; }
.skip:focus { left: 8px; }

.kicker {
  display: inline-flex; align-items: center; gap: .6em;
  font: 600 .76rem/1 var(--sans); letter-spacing: .16em; text-transform: uppercase;
  color: var(--terra);
}
.hand { font-family: var(--hand); font-size: 1.35em; line-height: 1.1; color: var(--terra-d); }
.muted { color: var(--muted); }

/* ---------- botões ---------- */
.btn {
  --b: var(--ink);
  display: inline-flex; align-items: center; gap: .55em;
  padding: .8em 1.35em; border-radius: 999px;
  border: 1.5px solid var(--b); background: var(--b); color: var(--paper);
  font: 500 .95rem/1 var(--sans); text-decoration: none;
  transition: transform .25s var(--ease), background .25s, color .25s;
}
.btn:hover { color: var(--paper); background: var(--terra); border-color: var(--terra); transform: translateY(-1px); }
.btn .arr { transition: transform .25s var(--ease); }
.btn:hover .arr { transform: translateX(3px); }
.btn.ghost { background: transparent; color: var(--b); }
.btn.ghost:hover { background: var(--b); color: var(--paper); }
.btn.terra { --b: var(--terra); }
.btn.terra:hover { background: var(--terra-d); border-color: var(--terra-d); }
.btn.sm { padding: .6em 1em; font-size: .85rem; }
.link-arrow { font-weight: 500; text-decoration: none; border-bottom: 1.5px solid currentColor; padding-bottom: 2px; }

/* ============================================================
   CABEÇALHO
   ============================================================ */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: transparent;
  border-bottom: 1px solid transparent;
  transition: border-color .3s, background .3s;
}
.site-header.scrolled {
  border-color: var(--line);
  background: color-mix(in srgb, var(--paper) 88%, transparent);
  backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px);
}
body[data-page="home"] .site-header:not(.scrolled) { background: var(--hero); }
body[data-page="home"] .site-header:not(.scrolled) .nav { --menu-bg: var(--hero); }
.site-header .wrap { display: flex; align-items: center; justify-content: space-between; gap: 24px; height: 72px; }
.brand { display: inline-flex; align-items: center; gap: 10px; text-decoration: none; color: var(--ink); }
.brand svg { width: 42px; height: 42px; flex: none; transition: transform .6s var(--ease); }
.brand:hover svg { transform: rotate(-8deg); }
.ft-brand .brand svg { width: 56px; height: 56px; }
.brand-name { font: 400 1.7rem/1 var(--serif); letter-spacing: -.01em; }
.brand-name i { color: var(--terra); }
.nav { display: flex; align-items: center; gap: 4px; }
.nav a {
  position: relative; padding: 8px 12px; border-radius: 999px;
  color: var(--ink-2); text-decoration: none; font-size: .93rem; font-weight: 500;
  transition: color .2s, background .2s;
}
.nav a:hover { color: var(--ink); background: rgba(47, 38, 32, .07); }
.nav a[aria-current="page"] { color: var(--terra-d); }
.nav a[aria-current="page"]::after {
  content: ''; position: absolute; left: 50%; bottom: 2px; width: 5px; height: 5px; margin-left: -2.5px;
  border-radius: 50%; background: var(--terra);
}
.nav .nav-cta { background: var(--ink); color: var(--paper); margin-left: 8px; padding: 8px 16px; }
.nav .nav-cta:hover { background: var(--terra); color: #fff; }
.menu-btn { display: none; background: none; border: 0; width: 44px; height: 44px; border-radius: 50%; position: relative; }
.menu-btn span, .menu-btn span::before, .menu-btn span::after {
  position: absolute; left: 12px; width: 20px; height: 1.8px; background: var(--ink); border-radius: 2px; content: '';
  transition: transform .3s var(--ease), top .3s var(--ease), opacity .2s;
}
.menu-btn span { top: 21px; }
.menu-btn span::before { left: 0; top: -6px; }
.menu-btn span::after { left: 0; top: 6px; }
.menu-open .menu-btn span { background: transparent; }
.menu-open .menu-btn span::before { top: 0; transform: rotate(45deg); }
.menu-open .menu-btn span::after { top: 0; transform: rotate(-45deg); }

@media (max-width: 1020px) {
  .menu-btn { display: block; }
  .nav {
    position: fixed; inset: 72px 0 auto 0; z-index: 49;
    flex-direction: column; align-items: stretch; gap: 0;
    padding: 12px var(--gut) 28px; background: var(--paper);
    background: var(--menu-bg, var(--paper));
    border-bottom: 1px solid var(--line); box-shadow: var(--shadow);
    transform: translateY(-8px); opacity: 0; visibility: hidden;
    transition: transform .3s var(--ease), opacity .3s, visibility .3s;
  }
  .menu-open .nav { transform: none; opacity: 1; visibility: visible; }
  .nav a { padding: 14px 4px; border-radius: 0; border-bottom: 1px solid var(--line); font-size: 1.05rem; }
  .nav a[aria-current="page"]::after { left: auto; right: 4px; top: 50%; margin-top: -2.5px; }
  .nav .nav-cta { margin: 16px 0 0; text-align: center; border-radius: 999px; border: 0; }
}

/* ============================================================
   HOME: HERO
   ============================================================ */
.hero { position: relative; background: var(--hero); min-height: min(calc(100svh - 72px), 920px); display: grid; align-items: center; padding: clamp(28px, 5vw, 64px) 0 clamp(72px, 8vw, 104px); }
.hero .wrap { position: relative; z-index: 3; display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: clamp(32px, 6vw, 96px); align-items: center; }

/* foto */
.hero-photo { position: relative; margin: 0; }
.hero-photo .frame { position: relative; }
.hero-photo .arch {
  position: relative; z-index: 2;
  aspect-ratio: 4 / 5.3;
  border-radius: 999px 999px var(--radius) var(--radius);
  overflow: hidden; background: var(--paper-3);
  box-shadow: 0 30px 60px -30px rgba(60, 35, 15, .55);
}
.hero-photo .arch img { width: 100%; height: 100%; object-fit: cover; object-position: center 30%; transform: scale(1.04); transition: transform 1.6s var(--ease); }
.hero-photo:hover .arch img { transform: scale(1.08); }
.hero-photo .halo {
  position: absolute; z-index: 1; inset: 5% -6% -4% 7%;
  border-radius: 999px 999px var(--radius) var(--radius);
  border: 1.5px solid var(--terra);
}
.hero-photo .halo::before {
  content: ''; position: absolute; inset: 7% 5% -1.5px 9%;
  border-radius: inherit; background: var(--paper-3); opacity: .7;
}
.hero-photo .arc-text { position: absolute; z-index: 3; inset: 0; width: 100%; height: 100%; overflow: visible; pointer-events: none; }
.hero-photo .arc-text text { font: 600 15px var(--sans); letter-spacing: 5.5px; fill: var(--terra-d); text-transform: uppercase; }
.hero-photo .fio { position: absolute; z-index: 3; left: -9%; bottom: 12%; width: 118%; height: auto; color: var(--ocre); pointer-events: none; }
.hero-photo figcaption {
  position: relative; z-index: 3; display: flex; align-items: center; gap: 10px;
  margin-top: 26px; padding-left: 4%;
  font-family: var(--hand); font-size: 1.35rem; line-height: 1.1; color: var(--ink-2);
}
.hero-photo figcaption svg { width: 34px; flex: none; color: var(--terra); }

/* identidade */
.hero-info { display: flex; flex-direction: column; gap: clamp(28px, 4vw, 48px); min-width: 0; }
.hero-info h1 { font-size: clamp(3.6rem, 8.6vw, 7.8rem); line-height: .86; margin: 0; letter-spacing: -.02em; }
.hero-info h1 .i { display: block; font-style: italic; color: var(--terra); padding-left: .9em; }
.roles { list-style: none; margin: 18px 0 0; padding: 0; display: flex; flex-wrap: wrap; align-items: center; gap: 8px 0; }
.roles li { display: inline-flex; align-items: center; font: 500 clamp(.98rem, 1.3vw, 1.1rem)/1.2 var(--sans); color: var(--ink-2); }
.roles li + li::before {
  content: ''; width: 14px; height: 14px; margin: 0 14px; flex: none;
  background: var(--sage);
  -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 20 20'%3E%3Cpath d='M2 18C3 8 9 3 18 2c-1 9-6 15-16 16z'/%3E%3C/svg%3E") center / contain no-repeat;
          mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 20 20'%3E%3Cpath d='M2 18C3 8 9 3 18 2c-1 9-6 15-16 16z'/%3E%3C/svg%3E") center / contain no-repeat;
}

/* ---------- carrossel de notícias (discreto) ---------- */
.news { position: relative; }
.ns-head { display: flex; align-items: center; gap: 14px; padding-bottom: 14px; margin-bottom: 20px; border-bottom: 1px solid var(--line); }
.ns-title { display: inline-flex; align-items: center; gap: 10px; font: 600 .74rem/1 var(--sans); letter-spacing: .18em; text-transform: uppercase; color: var(--ink-2); }
.ns-title .pulse { width: 7px; height: 7px; border-radius: 50%; background: var(--terra); box-shadow: 0 0 0 0 rgba(180, 85, 45, .5); animation: pulse 2.2s infinite; }
@keyframes pulse { 70% { box-shadow: 0 0 0 8px rgba(180, 85, 45, 0); } 100% { box-shadow: 0 0 0 0 rgba(180, 85, 45, 0); } }
.ns-count { font: 500 .82rem/1 var(--sans); color: var(--muted); font-variant-numeric: tabular-nums; }
.ns-head .sp { flex: 1; }
.ns-all { font-size: .85rem; font-weight: 500; color: var(--ink-2); text-decoration: none; margin-right: 6px; }
.ns-all:hover { color: var(--terra); }
.ns-btn { width: 34px; height: 34px; border-radius: 50%; border: 1px solid var(--line); background: transparent; display: grid; place-items: center; color: var(--ink-2); transition: background .2s, border-color .2s, color .2s; }
.ns-btn:hover { background: var(--ink); border-color: var(--ink); color: var(--paper); }
.ns-btn svg { width: 15px; height: 15px; }
.ns-viewport { overflow: hidden; }
.ns-track { display: flex; transition: transform .8s var(--ease); touch-action: pan-y; }
.ns-slide { flex: 0 0 100%; min-width: 0; display: grid; grid-template-columns: minmax(0, 42%) minmax(0, 1fr); gap: clamp(18px, 2.4vw, 32px); align-items: stretch; }
.ns-slide[aria-hidden="true"] { visibility: hidden; transition: visibility 0s .8s; }
.ns-media { position: relative; aspect-ratio: 4 / 3; border-radius: 14px; overflow: hidden; background: var(--paper-3); }
.ns-media img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; transition: transform 1.2s var(--ease); }
.ns-slide:hover .ns-media img { transform: scale(1.04); }
.ns-media.noimg { background: linear-gradient(135deg, var(--clay), var(--ocre)); }
.ns-body { display: flex; flex-direction: column; gap: 10px; min-width: 0; padding: 2px 0; }
.ns-date { font: 500 .8rem/1 var(--sans); color: var(--terra); letter-spacing: .04em; }
.ns-body h3 { font-size: clamp(1.45rem, 2.1vw, 1.95rem); line-height: 1.08; margin: 0; }
.ns-body h3 a { color: var(--ink); text-decoration: none; }
.ns-body h3 a:hover { color: var(--terra-d); }
.ns-body p { color: var(--ink-2); font-size: .96rem; margin: 0; display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }
.ns-body .ns-link { margin-top: auto; }
.ns-segs { display: flex; gap: 6px; margin-top: 20px; }
.ns-seg { flex: 1; height: 14px; padding: 6px 0; border: 0; background: none; cursor: pointer; }
.ns-seg i { display: block; height: 2px; border-radius: 2px; background: var(--line); position: relative; overflow: hidden; }
.ns-seg i::after { content: ''; position: absolute; inset: 0; width: 0; background: var(--terra); }
.ns-seg.done i::after { width: 100%; }
.ns-seg.on i::after { animation: nsbar var(--dur, 7s) linear forwards; }
.ns-seg.on.static i::after { animation: none; width: 100%; }
.news:hover .ns-seg.on i::after, .news:focus-within .ns-seg.on i::after { animation-play-state: paused; }
@keyframes nsbar { to { width: 100%; } }
.ns-empty { color: var(--muted); margin: 0; }

.scroll-cue { position: absolute; z-index: 3; left: 50%; bottom: 22px; transform: translateX(-50%); display: flex; flex-direction: column; align-items: center; gap: 8px; font: 600 .7rem/1 var(--sans); letter-spacing: .2em; text-transform: uppercase; color: var(--muted); text-decoration: none; }
.scroll-cue::after { content: ''; width: 1px; height: 34px; background: linear-gradient(var(--terra), transparent); animation: cue 2.2s var(--ease) infinite; transform-origin: top; }
.scroll-cue:hover { color: var(--terra); }
@keyframes cue { 0% { transform: scaleY(0); } 50% { transform: scaleY(1); } 100% { transform: scaleY(1); opacity: 0; } }

@media (max-width: 900px) {
  .hero { min-height: 0; }
  .hero .wrap { grid-template-columns: minmax(0, 1fr); }
  .hero-photo { max-width: 330px; width: 78%; margin: 24px auto 0; }
  .hero-info h1 .i { padding-left: .6em; }
  .scroll-cue { display: none; }
}
@media (max-width: 560px) {
  .ns-slide { grid-template-columns: minmax(0, 1fr); }
  .ns-count, .ns-all { display: none; }
}

/* ============================================================
   ÁRVORE (tree.js)
   ============================================================ */
#arvore { position: absolute; top: 0; left: 0; z-index: 1; pointer-events: none; overflow: visible; }
#arvore .br, #arvore .rt, #arvore .trunk, #arvore .tw { fill: none; stroke: var(--ink-2); stroke-linecap: round; stroke-opacity: .5; }
#arvore .trunk { stroke-width: 2; stroke-dasharray: 1; stroke-dashoffset: 1; }
#arvore .br, #arvore .rt { stroke-dasharray: 1; stroke-dashoffset: 1; }
#arvore .lf { opacity: 0; transform: scale(.2); transform-box: fill-box; transform-origin: 0 50%; }
#arvore.go .crown .br { stroke-dashoffset: 0; transition: stroke-dashoffset .9s var(--ease) var(--d); }
#arvore.go .crown .lf { opacity: .82; transform: none; transition: opacity .6s var(--d), transform .8s var(--ease) var(--d); }
#arvore.grown .crown .br, #arvore.grown .crown .lf { transition: none; }
#arvore .tw { stroke-width: 1.4; stroke-dasharray: 1; stroke-dashoffset: 1; transition: stroke-dashoffset .6s var(--ease); }
#arvore .lf2 { opacity: 0; transform: scale(.2); transform-box: fill-box; transform-origin: center; transition: opacity .5s .3s, transform .7s var(--ease) .3s; }
#arvore .twig.on .tw { stroke-dashoffset: 0; }
#arvore .twig.on .lf2 { opacity: .8; transform: none; }
#arvore .roots.on .rt { stroke-dashoffset: 0; transition: stroke-dashoffset 1.2s var(--ease) var(--d); }
#arvore.no-trunk .crown .lf { opacity: .7; }
@media (prefers-reduced-motion: reduce) {
  #arvore .br, #arvore .rt, #arvore .tw { stroke-dashoffset: 0 !important; }
  #arvore .lf, #arvore .lf2 { opacity: .8 !important; transform: none !important; }
}

/* ============================================================
   SEÇÕES
   ============================================================ */
.section { padding: clamp(64px, 9vw, 120px) 0; position: relative; }
.section.tint { background: var(--paper-2); }
.section-head { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 24px 64px; align-items: end; margin-bottom: clamp(32px, 5vw, 56px); }
.section-head h2 { margin: .25em 0 0; }
.section-head p { color: var(--ink-2); margin: 0; font-size: 1.05rem; max-width: 48ch; }
.section-head .actions { display: flex; justify-content: flex-end; }
@media (max-width: 800px) { .section-head { grid-template-columns: minmax(0, 1fr); } .section-head .actions { justify-content: flex-start; } }

/* fio decorativo desenhado ao rolar */
.fio-draw path { stroke-dasharray: var(--len, 2000); stroke-dashoffset: var(--len, 2000); transition: stroke-dashoffset 2.4s var(--ease); }
.fio-draw.in path { stroke-dashoffset: 0; }

/* ============================================================
   CARDS DOS CAMINHOS (expansíveis)
   ============================================================ */
.paths { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: clamp(16px, 2vw, 28px); align-items: start; }
@media (max-width: 1000px) { .paths { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 640px) { .paths { grid-template-columns: minmax(0, 1fr); } }

.path-card {
  --accent: var(--terra);
  position: relative;
  display: flex; flex-direction: column;
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
  transition: box-shadow .4s var(--ease), transform .4s var(--ease), border-color .4s;
}
.path-card:hover { box-shadow: var(--shadow); transform: translateY(-3px); }
.path-card.open { box-shadow: var(--shadow); border-color: color-mix(in srgb, var(--accent) 45%, var(--line)); }
.pc-media { position: relative; aspect-ratio: 16 / 10; overflow: hidden; background: var(--paper-3); }
.pc-media img { width: 100%; height: 100%; object-fit: cover; filter: saturate(.9) sepia(.12); transition: transform 1s var(--ease), filter .6s; }
.path-card:hover .pc-media img, .path-card.open .pc-media img { transform: scale(1.05); filter: none; }
.pc-media::after { content: ''; position: absolute; inset: 0; background: linear-gradient(to top, color-mix(in srgb, var(--accent) 55%, transparent), transparent 55%); mix-blend-mode: multiply; }
.pc-num { position: absolute; z-index: 2; left: 18px; bottom: 12px; font: italic 400 2.6rem/1 var(--serif); color: #fff; text-shadow: 0 2px 12px rgba(0, 0, 0, .25); }
.pc-body { padding: 22px 22px 6px; }
.pc-kicker { font: 600 .72rem/1 var(--sans); letter-spacing: .15em; text-transform: uppercase; color: var(--accent); }
.pc-body h3 { margin: .45em 0 .35em; }
.pc-summary { color: var(--ink-2); font-size: .98rem; margin: 0; }

.pc-more { display: grid; grid-template-rows: 0fr; transition: grid-template-rows .55s var(--ease); }
.pc-more > div { overflow: hidden; min-height: 0; }
.path-card.open .pc-more { grid-template-rows: 1fr; }
.pc-more-inner { padding-top: 16px; opacity: 0; transform: translateY(-6px); transition: opacity .4s .1s, transform .5s var(--ease); }
.path-card.open .pc-more-inner { opacity: 1; transform: none; }
.pc-list { list-style: none; margin: 0 0 18px; padding: 0; border-top: 1px dashed var(--line); }
.pc-list li { padding: 10px 0; border-bottom: 1px dashed var(--line); font-size: .93rem; line-height: 1.35; }
.pc-list li b { display: block; font-weight: 500; color: var(--ink); }
.pc-list li span { color: var(--muted); font-size: .84rem; }
.pc-more .btn { --b: var(--accent); margin-bottom: 6px; }
.pc-more .btn:hover { background: var(--ink); border-color: var(--ink); }

.pc-toggle {
  display: flex; align-items: center; justify-content: space-between; gap: 12px;
  width: 100%; margin-top: 14px; padding: 16px 22px;
  background: none; border: 0; border-top: 1px solid var(--line);
  font: 500 .88rem/1 var(--sans); letter-spacing: .04em; color: var(--ink-2);
  transition: background .25s, color .25s;
}
.pc-toggle:hover { background: color-mix(in srgb, var(--accent) 8%, transparent); color: var(--ink); }
.pc-toggle .plus { position: relative; width: 30px; height: 30px; border-radius: 50%; border: 1.5px solid var(--accent); transition: transform .45s var(--ease), background .3s; }
.pc-toggle .plus::before, .pc-toggle .plus::after { content: ''; position: absolute; left: 50%; top: 50%; width: 11px; height: 1.6px; margin: -.8px 0 0 -5.5px; background: var(--accent); border-radius: 2px; transition: background .3s; }
.pc-toggle .plus::after { transform: rotate(90deg); }
.path-card.open .pc-toggle .plus { transform: rotate(135deg); background: var(--accent); }
.path-card.open .pc-toggle .plus::before, .path-card.open .pc-toggle .plus::after { background: #fff; }

/* ============================================================
   MANIFESTO
   ============================================================ */
.manifesto { position: relative; overflow: hidden; padding: clamp(40px, 6vw, 80px) 0; background: var(--ink); color: var(--paper); }
.manifesto .bg { position: absolute; inset: 0; background-size: cover; background-position: center; background-attachment: fixed; background-color: #7a6450; background-blend-mode: luminosity; opacity: .28; }
@media (hover: none), (max-width: 900px) { .manifesto .bg { background-attachment: scroll; } }
.manifesto .wrap { position: relative; }
.manifesto blockquote { margin: 0 auto; max-width: 20ch; text-align: center; font: 400 clamp(2.2rem, 5.2vw, 4.4rem)/1.08 var(--serif); letter-spacing: -.01em; }
.manifesto blockquote em { color: var(--ocre); }
.manifesto .fio { display: block; width: min(420px, 80%); margin: 18px auto 0; color: var(--ocre); }
.manifesto .sign { display: block; text-align: center; margin-top: 8px; font: 400 1.6rem/1 var(--hand); color: color-mix(in srgb, var(--paper) 75%, transparent); }

/* ============================================================
   OFICINAS
   ============================================================ */
.of-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: clamp(16px, 2vw, 24px); }
.of-card { display: flex; flex-direction: column; background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; text-decoration: none; color: inherit; transition: transform .35s var(--ease), box-shadow .35s; }
.of-card:hover { transform: translateY(-3px); box-shadow: var(--shadow); color: inherit; }
.of-card .m { aspect-ratio: 3 / 2; background: var(--paper-3); overflow: hidden; }
.of-card .m img { width: 100%; height: 100%; object-fit: cover; }
.of-card .b { padding: 20px; display: flex; flex-direction: column; gap: 8px; flex: 1; }
.of-card h3 { font-size: 1.45rem; margin: 0; }
.of-card p { margin: 0; color: var(--ink-2); font-size: .95rem; }
.of-card .tags { display: flex; flex-wrap: wrap; gap: 6px; margin-top: auto; padding-top: 8px; }
.tag { display: inline-block; padding: 5px 11px; border-radius: 999px; background: var(--paper-2); border: 1px solid var(--line); font-size: .78rem; color: var(--ink-2); line-height: 1.3; }

.of-list { display: grid; gap: clamp(20px, 3vw, 36px); }
.of-item { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: clamp(20px, 4vw, 56px); align-items: center; padding: clamp(18px, 2.5vw, 28px); background: var(--card); border: 1px solid var(--line); border-radius: calc(var(--radius) + 4px); }
.of-item:nth-child(even) .of-media { order: 2; }
.of-media { border-radius: var(--radius); overflow: hidden; aspect-ratio: 4 / 3; background: var(--paper-3); }
.of-media img { width: 100%; height: 100%; object-fit: cover; }
.of-item h2 { font-size: clamp(1.8rem, 3vw, 2.5rem); }
.of-item .meta { display: flex; flex-wrap: wrap; gap: 8px; margin: 0 0 16px; }
@media (max-width: 760px) { .of-item { grid-template-columns: minmax(0, 1fr); } .of-item:nth-child(even) .of-media { order: 0; } }

/* ============================================================
   AGENDA
   ============================================================ */
.ag-list { list-style: none; margin: 0; padding: 0; border-top: 1px solid var(--line); }
.ag-item { display: grid; grid-template-columns: 110px minmax(0, 1fr) auto; gap: 24px; align-items: center; padding: 22px 0; border-bottom: 1px solid var(--line); }
.ag-date { text-align: center; line-height: 1; }
.ag-date b { display: block; font: 400 3rem/1 var(--serif); color: var(--terra); }
.ag-date span { font: 600 .74rem/1 var(--sans); letter-spacing: .14em; text-transform: uppercase; color: var(--ink-2); }
.ag-item h3 { font-size: 1.5rem; margin: 0 0 4px; }
.ag-item p { margin: 0; color: var(--ink-2); font-size: .95rem; }
.ag-item.past { opacity: .6; }
.ag-item.has-img { grid-template-columns: 110px 150px minmax(0, 1fr) auto; }
.ag-img { all: unset; display: block; width: 150px; aspect-ratio: 4 / 3; border-radius: 12px; overflow: hidden; background: var(--paper-3); cursor: zoom-in; }
.ag-img img { width: 100%; height: 100%; object-fit: cover; transition: transform .6s var(--ease); }
.ag-img:hover img { transform: scale(1.05); }
.ag-img:focus-visible { outline: 2px solid var(--terra); outline-offset: 3px; }
.ag-empty { padding: 40px; text-align: center; background: var(--card); border: 1px dashed var(--line); border-radius: var(--radius); color: var(--ink-2); }
@media (max-width: 640px) { .ag-item, .ag-item.has-img { grid-template-columns: 72px minmax(0, 1fr); } .ag-img { grid-column: 2; width: 100%; max-width: 260px; } .ag-item .btn { grid-column: 2; justify-self: start; } .ag-date b { font-size: 2.3rem; } }

/* ============================================================
   GALERIA
   ============================================================ */
.gal-strip { display: grid; grid-template-columns: 2fr 1fr 1fr; grid-template-rows: 220px 220px; gap: 12px; }
.gal-strip a { position: relative; border-radius: 14px; overflow: hidden; background: var(--paper-3); }
.gal-strip a:first-child { grid-row: span 2; }
.gal-strip img { width: 100%; height: 100%; object-fit: cover; transition: transform .8s var(--ease); }
.gal-strip a:hover img { transform: scale(1.05); }
@media (max-width: 700px) { .gal-strip { grid-template-columns: 1fr 1fr; grid-template-rows: 180px 140px 140px; } .gal-strip a:first-child { grid-column: span 2; grid-row: auto; } .gal-strip a:nth-child(n+6) { display: none; } }

.chips { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 28px; }
.chip { padding: 8px 16px; border-radius: 999px; border: 1px solid var(--line); background: var(--card); font-size: .9rem; color: var(--ink-2); text-decoration: none; transition: all .2s; }
.chip:hover { border-color: var(--ink); color: var(--ink); }
.chip[aria-pressed="true"], .chip.on { background: var(--ink); border-color: var(--ink); color: var(--paper); }

.masonry { columns: 3 280px; column-gap: 14px; }
.masonry figure { break-inside: avoid; margin: 0 0 14px; position: relative; border-radius: 14px; overflow: hidden; background: var(--paper-3); cursor: zoom-in; }
.masonry img { width: 100%; height: auto; transition: transform .8s var(--ease); }
.masonry figure:hover img { transform: scale(1.03); }
.masonry figcaption { position: absolute; left: 0; right: 0; bottom: 0; padding: 32px 14px 12px; font-size: .86rem; color: #fff; background: linear-gradient(to top, rgba(30, 20, 10, .7), transparent); opacity: 0; transition: opacity .3s; }
.masonry figure:hover figcaption, .masonry figure:focus-within figcaption { opacity: 1; }
.masonry button { all: unset; display: block; cursor: zoom-in; }

.lightbox { position: fixed; inset: 0; z-index: 300; display: none; place-items: center; background: rgba(28, 20, 14, .92); padding: 56px 16px; }
.lightbox.open { display: grid; }
.lightbox img { max-width: min(1200px, 100%); max-height: 78vh; border-radius: 8px; box-shadow: 0 20px 60px rgba(0, 0, 0, .5); }
.lightbox p { color: var(--paper); text-align: center; margin: 14px 0 0; font-size: .95rem; }
.lb-btn { position: absolute; width: 46px; height: 46px; border-radius: 50%; border: 1px solid rgba(255, 255, 255, .3); background: rgba(255, 255, 255, .08); color: #fff; display: grid; place-items: center; font-size: 1.3rem; }
.lb-btn:hover { background: rgba(255, 255, 255, .2); }
.lb-close { top: 14px; right: 14px; }
.lb-prev { left: 14px; top: 50%; margin-top: -23px; }
.lb-next { right: 14px; top: 50%; margin-top: -23px; }

/* ============================================================
   CTA / CONTATO
   ============================================================ */
.cta { position: relative; overflow: hidden; border-radius: calc(var(--radius) * 1.6); background: var(--terra); color: #fff8f0; padding: clamp(40px, 6vw, 80px); display: grid; grid-template-columns: minmax(0, 1.4fr) auto; gap: 32px; align-items: center; }
.cta::before { content: ''; position: absolute; right: -80px; top: -80px; width: 320px; height: 320px; border-radius: 50%; border: 1.5px dashed rgba(255, 248, 240, .35); }
.cta::after { content: ''; position: absolute; right: 40px; bottom: -140px; width: 260px; height: 260px; border-radius: 50%; background: rgba(255, 248, 240, .08); }
.cta h2 { margin: 0 0 .3em; }
.cta p { margin: 0; opacity: .9; max-width: 52ch; }
.cta-btns { position: relative; z-index: 1; display: flex; flex-direction: column; gap: 10px; align-items: stretch; min-width: 290px; }
.cta .btn { --b: #fff8f0; color: var(--terra-d); justify-content: center; }
.cta .btn svg { width: 18px; height: 18px; }
.cta .btn.ghost { background: transparent; color: #fff8f0; border-color: rgba(255, 248, 240, .55); }
.cta .btn.ghost:hover { background: #fff8f0; color: var(--terra-d); border-color: #fff8f0; }
.cta-soon { margin: 0; opacity: .8; }
.copy-line { position: relative; display: flex; align-items: center; gap: 12px; padding: 4px 0; color: #fff8f0; font: 500 1.02rem/1.2 var(--sans); }
.copy-line + .copy-line { margin-top: 6px; }
.copy-line > span:not(.ln-ic):not(.copy-tip) { flex: 1; letter-spacing: .01em; }
.ln-ic, .wa-ic { display: grid; place-items: center; width: 38px; height: 38px; flex: none; border-radius: 50%; }
.ln-ic { border: 1px solid rgba(255, 248, 240, .35); }
.ln-ic svg, .wa-ic svg { width: 19px; height: 19px; }
.wa-ic { background: #fff8f0; color: var(--terra-d); transition: transform .25s var(--ease), background .2s, color .2s; }
.wa-ic:hover { background: #25d366; color: #fff; transform: scale(1.06); }
.copy-btn { display: grid; place-items: center; width: 32px; height: 32px; flex: none; border-radius: 8px; border: 1px solid rgba(255, 248, 240, .45); background: transparent; color: #fff8f0; transition: background .2s, color .2s; }
.copy-btn:hover { background: #fff8f0; color: var(--terra-d); }
.copy-btn.done { background: #fff8f0; color: var(--moss); }
.copy-btn svg { width: 16px; height: 16px; }
.copy-tip { position: absolute; right: 0; top: -14px; font-size: .74rem; opacity: .9; white-space: nowrap; }
.cta .btn:hover { background: var(--ink); border-color: var(--ink); color: #fff; }
@media (max-width: 760px) { .cta { grid-template-columns: minmax(0, 1fr); } }

.contact-grid { display: grid; grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); gap: clamp(28px, 5vw, 64px); align-items: start; }
@media (max-width: 860px) { .contact-grid { grid-template-columns: minmax(0, 1fr); } }
.form { display: grid; gap: 16px; background: var(--card); border: 1px solid var(--line); border-radius: calc(var(--radius) + 4px); padding: clamp(20px, 3vw, 36px); }
.form .row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
@media (max-width: 560px) { .form .row { grid-template-columns: minmax(0, 1fr); } }
.field label { display: block; font-size: .85rem; font-weight: 500; color: var(--ink-2); margin-bottom: 6px; }
.field input, .field textarea, .field select {
  width: 100%; padding: 13px 14px; border-radius: 12px; border: 1px solid var(--line);
  background: var(--paper); color: var(--ink); font: inherit; font-size: 1rem;
  transition: border-color .2s, box-shadow .2s;
}
.field textarea { min-height: 160px; resize: vertical; }
.field input:focus, .field textarea:focus { outline: 0; border-color: var(--terra); box-shadow: 0 0 0 3px color-mix(in srgb, var(--terra) 18%, transparent); }
.hp { position: absolute; left: -5000px; }
.form-status { margin: 0; font-size: .95rem; }
.form-status.ok { color: var(--moss); }
.form-status.err { color: var(--rust); }
.channels { display: grid; gap: 12px; }
.channel { display: flex; align-items: center; gap: 14px; padding: 16px 18px; border: 1px solid var(--line); border-radius: 14px; background: var(--card); text-decoration: none; color: var(--ink); transition: border-color .2s, transform .25s var(--ease); }
.channel:hover { border-color: var(--terra); color: var(--ink); transform: translateX(3px); }
.channel .ic { width: 42px; height: 42px; border-radius: 50%; display: grid; place-items: center; background: var(--paper-2); color: var(--terra); flex: none; }
.channel .ic svg { width: 20px; height: 20px; }
.channel small { display: block; color: var(--muted); font-size: .8rem; }

/* ============================================================
   PÁGINAS INTERNAS
   ============================================================ */
.page-hero { padding: clamp(40px, 7vw, 96px) 0 clamp(28px, 4vw, 48px); position: relative; }
.page-hero h1 { margin: .3em 0 .25em; max-width: 16ch; }
.page-hero .lead { font: italic 400 clamp(1.2rem, 2vw, 1.55rem)/1.45 var(--serif); color: var(--ink-2); max-width: 44ch; margin: 0; }
.crumbs { font-size: .85rem; color: var(--muted); }
.crumbs a { color: var(--muted); text-decoration: none; }
.crumbs a:hover { color: var(--terra); }

.area-hero .wrap { display: grid; grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); gap: clamp(24px, 5vw, 64px); align-items: end; }
.area-hero .ph { aspect-ratio: 4 / 3; border-radius: 999px 999px var(--radius) var(--radius); overflow: hidden; background: var(--paper-3); box-shadow: var(--shadow); }
.area-hero .ph img { width: 100%; height: 100%; object-fit: cover; }
@media (max-width: 860px) { .area-hero .wrap { grid-template-columns: minmax(0, 1fr); } .area-hero .ph { max-width: 460px; } }
.area-nav { display: flex; gap: 8px; overflow-x: auto; padding: 4px 0 16px; scrollbar-width: none; }
.area-nav::-webkit-scrollbar { display: none; }
.area-nav .chip { white-space: nowrap; }

.works { counter-reset: w; }
.work { display: grid; grid-template-columns: minmax(0, 3fr) minmax(0, 8fr); gap: clamp(20px, 4vw, 56px); padding: clamp(32px, 5vw, 56px) 0; border-top: 1px solid var(--line); scroll-margin-top: 90px; }
.work-aside { position: relative; }
.work-aside .n { font: italic 400 3.4rem/1 var(--serif); color: var(--terra); }
.work-aside .n::before { counter-increment: w; content: counter(w, decimal-leading-zero); }
.work-aside dl { margin: 14px 0 0; display: grid; gap: 10px; font-size: .88rem; }
.work-aside dt { font-weight: 600; font-size: .7rem; letter-spacing: .14em; text-transform: uppercase; color: var(--muted); }
.work-aside dd { margin: 2px 0 0; color: var(--ink-2); }
.work h2 { font-size: clamp(1.8rem, 3.2vw, 2.6rem); }
.work .summary { font: italic 400 1.28rem/1.45 var(--serif); color: var(--ink-2); }
.work-img { margin: 22px 0; border-radius: var(--radius); overflow: hidden; background: var(--paper-3); }
.work-img img { width: 100%; max-height: 560px; object-fit: cover; }
.work-gal { display: grid; grid-template-columns: repeat(auto-fill, minmax(140px, 1fr)); gap: 10px; margin: 18px 0; }
.work-gal button { all: unset; cursor: zoom-in; aspect-ratio: 1; border-radius: 12px; overflow: hidden; background: var(--paper-3); }
.work-gal img { width: 100%; height: 100%; object-fit: cover; transition: transform .6s var(--ease); }
.work-gal button:hover img { transform: scale(1.06); }
@media (max-width: 760px) { .work { grid-template-columns: minmax(0, 1fr); } .work-aside { display: flex; gap: 20px; align-items: flex-start; } .work-aside dl { margin: 0; } }

.readmore { position: relative; }
.readmore .rm-body { display: grid; grid-template-rows: 0fr; transition: grid-template-rows .6s var(--ease); }
.readmore .rm-body > div { overflow: hidden; min-height: 0; }
.readmore.open .rm-body { grid-template-rows: 1fr; }
.rm-btn { margin-top: 10px; background: none; border: 0; padding: 0; display: inline-flex; align-items: center; gap: 8px; font-weight: 500; color: var(--terra-d); border-bottom: 1.5px solid currentColor; }
.rm-btn:hover { color: var(--terra); }

.prose { font-size: 1.04rem; max-width: 68ch; }
.prose p { margin: 0 0 1.05em; }
.prose h2, .prose h3 { font-size: 1.55rem; margin: 1.4em 0 .5em; }
.prose ul { padding-left: 1.2em; margin: 0 0 1.1em; }
.prose li { margin: .3em 0; }
.prose li::marker { color: var(--terra); }
.prose blockquote { margin: 1.4em 0; padding: 0 0 0 20px; border-left: 3px solid var(--ocre); font: italic 400 1.6rem/1.3 var(--serif); color: var(--ink); }
.prose strong { font-weight: 600; }

.pager { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; margin-top: 24px; }
.pager a { display: block; padding: 22px; border: 1px solid var(--line); border-radius: var(--radius); text-decoration: none; color: var(--ink); background: var(--card); transition: border-color .2s; }
.pager a:hover { border-color: var(--terra); color: var(--ink); }
.pager small { display: block; color: var(--muted); font-size: .78rem; letter-spacing: .12em; text-transform: uppercase; margin-bottom: 6px; }
.pager b { font: 400 1.5rem/1.15 var(--serif); }
.pager .next { text-align: right; grid-column: 2; }

/* sobre */
.about-grid { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: clamp(28px, 5vw, 72px); align-items: start; }
.about-photo { position: sticky; top: 96px; }
.about-photo .ph { border-radius: var(--radius) var(--radius) 999px 999px; overflow: hidden; aspect-ratio: 4 / 5; box-shadow: var(--shadow); background: var(--paper-3); }
.about-photo .ph img { width: 100%; height: 100%; object-fit: cover; }
.about-body .prose p:first-child { font: italic 400 clamp(1.5rem, 2.4vw, 2rem)/1.3 var(--serif); color: var(--ink); }
@media (max-width: 860px) { .about-grid { grid-template-columns: minmax(0, 1fr); } .about-photo { position: static; max-width: 440px; } }
.kw { display: flex; flex-wrap: wrap; gap: 8px; margin: 28px 0; }

/* notícias */
.news-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); gap: clamp(16px, 2vw, 28px); }
.news-card { display: flex; flex-direction: column; border-radius: var(--radius); overflow: hidden; background: var(--card); border: 1px solid var(--line); text-decoration: none; color: inherit; transition: transform .35s var(--ease), box-shadow .35s; }
.news-card:hover { transform: translateY(-3px); box-shadow: var(--shadow); color: inherit; }
.news-card .m { aspect-ratio: 16 / 10; background: linear-gradient(135deg, var(--clay), var(--ocre)); overflow: hidden; }
.news-card .m img { width: 100%; height: 100%; object-fit: cover; }
.news-card .b { padding: 20px; display: flex; flex-direction: column; gap: 8px; flex: 1; }
.news-card h3 { font-size: 1.5rem; margin: 0; }
.news-card p { color: var(--ink-2); font-size: .95rem; margin: 0; }
.news-card .go { margin-top: auto; padding-top: 8px; font-size: .88rem; font-weight: 500; color: var(--terra-d); }
.article-img { border-radius: var(--radius); overflow: hidden; margin: 0 0 32px; max-height: 560px; }
.article-img img { width: 100%; height: 100%; object-fit: cover; }

/* ============================================================
   RODAPÉ
   ============================================================ */
.site-footer { background: var(--paper-2); border-top: 1px solid var(--line); padding: clamp(48px, 7vw, 80px) 0 28px; margin-top: clamp(40px, 6vw, 80px); }
.ft-grid { display: grid; grid-template-columns: minmax(0, 1.6fr) minmax(0, 1fr) minmax(0, 1fr); gap: 36px; }
.ft-brand .brand-name { font-size: 2.2rem; }
.ft-brand p { color: var(--ink-2); margin: 10px 0 0; max-width: 38ch; font-size: .95rem; }
.ft-col h4 { font: 600 .72rem/1 var(--sans); letter-spacing: .16em; text-transform: uppercase; color: var(--muted); margin: 6px 0 14px; }
.ft-col ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; }
.ft-col a { color: var(--ink-2); text-decoration: none; font-size: .95rem; }
.ft-col a:hover { color: var(--terra); }
.ft-col .ft-mail { color: var(--ink-2); font-size: .95rem; word-break: break-all; }
.ft-bottom { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 16px; margin-top: 48px; padding-top: 22px; border-top: 1px solid var(--line); font-size: .85rem; color: var(--muted); }
.dev-credit { display: inline-flex; align-items: center; gap: 8px; color: var(--ink-2); text-decoration: none; transition: color .2s; }
.dev-credit:hover { color: var(--terra); }
.dev-credit img { width: 28px; height: 28px; }
.dev-credit strong { font-weight: 600; }
@media (max-width: 800px) { .ft-grid { grid-template-columns: 1fr 1fr; } .ft-brand { grid-column: span 2; } }
@media (max-width: 480px) { .ft-grid { grid-template-columns: minmax(0, 1fr); } .ft-brand { grid-column: auto; } }

/* galeria (home) */
.gal-grid { columns: 3 260px; column-gap: 12px; }
.gal-grid .gi { all: unset; display: block; position: relative; overflow: hidden; border-radius: 14px; background: var(--paper-3); cursor: zoom-in; break-inside: avoid; margin-bottom: 12px; }
.gal-grid .gi img { width: 100%; height: auto; transition: transform .9s var(--ease); }
.gal-grid .gi:hover img { transform: scale(1.05); }
.gal-grid .gi:focus-visible { outline: 2px solid var(--terra); outline-offset: 3px; }
.gal-grid .gi span { position: absolute; left: 0; right: 0; bottom: 0; padding: 30px 14px 12px; font-size: .85rem; color: #fff; background: linear-gradient(to top, rgba(30, 20, 10, .7), transparent); opacity: 0; transition: opacity .3s; }
.gal-grid .gi:hover span, .gal-grid .gi:focus-visible span { opacity: 1; }
.gal-grid .gi[hidden] { display: none; }
.gal-chips { margin: -12px 0 24px; }
.gal-chips .chip small { font-size: .75em; opacity: .6; margin-left: 2px; }
.gal-more[hidden] { display: none; }
.gal-more { display: flex; justify-content: center; margin-top: 28px; }
@media (max-width: 600px) { .gal-grid { columns: 2; column-gap: 8px; } .gal-grid .gi { margin-bottom: 8px; } }

/* ---------- animações de entrada ---------- */
.reveal { opacity: 0; transform: translateY(18px); transition: opacity .9s var(--ease), transform .9s var(--ease); }
.reveal.in { opacity: 1; transform: none; }
.loading { min-height: 40vh; display: grid; place-items: center; color: var(--muted); }
.loading::after { content: ''; width: 26px; height: 26px; border-radius: 50%; border: 2px solid var(--line); border-top-color: var(--terra); animation: spin 1s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .01ms !important; transition-duration: .01ms !important; scroll-behavior: auto !important; }
  .reveal { opacity: 1; transform: none; }
}
