/* Grupo ILMA — v2. Paleta e tipografia do manual (dez/2023): Mulish 600 títulos, 400 subtítulos, 300 corpo. */
@font-face { font-family: "Mulish"; src: url("/assets/fonts/Mulish-variable.ttf") format("truetype"); font-weight: 200 900; font-display: swap; }

:root {
  --paper: #F3F5F4;
  --paper-2: #E6EBEA;
  --mist: #D1D9DA;
  --stone: #BEC2C2;
  --leaf: #77B583;
  --leaf-2: #639C6E;
  --green: #1A5645;
  --green-2: #286351;
  --deep: #0E3F36;
  --ink: #052D2C;
  --text: #17322F;
  --muted: #4D615E;
  --line: rgba(5, 45, 44, .14);
  --wrap: min(1320px, 100% - 2 * var(--gut));
  --gut: clamp(16px, 4vw, 48px);
  --ease: cubic-bezier(.22, .8, .24, 1);
  --ease-io: cubic-bezier(.65, 0, .35, 1);
  --hdr: 76px;
  color-scheme: light;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-padding-top: var(--hdr); }
body { margin: 0; background: var(--paper); color: var(--text); font: 300 clamp(16px, 1.05vw + 10px, 18px)/1.6 "Mulish", system-ui, sans-serif; overflow-x: clip; }
img, video, svg { display: block; max-width: 100%; }
a { color: inherit; }
h1, h2, h3 { font-weight: 600; margin: 0; line-height: 1.05; letter-spacing: -.02em; color: var(--ink); }
p { margin: 0; }
ul, ol { margin: 0; padding: 0; list-style: none; }
button { font: inherit; color: inherit; }
::selection { background: var(--leaf); color: var(--ink); }
html { scrollbar-color: var(--green-2) var(--paper-2); accent-color: var(--green); caret-color: var(--green); }
a { text-underline-offset: .2em; }
:focus-visible { outline: 2px solid var(--leaf); outline-offset: 3px; border-radius: 4px; }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.skip { position: fixed; left: 12px; top: -60px; z-index: 100; background: var(--ink); color: #fff; padding: 10px 16px; border-radius: 8px; }
.skip:focus { top: 12px; }
.wrap { width: var(--wrap); margin-inline: auto; }

.eyebrow { font-size: 13px; font-weight: 600; letter-spacing: .14em; text-transform: uppercase; color: var(--green-2); margin-bottom: 18px; }
.h1 { font-size: clamp(44px, 7vw, 104px); }
.h2 { font-size: clamp(34px, 4.4vw, 64px); }
.lead { font-size: clamp(18px, 1.3vw + 10px, 23px); font-weight: 400; line-height: 1.5; color: var(--muted); max-width: 40ch; }
.note { font-size: 14px; color: var(--muted); margin-top: 24px; }
.ic { width: 1.1em; height: 1.1em; flex: none; transition: transform .35s var(--ease); }

.btn { display: inline-flex; align-items: center; gap: 10px; min-height: 52px; padding: 0 24px; border-radius: 999px; background: var(--leaf); color: var(--ink); font-weight: 600; text-decoration: none; border: 1px solid transparent; transition: background .3s, color .3s, border-color .3s; cursor: pointer; }
.btn:hover { background: #8cc597; }
.btn:hover .ic, .link:hover .ic { transform: translateX(4px); }
.btn--ghost { background: transparent; color: #fff; border-color: rgba(255, 255, 255, .45); }
.btn--ghost:hover { background: rgba(255, 255, 255, .12); }
.btn--sm { min-height: 44px; padding: 0 20px; font-size: 15px; }
.btn[disabled] { opacity: .5; cursor: not-allowed; }
.link { display: inline-flex; align-items: center; gap: 8px; font-weight: 600; text-decoration: none; padding-block: 10px; background: linear-gradient(currentColor, currentColor) 0 calc(100% - 4px) / 100% 1px no-repeat; transition: background-size .4s var(--ease); }
.link:hover { background-size: 0 1px; background-position: 100% calc(100% - 4px); }

/* ---------- Animações de entrada (somente com JS) ---------- */
.js [data-enter] { opacity: 0; transform: translateY(28px); }
.js.ready [data-enter] { opacity: 1; transform: none; transition: opacity .9s var(--ease) calc(var(--d, 0) * 1s), transform 1.1s var(--ease) calc(var(--d, 0) * 1s); }
.line { display: block; overflow: hidden; padding-bottom: .16em; margin-bottom: -.1em; }
.line > span { display: inline-block; }
.js .line > [data-enter] { transform: translateY(105%); opacity: 1; }
.js.ready .line > [data-enter] { transform: none; }
.js .rv { opacity: 0; transform: translateY(32px); transition: opacity .9s var(--ease), transform 1.1s var(--ease); transition-delay: calc(var(--d, 0) * 90ms); }
.js .rv.in, .js .rv:focus-within { opacity: 1; transform: none; }
.js .rv:focus-within { transition: none; }

/* ---------- Cabeçalho ---------- */
.hdr { position: fixed; inset: 0 0 auto; z-index: 40; height: var(--hdr); transition: background .4s, box-shadow .4s, transform .5s var(--ease); }
.hdr__in { width: var(--wrap); margin: auto; height: 100%; display: flex; align-items: center; gap: 32px; }
.hdr__logo { margin-right: auto; display: grid; padding: 8px 0; }
.hdr__logo img { grid-area: 1 / 1; height: 30px; width: auto; transition: opacity .4s; }
.hdr__nav { display: flex; gap: 6px; }
.hdr__nav a { text-decoration: none; font-weight: 400; font-size: 16px; padding: 10px 14px; border-radius: 999px; transition: background .3s; }
.hdr__nav a:hover, .hdr__nav a[aria-current] { background: var(--line); }
.hdr__menu { display: none; width: 48px; height: 48px; border: 0; background: none; border-radius: 50%; position: relative; cursor: pointer; }
.hdr__menu span:not(.sr) { position: absolute; left: 13px; right: 13px; height: 1.6px; background: currentColor; transition: transform .3s; }
.hdr__menu span:nth-child(1) { top: 20px; } .hdr__menu span:nth-child(2) { top: 27px; }
body[data-header="dark"] .hdr:not(.scrolled) { color: #fff; }
/* Sobre seções escuras o cabeçalho fica escuro também */
.hdr.hdr.on-dark { background: color-mix(in srgb, var(--ink) 72%, transparent); color: #fff; box-shadow: 0 1px 0 rgba(255, 255, 255, .08); }
.hdr.hdr.on-dark .logo-on-dark { opacity: 1; }
.hdr.hdr.on-dark .logo-on-light { opacity: 0; }
.hdr.hdr.on-dark .hdr__nav a:hover, .hdr.hdr.on-dark .hdr__nav a[aria-current] { background: rgba(255, 255, 255, .14); }
body[data-header="dark"] .hdr:not(.scrolled) .logo-on-light, body[data-header="light"] .logo-on-dark, .hdr.scrolled .logo-on-dark { opacity: 0; }
body[data-header="dark"] .hdr:not(.scrolled) .hdr__nav a:hover, body[data-header="dark"] .hdr:not(.scrolled) .hdr__nav a[aria-current] { background: rgba(255, 255, 255, .14); }
.hdr.scrolled, body[data-header="light"] .hdr { background: color-mix(in srgb, var(--paper) 86%, transparent); backdrop-filter: blur(14px) saturate(1.4); -webkit-backdrop-filter: blur(14px) saturate(1.4); box-shadow: 0 1px 0 var(--line); color: var(--ink); }
.hdr.hide:not(:focus-within) { transform: translateY(-100%); }

/* Menu móvel */
.menu { position: fixed; inset: 0; z-index: 60; background: var(--ink); color: #fff; padding: 96px var(--gut) 40px; display: flex; flex-direction: column; gap: 40px; overflow: auto; }
.menu[hidden] { display: none; }
.menu__bg { position: absolute; right: -30vw; bottom: -20vw; width: 90vw; opacity: .08; pointer-events: none; }
.menu__bg .symbol { color: var(--leaf); }
.menu__close { position: absolute; top: 18px; right: var(--gut); background: none; border: 1px solid rgba(255, 255, 255, .35); border-radius: 999px; padding: 10px 18px; cursor: pointer; }
.menu nav { display: grid; gap: 4px; }
.menu nav a { font-size: clamp(36px, 9vw, 56px); font-weight: 600; text-decoration: none; letter-spacing: -.02em; animation: menuIn .6s var(--ease) both; animation-delay: calc(var(--i) * 60ms + 80ms); }
.menu__biz { display: flex; flex-wrap: wrap; gap: 8px; }
.menu__biz a { text-decoration: none; font-size: 15px; padding: 8px 14px; border-radius: 999px; border: 1px solid var(--b-accent); }
@keyframes menuIn { from { opacity: 0; transform: translateY(24px); } }

/* ---------- Hero ---------- */
.hero { position: relative; min-height: 100svh; display: grid; grid-template-rows: 1fr auto; color: #fff; background: var(--ink); overflow: hidden; isolation: isolate; }
.hero__media, .hero__shade { position: absolute; inset: 0; z-index: -1; }
.hero__video { width: 100%; height: 100%; object-fit: cover; transform: scale(1.06); animation: heroZoom 14s var(--ease) forwards; }
@keyframes heroZoom { to { transform: scale(1); } }
.hero__shade { background: linear-gradient(180deg, rgba(5, 45, 44, .6) 0%, rgba(5, 45, 44, 0) 20%), linear-gradient(90deg, rgba(5, 45, 44, .88) 0%, rgba(5, 45, 44, .64) 40%, rgba(5, 45, 44, .1) 72%), linear-gradient(0deg, rgba(5, 45, 44, .85) 0%, rgba(5, 45, 44, 0) 45%); }
.hero__in { align-self: end; padding: calc(var(--hdr) + 40px) 0 40px; }
.hero__eyebrow { color: var(--leaf); }
.hero__title { color: #fff; font-size: clamp(56px, 10.5vw, 168px); line-height: .92; letter-spacing: -.035em; }
.hero__title .line:last-child span { color: var(--leaf); }
.hero__lead { max-width: 46ch; margin-top: 28px; font-size: clamp(18px, 1.2vw + 10px, 22px); font-weight: 400; color: rgba(255, 255, 255, .86); }
.hero__ctas { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 36px; }
.hero__symbol { position: absolute; right: -6vw; top: 50%; width: min(52vw, 760px); translate: 0 -55%; color: #fff; opacity: .1; z-index: -1; pointer-events: none; }
.hero__foot { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 18px 0 26px; border-top: 1px solid rgba(255, 255, 255, .18); font-size: 14px; color: rgba(255, 255, 255, .8); }
.hero__clip { display: flex; align-items: center; gap: 14px; margin-right: auto; }
.hero__meta { letter-spacing: .02em; color: rgba(255, 255, 255, .7); }
.hero__clipbar { width: 64px; height: 2px; background: rgba(255, 255, 255, .25); overflow: hidden; border-radius: 2px; }
.hero__clipbar i { display: block; height: 100%; width: 100%; background: var(--leaf); transform-origin: left; transform: scaleX(0); }
.hero__pause { width: 44px; height: 44px; border-radius: 50%; border: 1px solid rgba(255, 255, 255, .35); background: none; cursor: pointer; display: grid; place-items: center; }
.hero__pause i { width: 10px; height: 12px; border-inline: 3px solid #fff; }
.hero__pause[data-paused="true"] i { border: 0; width: 0; height: 0; border-left: 11px solid #fff; border-block: 7px solid transparent; margin-left: 3px; }

/* Símbolo: hastes entram girando, como na vinheta oficial */
.symbol { width: 100%; height: auto; fill: currentColor; overflow: visible; }
.symbol path { transform-box: view-box; transform-origin: 96px 54px; }
.js .hero__symbol .symbol path { opacity: 0; transform: rotate(-70deg) scale(.6); }
.js.ready .hero__symbol .symbol path { opacity: 1; transform: none; transition: opacity 1.2s var(--ease), transform 1.8s var(--ease); transition-delay: calc(.35s + var(--i) * .09s); }
.hero__symbol .symbol { animation: spin 140s linear infinite; }
@keyframes spin { to { rotate: 360deg; } }

/* ---------- Apresentação ---------- */
.intro { padding: clamp(96px, 14vw, 200px) 0 clamp(72px, 9vw, 140px); display: grid; gap: clamp(56px, 8vw, 110px); }
.statement { font-size: clamp(28px, 3.3vw, 52px); font-weight: 400; line-height: 1.22; letter-spacing: -.015em; color: var(--ink); max-width: 30ch; }
.js .statement span { opacity: .18; transition: opacity .35s linear; }
.js .statement span.on { opacity: 1; }
.facts { display: grid; grid-template-columns: repeat(3, 1fr); border-top: 1px solid var(--line); margin: 0; }
.facts > div { padding: 24px 24px 0 0; }
.facts > div + div { padding-left: 24px; border-left: 1px solid var(--line); }
.facts dt { font-size: 13px; letter-spacing: .14em; text-transform: uppercase; color: var(--muted); font-weight: 600; }
.facts dd { margin: 8px 0 0; font-size: clamp(30px, 3.6vw, 56px); font-weight: 600; color: var(--green); letter-spacing: -.02em; line-height: 1; }

/* ---------- Capítulos das marcas (rolagem fixa) ---------- */
.chapters { position: relative; height: calc(var(--n) * 100vh); background: var(--ink); color: #fff; }
.chapters__sticky { position: sticky; top: 0; height: 100vh; overflow: hidden; isolation: isolate; }
.chapters__bg { position: absolute; inset: 0; z-index: -3; background: var(--active-dark, #1F2B27); transition: background .9s var(--ease-io); }
.chapters__pats { position: absolute; inset: 0; z-index: -2; }
.pat { position: absolute; inset: 0; opacity: 0; transition: opacity .8s var(--ease); }
.pat.on { opacity: .42; }
.pattern { width: 100%; height: 100%; fill: var(--b-accent); }
/* Padrões oficiais: as formas só aparecem em sequência (sem mover cada uma, para não deformar o desenho);
   o padrão inteiro faz uma leve aproximação. */
.pattern { transform: scale(1.06); transform-origin: 50% 50%; transition: transform 2.4s var(--ease); }
.pattern [style*="--i"] { opacity: 0; transition: opacity .9s var(--ease); transition-delay: calc(min(var(--i), 80) * 14ms); }
.on > .pattern, .bhero .pattern, .mais .pattern, .tile.in .pattern { transform: none; }
.on > .pattern [style*="--i"], .bhero .pattern [style*="--i"], .mais .pattern [style*="--i"], .tile.in .pattern [style*="--i"] { opacity: 1; }
.js .bhero .pattern [style*="--i"] { opacity: 0; }
/* Agropecuária: as linhas saem do canto inferior esquerdo e o leque se abre até o desenho oficial.
   --k (0 = linha mais baixa, 1 = mais alta) é calculado no site.js pela altura de cada curva. */
.pattern--agro { transform: none; clip-path: circle(0% at 0% 100%); transition: clip-path 1.8s var(--ease); }
.pattern--agro [style*="--i"] { opacity: 1; transform-box: view-box; transform-origin: 0 1080px; transform: rotate(calc(var(--k, 0) * 38deg)); transition: transform 1.9s var(--ease) .15s; }
.on > .pattern--agro, .bhero .pattern--agro, .tile.in .pattern--agro { clip-path: circle(150% at 0% 100%); }
.on > .pattern--agro [style*="--i"], .bhero .pattern--agro [style*="--i"], .tile.in .pattern--agro [style*="--i"] { transform: none; }
.js .bhero .pattern--agro { clip-path: circle(0% at 0% 100%); }
.js .bhero .pattern--agro [style*="--i"] { opacity: 1; transform: rotate(calc(var(--k, 0) * 38deg)); }
.js.ready .bhero .pattern--agro { clip-path: circle(150% at 0% 100%); }
.js.ready .bhero .pattern--agro [style*="--i"] { transform: none; }
.js.ready .bhero .pattern [style*="--i"] { opacity: 1; }
.chapters__grid { height: 100%; display: grid; grid-template-columns: minmax(220px, .8fr) minmax(0, 1.1fr) minmax(0, .9fr); gap: clamp(24px, 4vw, 64px); align-items: center; padding-top: var(--hdr); }
.chapters__head .eyebrow { color: var(--b-accent, var(--leaf)); }
.chapters__h { color: #fff; font-size: clamp(32px, 3.4vw, 52px); }
.counter { margin: 40px 0 28px; display: flex; align-items: baseline; gap: 8px; font-weight: 600; }
.counter b { font-size: clamp(56px, 6vw, 96px); line-height: 1; letter-spacing: -.04em; color: var(--active-accent, var(--leaf)); transition: color .6s; font-variant-numeric: tabular-nums; }
.counter span { color: rgba(255, 255, 255, .5); }
.rail { display: grid; gap: 2px; }
.rail button { width: 100%; display: flex; align-items: center; gap: 12px; background: none; border: 0; padding: 8px 0; color: rgba(255, 255, 255, .5); cursor: pointer; text-align: left; font-size: 15px; transition: color .3s; }
.rail button::before { content: ""; width: 18px; height: 2px; background: currentColor; transition: width .5s var(--ease), background .4s; }
.rail button[aria-current="true"] { color: #fff; }
.rail button[aria-current="true"]::before { width: 40px; background: var(--b-accent); }
.chapters__list { position: relative; height: min(560px, 70vh); }
.ch { position: absolute; inset: 0; display: flex; align-items: center; pointer-events: none; }
.ch__text > * { opacity: 0; transform: translateY(30px); transition: opacity .5s var(--ease), transform .7s var(--ease); }
.ch.on { pointer-events: auto; }
.ch.on .ch__text > * { opacity: 1; transform: none; transition-duration: .8s, 1s; }
.ch.on .ch__text > :nth-child(2) { transition-delay: .08s; } .ch.on .ch__text > :nth-child(3) { transition-delay: .16s; } .ch.on .ch__text > :nth-child(4) { transition-delay: .24s; } .ch.on .ch__text > :nth-child(5) { transition-delay: .32s; }
.ch__logo { height: 52px; width: auto; max-width: 100%; margin-bottom: 36px; object-fit: contain; object-position: left; }
.ch__title { color: #fff; font-size: clamp(36px, 3.8vw, 64px); max-width: 14ch; }
.ch__sum { margin-top: 22px; font-size: clamp(17px, 1.1vw + 8px, 20px); color: rgba(255, 255, 255, .78); max-width: 42ch; font-weight: 400; }
.ch .link { margin-top: 18px; color: #fff; }
.ch__media { display: none; }
.chips { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 26px; }
.chips li { font-size: 14px; padding: 7px 14px; border-radius: 999px; border: 1px solid color-mix(in srgb, var(--b-accent) 70%, transparent); color: inherit; }
.chapters__frames { position: relative; height: min(72vh, 660px); aspect-ratio: 4 / 5; justify-self: end; max-width: 100%; }
.frame { position: absolute; inset: 0; margin: 0; border-radius: 22px; overflow: hidden; clip-path: inset(100% 0 0 0 round 22px); transition: clip-path 1s var(--ease-io); background: var(--b-dark); }
.frame.on { clip-path: inset(0 0 0 0 round 22px); z-index: 2; }
.frame.was { clip-path: inset(0 0 0 0 round 22px); z-index: 1; }
.frame img, .frame video { width: 100%; height: 100%; object-fit: cover; transform: scale(1.15); transition: transform 1.6s var(--ease); }
.frame.on img, .frame.on video { transform: scale(1); }
.frame figcaption { position: absolute; left: 16px; bottom: 16px; font-size: 13px; padding: 6px 12px; border-radius: 999px; background: rgba(0, 0, 0, .35); backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px); }

/* ---------- Origem / linha do tempo ---------- */
.origin { padding: clamp(96px, 12vw, 180px) 0; background: var(--paper-2); }
.origin__grid { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: clamp(32px, 7vw, 120px); align-items: start; }
.origin__photo { position: sticky; top: calc(var(--hdr) + 24px); margin: 0; border-radius: 22px; overflow: hidden; aspect-ratio: 4 / 5; }
.origin__photo img { width: 100%; height: 100%; object-fit: cover; }
.origin__photo figcaption { position: absolute; left: 16px; bottom: 16px; color: #fff; font-size: 14px; padding: 6px 12px; border-radius: 999px; background: rgba(5, 45, 44, .5); backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px); }
.origin__text .lead { margin-top: 24px; }
.timeline { margin: 56px 0 32px; border-top: 1px solid var(--line); }
.timeline li { display: grid; grid-template-columns: 9ch 1fr; gap: 24px; padding: 28px 0; border-bottom: 1px solid var(--line); }
.timeline__date { font-weight: 600; color: var(--green-2); font-size: 20px; font-variant-numeric: tabular-nums; }
.timeline h3 { font-size: clamp(22px, 1.6vw + 8px, 30px); margin-bottom: 8px; }
.timeline p { color: var(--muted); }

/* ---------- Faixa de fotos (rolagem horizontal) ---------- */
.strip { position: relative; padding: clamp(96px, 12vw, 170px) 0 clamp(72px, 8vw, 120px); overflow: hidden; }
.strip__head { margin-bottom: 48px; }
.strip__track { display: flex; gap: clamp(14px, 1.6vw, 24px); --strip-pad: max(var(--gut), calc((100% - 1320px) / 2)); padding-inline: var(--strip-pad); scroll-padding-inline: var(--strip-pad); overflow-x: auto; scroll-snap-type: x mandatory; scrollbar-width: none; cursor: grab; }
.strip__track::-webkit-scrollbar { display: none; }
.strip__track.drag { cursor: grabbing; scroll-snap-type: none; }
.strip figure { flex: 0 0 clamp(260px, 34vw, 520px); margin: 0; scroll-snap-align: start; }
.strip figure:nth-child(even) { margin-top: 64px; }
.strip figure img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; border-radius: 18px; pointer-events: none; user-select: none; }
.strip figcaption { margin-top: 12px; font-size: 15px; color: var(--muted); }

/* ---------- Notícias ---------- */
.news { padding: clamp(72px, 9vw, 140px) 0; }
.sec-head { display: flex; justify-content: space-between; align-items: end; gap: 24px; margin-bottom: 48px; flex-wrap: wrap; }
.cards { display: grid; grid-template-columns: repeat(3, 1fr); gap: clamp(16px, 2vw, 28px); }
.card a { display: grid; gap: 12px; text-decoration: none; }
.card__img { overflow: hidden; border-radius: 18px; aspect-ratio: 4 / 3; background: var(--mist); }
.card__img img { width: 100%; height: 100%; object-fit: cover; transition: transform 1.2s var(--ease); }
.card a:hover .card__img img { transform: scale(1.06); }
.card__cat { font-size: 13px; font-weight: 600; letter-spacing: .12em; text-transform: uppercase; color: var(--green-2); margin-top: 8px; }
.card h3 { font-size: clamp(22px, 1.4vw + 8px, 28px); }
.card p:not(.card__cat) { color: var(--muted); }
.card .link { justify-self: start; }
.card[hidden] { display: none; }
.filters { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 40px; }
.filters button { min-height: 44px; padding: 0 18px; border-radius: 999px; border: 1px solid var(--line); background: none; cursor: pointer; }
.filters button[aria-pressed="true"] { background: var(--ink); color: #fff; border-color: var(--ink); }

/* ---------- Faixa de contato ---------- */
.contact-band { background: var(--ink); color: #fff; padding: clamp(80px, 10vw, 150px) 0; }
.contact-band .h2 { color: #fff; }
.contact-band .eyebrow { color: var(--leaf); }
.contact-band .lead { color: rgba(255, 255, 255, .72); margin-top: 20px; }
.contact-band__grid { display: grid; grid-template-columns: 1fr 1.1fr; gap: clamp(32px, 6vw, 96px); align-items: start; }
.routes { border-top: 1px solid rgba(255, 255, 255, .16); }
.routes a { display: flex; align-items: center; gap: 16px; padding: 20px 4px; border-bottom: 1px solid rgba(255, 255, 255, .16); text-decoration: none; font-size: clamp(18px, 1.2vw + 8px, 22px); font-weight: 400; transition: padding .4s var(--ease), background .4s; }
.routes a > span:nth-child(2) { margin-right: auto; }
.routes a:hover { padding-left: 16px; background: linear-gradient(90deg, color-mix(in srgb, var(--b-accent, var(--leaf)) 22%, transparent), transparent 70%); }
.routes__dot { width: 10px; height: 10px; border-radius: 50%; background: var(--b-accent, var(--leaf)); flex: none; }

/* ---------- Rodapé ---------- */
.ftr { position: relative; background: #031F1E; color: rgba(255, 255, 255, .78); padding: 96px 0 32px; overflow: hidden; isolation: isolate; font-size: 16px; }
.ftr__mark { position: absolute; right: -10vw; bottom: -18vw; width: 60vw; color: var(--leaf); opacity: .06; z-index: -1; }
.ftr__grid { display: grid; grid-template-columns: 1.4fr repeat(3, 1fr); gap: 40px; }
.ftr__brand img { width: 200px; height: auto; margin-bottom: 28px; }
.ftr__brand p { margin-bottom: 12px; }
.ftr h2 { font-size: 13px; letter-spacing: .14em; text-transform: uppercase; color: var(--leaf); margin-bottom: 16px; }
.ftr nav a, .ftr__brand a { display: flex; align-items: center; gap: 6px; text-decoration: none; padding: 6px 0; }
.ftr nav a:hover, .ftr__brand a:hover { color: #fff; }
.ftr__base { display: flex; justify-content: space-between; margin-top: 80px; padding-top: 24px; border-top: 1px solid rgba(255, 255, 255, .12); font-size: 14px; }

/* ---------- Prévia ---------- */
.preview { position: fixed; left: 12px; bottom: 12px; z-index: 30; display: flex; align-items: center; gap: 8px; font-size: 13px; padding: 8px 14px; border-radius: 999px; background: #fff; color: var(--ink); box-shadow: 0 6px 24px rgba(5, 45, 44, .18); }
.preview a { font-weight: 600; }
.preview__dot { width: 8px; height: 8px; border-radius: 50%; background: #E0A33A; }

/* ---------- Páginas internas ---------- */
.phead { padding: calc(var(--hdr) + clamp(64px, 9vw, 140px)) 0 clamp(48px, 6vw, 96px); }
.phead .lead { margin-top: 24px; }

.bhero { position: relative; min-height: 100svh; background: var(--b-dark); color: #fff; overflow: hidden; isolation: isolate; display: flex; align-items: center; }
.bhero__pat { position: absolute; inset: 0; z-index: -1; opacity: .35; }
.bhero__grid { display: grid; grid-template-columns: 1.15fr .85fr; gap: clamp(32px, 6vw, 96px); align-items: center; padding: calc(var(--hdr) + 48px) 0 64px; }
.crumbs { font-size: 14px; color: rgba(255, 255, 255, .7); margin-bottom: 40px; }
.crumbs a { text-decoration: none; } .crumbs a:hover { text-decoration: underline; }
.bhero__logo { height: clamp(44px, 5vw, 64px); width: auto; max-width: 100%; margin-bottom: 40px; }
.bhero__title { color: #fff; font-size: clamp(48px, 6.4vw, 104px); line-height: .96; }
.bhero__lead { margin-top: 28px; max-width: 40ch; font-size: clamp(18px, 1.2vw + 10px, 22px); font-weight: 400; color: rgba(255, 255, 255, .82); }
.bhero__media { margin: 0; border-radius: 22px; overflow: hidden; aspect-ratio: 4 / 5; max-height: 76vh; justify-self: end; width: 100%; }
.bhero__media img, .bhero__media video { width: 100%; height: 100%; object-fit: cover; }

.about { display: grid; grid-template-columns: 1.2fr 1fr; gap: clamp(32px, 6vw, 96px); padding: clamp(96px, 12vw, 170px) 0 clamp(64px, 8vw, 110px); align-items: start; }
.about .lead { margin-top: 24px; max-width: 46ch; }
.areas { border-top: 1px solid var(--line); }
.areas li { display: flex; gap: 20px; align-items: baseline; padding: 22px 0; border-bottom: 1px solid var(--line); font-size: clamp(20px, 1.4vw + 8px, 28px); font-weight: 400; color: var(--ink); }
.extcard { grid-column: 1 / -1; display: grid; gap: 6px; padding: clamp(28px, 4vw, 48px); border-radius: 22px; background: var(--b-dark); color: #fff; text-decoration: none; position: relative; overflow: hidden; transition: transform .5s var(--ease); }
.extcard .eyebrow { color: var(--b-accent); margin: 0; filter: brightness(1.25); }
.extcard strong { font-size: clamp(28px, 3.4vw, 52px); font-weight: 600; letter-spacing: -.02em; }
.extcard span:last-child { display: inline-flex; align-items: center; gap: 8px; color: rgba(255, 255, 255, .8); }
.extcard::after { content: ""; position: absolute; inset: auto -10% -60% auto; width: 50%; aspect-ratio: 1; border-radius: 50%; background: var(--b-accent); opacity: .25; filter: blur(40px); transition: transform .8s var(--ease); }
.extcard:hover::after { transform: translate(-20%, -20%) scale(1.3); }
.extcard:hover .ic { transform: translate(3px, -3px); }

.gallery { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 420px), 1fr)); gap: clamp(14px, 2vw, 24px); padding-bottom: clamp(72px, 9vw, 140px); }
.gallery figure { margin: 0; border-radius: 22px; overflow: hidden; aspect-ratio: 3 / 2; }
.gallery img, .gallery video { width: 100%; height: 100%; object-fit: cover; }
.gallery figure { position: relative; }
.gallery figcaption { position: absolute; left: 16px; bottom: 16px; max-width: calc(100% - 32px); color: #fff; font-size: 14px; padding: 6px 12px; border-radius: 999px; background: rgba(0, 0, 0, .4); backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px); }

.mais { position: relative; background: var(--b-dark); color: #fff; padding: clamp(96px, 12vw, 170px) 0; overflow: hidden; isolation: isolate; }
.mais__pat { position: absolute; inset: 0; z-index: -1; opacity: .22; }
.mais__grid { display: grid; grid-template-columns: .9fr 1.1fr; gap: clamp(32px, 6vw, 96px); align-items: center; }
.mais__media { margin: 0; border-radius: 22px; overflow: hidden; aspect-ratio: 4 / 5; }
.mais__media img { width: 100%; height: 100%; object-fit: cover; }
.mais__logo { height: 48px; width: auto; margin-bottom: 36px; }
.mais .h2 { color: #fff; } .mais .lead { color: rgba(255, 255, 255, .78); margin-top: 20px; }
.mais .extcard { margin-top: 36px; background: rgba(255, 255, 255, .08); }

.others { padding: clamp(64px, 8vw, 120px) 0; }
.others ul { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 12px; }
.others a { display: flex; justify-content: space-between; align-items: center; gap: 12px; padding: 22px; border-radius: 16px; background: var(--b-dark); color: #fff; text-decoration: none; font-weight: 600; min-height: 110px; align-items: end; transition: transform .5s var(--ease); }
.others a:hover { transform: translateY(-4px); }

.tiles { display: grid; grid-template-columns: repeat(3, 1fr); gap: clamp(14px, 2vw, 24px); padding-bottom: clamp(80px, 10vw, 150px); }
.tile { position: relative; display: grid; grid-template-rows: auto 1fr; border-radius: 22px; overflow: hidden; background: var(--b-dark); color: #fff; text-decoration: none; isolation: isolate; min-height: 560px; }
.tile__media { aspect-ratio: 4 / 3; overflow: hidden; }
.tile__media img, .tile__media video { width: 100%; height: 100%; object-fit: cover; transition: transform 1.2s var(--ease); }
.tile:hover .tile__media img, .tile:hover .tile__media video { transform: scale(1.06); }
.tile__pat { position: absolute; inset: 40% 0 0; z-index: -1; opacity: .3; }
.tile__body { padding: 28px; display: grid; gap: 16px; align-content: start; }
.tile__body img { height: 36px; width: auto; max-width: 100%; object-fit: contain; object-position: left; }
.tile__body p { color: rgba(255, 255, 255, .8); }
.tile .link { justify-self: start; align-self: end; }
.tiles--mini { grid-template-columns: repeat(6, minmax(0, 1fr)); padding-top: clamp(64px, 8vw, 120px); }
.mini { display: flex; flex-direction: column; justify-content: space-between; gap: 40px; padding: 24px; border-radius: 18px; background: var(--b-dark); color: #fff; min-height: 150px; }
.mini img { height: 26px; width: auto; max-width: 100%; object-fit: contain; object-position: left; }

.ahero { position: relative; min-height: 88svh; display: flex; align-items: end; color: #fff; overflow: hidden; isolation: isolate; background: var(--ink); }
.ahero__img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; z-index: -2; animation: heroZoom 14s var(--ease) forwards; transform: scale(1.06); }
.ahero .hero__shade { z-index: -1; }
.ahero__in { padding: 0 0 72px; }
.ahero .eyebrow { color: var(--leaf); }
.story { padding: clamp(96px, 12vw, 180px) 0; }
.vinheta { background: #E9ECEC; }
.vinheta video { width: 100%; max-height: 80vh; object-fit: cover; }
.people { display: grid; grid-template-columns: 1.3fr 1fr; gap: clamp(32px, 6vw, 96px); align-items: center; padding: clamp(96px, 12vw, 170px) 0 0; }
.people__img { margin: 0; border-radius: 22px; overflow: hidden; aspect-ratio: 4 / 3; }
.people__img img { width: 100%; height: 100%; object-fit: cover; }
.people .lead { margin-top: 20px; }

.contact { display: grid; grid-template-columns: 1fr 1.3fr; gap: clamp(32px, 6vw, 96px); padding-bottom: clamp(96px, 12vw, 160px); }
.contact__info .eyebrow:not(:first-child) { margin-top: 40px; }
.contact__info p { margin-bottom: 6px; }
.contact > * { min-width: 0; }
.contact__info .link { overflow-wrap: anywhere; flex-wrap: wrap; }
.form { display: grid; gap: 20px; padding: clamp(24px, 4vw, 48px); background: #fff; border-radius: 22px; box-shadow: 0 1px 0 var(--line); }
.form__field { min-width: 0; display: grid; gap: 8px; }
.form label { min-width: 0; display: grid; gap: 8px; font-weight: 600; font-size: 15px; color: var(--ink); }
.form input, .form select, .form textarea { min-width: 0; width: 100%; font: 400 17px/1.4 "Mulish", sans-serif; padding: 14px 16px; border-radius: 12px; border: 1px solid var(--stone); background: var(--paper); color: var(--text); min-height: 52px; }
.form input:focus, .form select:focus, .form textarea:focus { outline: 2px solid var(--leaf); outline-offset: 0; border-color: transparent; }
.form [aria-invalid="true"] { border-color: #B3412F; }
.form .err { color: #B3412F; font-weight: 400; font-size: 14px; }
.form__note { font-size: 14px; color: var(--muted); padding: 12px 16px; border-radius: 12px; background: var(--paper-2); }
.form .btn { justify-self: start; }
.gaps ol { display: grid; gap: 16px; padding-bottom: 120px; counter-reset: g; }
.gaps li { padding: 24px; border-radius: 16px; background: #fff; }
.gaps h2 { font-size: 22px; margin-bottom: 8px; }

/* ---------- Responsivo ---------- */
@media (max-width: 1080px) {
  .chapters__grid { grid-template-columns: 1fr 1fr; }
  .chapters__head { grid-column: 1 / -1; display: flex; align-items: end; justify-content: space-between; gap: 24px; }
  .chapters__head .rail, .chapters__head .eyebrow { display: none; }
  .counter { margin: 0; }
  .others ul { grid-template-columns: repeat(2, 1fr); }
  .tiles { grid-template-columns: repeat(2, 1fr); }
  .tiles--mini { grid-template-columns: repeat(3, 1fr); }
  .ftr__grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 860px) {
  :root { --hdr: 64px; }
  .hdr__nav, .hdr__cta { display: none; }
  .hdr__menu { display: block; }
  .hdr__in { gap: 12px; }
  .hdr__logo { min-width: 0; }
  .hdr__logo img { height: auto; width: min(180px, 48vw); }
  .hero__symbol { width: 110vw; right: -40vw; top: 30%; }
  .hero__ctas .btn { flex: 1 1 auto; justify-content: center; }
  .hero__meta { display: none; }
  .facts { grid-template-columns: 1fr; }
  .facts > div, .facts > div + div { padding: 18px 0; border-left: 0; border-bottom: 1px solid var(--line); }
  /* Capítulos viram cartões empilhados */
  .chapters { height: auto; }
  .chapters__sticky { position: static; height: auto; overflow: visible; }
  .chapters__bg, .chapters__pats, .chapters__frames, .counter { display: none; }
  .chapters__grid { display: block; padding: 88px 0 40px; }
  .chapters__head { display: block; margin-bottom: 32px; }
  .chapters__head .eyebrow { display: block; color: var(--leaf); }
  .chapters__list { height: auto; display: grid; gap: 16px; }
  .ch { position: static; display: block; pointer-events: auto; background: var(--b-dark); border-radius: 22px; overflow: hidden; }
  .ch__media { display: block; margin: 0; aspect-ratio: 4 / 3; }
  .ch__media img, .ch__media video { width: 100%; height: 100%; object-fit: cover; }
  .ch__text { padding: 28px 22px 26px; }
  .ch__text > * { opacity: 1; transform: none; }
  .ch__logo { height: 34px; margin-bottom: 22px; }
  .ch__title { font-size: 32px; }
  .origin__grid, .contact-band__grid, .bhero__grid, .about, .mais__grid, .people, .contact { grid-template-columns: 1fr; }
  .origin__photo { position: relative; top: 0; aspect-ratio: 4 / 3; }
  .timeline li { grid-template-columns: 1fr; gap: 6px; }
  .strip figure:nth-child(even) { margin-top: 0; }
  .cards { grid-template-columns: 1fr; }
  .bhero__media { aspect-ratio: 4 / 3; justify-self: stretch; }
  .tiles { grid-template-columns: 1fr; }
  .tile { min-height: 0; }
  .tiles--mini { grid-template-columns: 1fr 1fr; }
  .others ul { grid-template-columns: 1fr; }
  .others a { min-height: 0; padding: 18px 20px; }
  .ftr__grid { grid-template-columns: 1fr; }
  .ftr__base { flex-direction: column; gap: 6px; }
  .preview { font-size: 12px; padding: 6px 12px; bottom: 10px; left: 10px; }
  .preview a { display: none; }
  .hero__shade { background: linear-gradient(180deg, rgba(5, 45, 44, .55) 0%, rgba(5, 45, 44, .25) 30%, rgba(5, 45, 44, .7) 55%, rgba(5, 45, 44, .92) 100%); }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; transition-delay: 0s !important; scroll-behavior: auto !important; }
  .js [data-enter], .js .rv, .js .line > [data-enter] { opacity: 1; transform: none; }
  .js .statement span { opacity: 1; }
  .hero__symbol .symbol { animation: none; }
}

/* Projetos (ILMA Empreendimentos) */
.project { display: grid; grid-template-columns: minmax(0, 4fr) minmax(0, 8fr); gap: clamp(32px, 5vw, 80px); align-items: start; padding-bottom: clamp(80px, 10vw, 150px); }
.project__text { position: sticky; top: calc(var(--hdr) + 32px); }
.project__meta { display: flex; flex-wrap: wrap; gap: 8px; margin: 20px 0 24px; }
.project__meta li { font-size: 14px; padding: 6px 14px; border-radius: 999px; background: var(--b-dark); color: #fff; }
.project__imgs { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: clamp(12px, 1.6vw, 20px); }
.project__imgs figure { margin: 0; }
.project__imgs figure:nth-child(1) { grid-column: 1 / -1; }
.project__imgs img { width: 100%; aspect-ratio: 4 / 5; object-fit: cover; border-radius: 18px; }
.project__imgs figure:nth-child(1) img { aspect-ratio: 16 / 9; }
.project__imgs figcaption { margin-top: 10px; font-size: 14px; color: var(--muted); }
/* Com duas fotos, as duas ficam lado a lado no formato vertical, sem buraco na grade */
.project__imgs figure:first-child:nth-last-child(2) { grid-column: auto; }
.project__imgs figure:first-child:nth-last-child(2) img { aspect-ratio: 4 / 5; }
@media (max-width: 860px) {
  .project { grid-template-columns: 1fr; }
  .project__text { position: static; }
}

/* Texto legal */
.legal { max-width: 72ch; padding-bottom: clamp(96px, 12vw, 160px); }
.legal h2 { font-size: clamp(22px, 1.4vw + 10px, 28px); margin: 48px 0 12px; }
.legal p { margin-bottom: 14px; color: var(--text); }
.legal a { color: var(--green); }

/* O Grupo: tempos, citação, família, lugares */
.ahero video.ahero__img { object-fit: cover; }
.tempos { display: grid; gap: clamp(64px, 9vw, 140px); padding-bottom: clamp(96px, 12vw, 170px); }
.tempo { display: grid; grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); gap: clamp(32px, 6vw, 96px); align-items: center; }
.tempo--alt .tempo__img { order: 2; }
.tempo__img { margin: 0; border-radius: 22px; overflow: hidden; aspect-ratio: 4 / 3; }
.tempo__img img { width: 100%; height: 100%; object-fit: cover; }
.tempo__tag { font-weight: 600; color: var(--green-2); font-size: clamp(18px, 1vw + 10px, 22px); margin-bottom: 12px; font-variant-numeric: tabular-nums; }
.tempo .lead { margin-top: 18px; }
.quote { background: var(--ink); color: #fff; padding: clamp(96px, 12vw, 170px) 0; }
.quote__grid { display: grid; grid-template-columns: minmax(0, 4fr) minmax(0, 7fr); gap: clamp(32px, 6vw, 96px); align-items: center; }
.quote__img { margin: 0; border-radius: 22px; overflow: hidden; aspect-ratio: 4 / 5; }
.quote__img img { width: 100%; height: 100%; object-fit: cover; object-position: 50% 15%; }
.quote__body { margin: 0; }
.quote__text { font-size: clamp(30px, 3.4vw, 54px); font-weight: 400; line-height: 1.2; letter-spacing: -.015em; color: #fff; }
.quote__body footer { margin-top: 28px; color: var(--leaf); font-size: 18px; }
.quote__body footer strong { font-weight: 600; }
.quote__values { margin-top: 28px; color: rgba(255, 255, 255, .72); font-size: clamp(17px, 1vw + 8px, 20px); max-width: 44ch; }
.family { display: grid; grid-template-columns: minmax(0, 6fr) minmax(0, 6fr); gap: clamp(32px, 6vw, 96px); align-items: center; padding: clamp(96px, 12vw, 170px) 0; }
.family__img { margin: 0; border-radius: 22px; overflow: hidden; aspect-ratio: 4 / 3; }
.family__img img, .family__img video { width: 100%; height: 100%; object-fit: cover; }
.family .lead { margin-top: 20px; }
.family__list { margin-top: 32px; border-top: 1px solid var(--line); }
.family__list li { display: grid; gap: 2px; padding: 18px 0; border-bottom: 1px solid var(--line); }
.family__list strong { font-size: clamp(20px, 1.2vw + 10px, 24px); font-weight: 600; color: var(--ink); }
.family__list span { color: var(--muted); }
.places { padding-bottom: clamp(96px, 12vw, 160px); }
.places .lead { margin-top: 16px; }
.places__grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: clamp(14px, 2vw, 24px); margin-top: 48px; }
.places__grid figure { margin: 0 0 16px; border-radius: 18px; overflow: hidden; aspect-ratio: 4 / 5; }
.places__grid img { width: 100%; height: 100%; object-fit: cover; transition: transform 1.2s var(--ease); }
.places__grid li:hover img { transform: scale(1.05); }
.places__grid h3 { font-size: 22px; margin-bottom: 6px; }
.places__grid p { color: var(--muted); }
/* Duas cidades: dois cartões mais largos, em formato horizontal */
.places__grid--2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.places__grid--2 figure { aspect-ratio: 4 / 3; }
@media (max-width: 860px) { .places__grid { grid-template-columns: 1fr; } }
@media (max-width: 860px) {
  .tempo, .quote__grid, .family { grid-template-columns: 1fr; }
  .tempo--alt .tempo__img { order: 0; }
  .quote__img { aspect-ratio: 4 / 3; }
}
.ahero img.ahero__img { object-position: 50% 12%; }

.places__pat { background: var(--b-dark); }
.places__pat .pattern { transform: none; }
.places__pat .pattern [style*="--i"] { opacity: 1; transform: none; }

/* galeria com foto de abertura em largura total */
.gallery--lead figure:first-child { grid-column: 1 / -1; aspect-ratio: 16 / 9; }
.gallery--lead figure:first-child img { object-position: 50% 60%; }
@media (max-width: 860px) { .gallery--lead figure:first-child { aspect-ratio: 4 / 3; } }
