/* =============================================================================
   Instituto-E — folha de estilo do novo site (HTML estático → tema WordPress)
   Mantém a identidade do site original: fundo #141212, texto #F8F4EA,
   Helvetica, seleção verde. Mobile-first, sem dependências.
   ========================================================================== */

/* ---------------------------------------------------------------- tokens */
:root {
  --c-bg: #141212;
  --c-bg-pure: #000000;
  --c-text: #F8F4EA;
  --c-text-dim: rgba(248, 244, 234, 0.7);
  --c-text-faint: rgba(248, 244, 234, 0.45);
  --c-line: rgba(248, 244, 234, 0.22);
  --c-grey: #888B8D;
  --c-grey-2: #707070;
  --c-green: rgba(19, 122, 99, 0.6);
  --c-green-solid: #137a63;
  --c-overlay: rgba(0, 0, 0, 0.6);
  --c-overlay-strong: rgba(0, 0, 0, 0.78);

  --font: "Helvetica Neue", Helvetica, Arial, sans-serif;

  --gutter: clamp(24px, 6vw, 100px);
  --content-max: 1440px;
  --header-h: 68px;

  --ease: cubic-bezier(0.22, 1, 0.36, 1);
  --t-fast: 0.25s;
  --t-base: 0.4s;

  --fs-body: clamp(1rem, 0.94rem + 0.3vw, 1.2rem);
  --fs-lead: clamp(1.125rem, 1rem + 0.5vw, 1.5rem);
  --fs-h1: clamp(2rem, 1.3rem + 3vw, 3.5rem);
  --fs-section: clamp(2.125rem, 1.4rem + 3vw, 3.75rem);
  --fs-display: clamp(2.75rem, 1.6rem + 5vw, 5.6rem);
  --fs-menu: clamp(2.5rem, 1.5rem + 5vw, 5rem);

  --radius: 12px;
  --shadow: 0 20px 60px rgba(0, 0, 0, 0.45);
}

@media (min-width: 768px) { :root { --header-h: 80px; } }

/* ---------------------------------------------------------------- reset */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-padding-top: calc(var(--header-h) + 16px); }
@media (prefers-reduced-motion: no-preference) { html { scroll-behavior: smooth; } }
body {
  margin: 0;
  background: var(--c-bg);
  color: var(--c-text);
  font-family: var(--font);
  font-size: var(--fs-body);
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
html.nav-open, html.dialog-open { overflow: hidden; }
h1, h2, h3, h4, p, ul, ol, dl, dd, figure, address { margin: 0; }
ul, ol { padding: 0; list-style: none; }
img, video, svg { display: block; max-width: 100%; height: auto; }
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; background: none; border: 0; padding: 0; cursor: pointer; }
address { font-style: normal; }
::selection { background: var(--c-green); color: var(--c-text); }
:focus-visible { outline: 2px solid var(--c-text); outline-offset: 4px; border-radius: 2px; }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }

/* barra de rolagem (estilo herdado) */
::-webkit-scrollbar { width: 8px; }
::-webkit-scrollbar-track { background: var(--c-bg); }
::-webkit-scrollbar-thumb { background: var(--c-grey-2); border-radius: 10px; }
::-webkit-scrollbar-thumb:hover { background: var(--c-green-solid); }

/* ---------------------------------------------------------------- layout */
.container {
  width: 100%;
  max-width: calc(var(--content-max) + 2 * var(--gutter));
  margin-inline: auto;
  padding-inline: var(--gutter);
}
.main { display: block; }
.skip-link {
  position: absolute; left: 16px; top: -100px; z-index: 1000;
  padding: 10px 16px; background: var(--c-text); color: var(--c-bg); border-radius: 999px; font-weight: 700;
}
.skip-link:focus { top: 16px; }

/* ---------------------------------------------------------------- tipografia */
.t-brand span:not([class]), .t-brand u, .t-brand span:not([class]) .word__inner { text-decoration: underline; text-decoration-thickness: 0.08em; text-underline-offset: 0.08em; }
.t-brand b, .t-brand strong { font-weight: 700; }
.eyebrow {
  font-size: 0.8rem; letter-spacing: 0.18em; text-transform: uppercase; color: var(--c-text-dim); margin-bottom: 14px;
}
.section-title { font-size: var(--fs-section); font-weight: 700; line-height: 1.05; letter-spacing: -0.01em; }

.rich-text p { margin-bottom: 1.1em; }
.rich-text p:last-child { margin-bottom: 0; }
.rich-text b, .rich-text strong { font-weight: 700; }
.rich-text i, .rich-text em { font-style: italic; }
.rich-text u, .rich-text span:not([class]) { text-decoration: underline; text-underline-offset: 0.12em; }
.rich-text ul { margin: 0 0 1.1em; padding-left: 0; }
.rich-text ul li { position: relative; padding-left: 1.2em; margin-bottom: 0.4em; }
.rich-text ul li::before { content: ""; position: absolute; left: 0; top: 0.72em; width: 7px; height: 7px; border-radius: 50%; background: var(--c-text); }
.rich-text ul li p { margin: 0; }
.rich-text h3 { font-size: 1.35em; line-height: 1.25; margin: 0.4em 0 0.2em; }
.rich-text h4 { font-size: 0.95em; font-weight: 400; color: var(--c-text-dim); margin: 0 0 0.6em; }
.rich-text div { margin-bottom: 0.8em; }
.rich-text--lead { font-size: var(--fs-lead); line-height: 1.6; }
.rich-text--blocks ul li::before { display: none; }
.rich-text--blocks ul li { padding-left: 0; }

.link-arrow {
  display: inline-flex; align-items: center; gap: 12px;
  font-size: clamp(1.125rem, 1rem + 0.8vw, 1.6rem); font-weight: 400;
  padding-bottom: 4px; position: relative; width: fit-content;
}
.link-arrow .icon { width: 1.2em; height: 1.2em; flex: none; transition: transform var(--t-base) var(--ease); }
.link-arrow span { position: relative; }
.link-arrow span::after {
  content: ""; position: absolute; left: 0; bottom: -4px; height: 1px; width: 0; background: currentColor;
  transition: width var(--t-base) var(--ease);
}
.link-arrow:hover span::after, .link-arrow:focus-visible span::after { width: 100%; }
.link-arrow:hover .icon { transform: translateX(4px); }
.link-arrow--big { font-size: clamp(1.5rem, 1.1rem + 1.6vw, 2.5rem); }

.button {
  display: inline-flex; align-items: center; justify-content: center;
  min-height: 48px; padding: 10px 22px; border-radius: 999px;
  border: 1px solid var(--c-text); font-size: 1.1rem;
  transition: background var(--t-base) var(--ease), color var(--t-base) var(--ease);
}
.button:hover, .button:focus-visible { background: var(--c-text); color: var(--c-bg); }

.ctrl {
  display: inline-flex; align-items: center; justify-content: center;
  width: 48px; height: 48px; border-radius: 50%; border: 1px solid var(--c-line);
  transition: border-color var(--t-fast), background var(--t-fast), opacity var(--t-fast);
}
.ctrl .icon { width: 22px; height: 22px; }
.ctrl:hover, .ctrl:focus-visible { border-color: var(--c-text); background: rgba(248, 244, 234, 0.08); }
.ctrl[disabled] { opacity: 0.3; cursor: default; }
.ctrl[disabled]:hover { border-color: var(--c-line); background: none; }

.icon { width: 24px; height: 24px; }
.icon--social { width: 26px; height: 26px; }

/* véu de transição entre páginas */
.page-veil { position: fixed; inset: 0; z-index: 999; background: var(--c-bg); opacity: 0; pointer-events: none; transition: opacity 0.28s ease; }
.js body:not(.is-ready) .page-veil { opacity: 1; }
body.is-leaving .page-veil { opacity: 1; pointer-events: auto; }

/* reveal por palavras: cada palavra sobe de uma "máscara" */
.split .word { display: inline-block; overflow: hidden; vertical-align: bottom; padding-bottom: 0.08em; margin-bottom: -0.08em; }
.split .word__inner { display: inline-block; transform: translateY(110%); transition: transform 0.9s var(--ease); transition-delay: calc(var(--start, 0s) + var(--i, 0) * var(--stagger, 45ms)); }
.split.is-visible .word__inner { transform: none; }
.js [data-split]:not(.split) { opacity: 1; } /* sem JS ou com reduced-motion: texto normal */

/* animação de entrada (só quando há JS; sem JS tudo fica visível) */
.js .reveal { opacity: 0; transform: translateY(22px); transition: opacity 0.8s var(--ease), transform 0.8s var(--ease); transition-delay: var(--delay, 0ms); }
.js .reveal.is-visible { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
  .js .reveal { opacity: 1; transform: none; transition: none; }
  *, *::before, *::after { animation-duration: 0.01ms !important; transition-duration: 0.01ms !important; }
}

/* ---------------------------------------------------------------- header */
.header {
  position: fixed; inset: 0 0 auto 0; z-index: 100; height: var(--header-h);
  transition: background var(--t-base) var(--ease), backdrop-filter var(--t-base), transform 0.5s var(--ease);
}
.header.is-hidden { transform: translateY(-100%); }
.header::before {
  content: ""; position: absolute; inset: 0; z-index: -1;
  background: linear-gradient(to bottom, rgba(0, 0, 0, 0.55), rgba(0, 0, 0, 0));
  opacity: 1; transition: opacity var(--t-base);
}
.header.is-scrolled { background: rgba(20, 18, 18, 0.82); backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px); }
.header.is-scrolled::before { opacity: 0; }
.header.is-scrolled::after { content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 1px; background: var(--c-line); }
.header__inner {
  height: 100%; display: flex; align-items: center; justify-content: space-between; gap: 24px;
  max-width: calc(var(--content-max) + 2 * var(--gutter)); margin-inline: auto; padding-inline: var(--gutter);
}
.header__logo { display: block; flex: none; position: relative; z-index: 3; }
.header__logo img { width: clamp(128px, 12vw, 170px); height: auto; }
.header__tools { display: flex; align-items: center; gap: 18px; position: relative; z-index: 3; }

.lang { display: inline-flex; align-items: center; gap: 8px; font-size: 0.95rem; letter-spacing: 0.06em; }
.lang__item { color: var(--c-text-dim); transition: color var(--t-fast); padding: 4px 2px; }
.lang__item.is-active { color: var(--c-text); font-weight: 700; }
a.lang__item:hover, a.lang__item:focus-visible { color: var(--c-text); }
.lang__sep { color: var(--c-text-faint); }
.lang--header { display: none; }
.lang--nav { font-size: 1.6rem; gap: 14px; margin-top: 40px; justify-content: center; }
.lang--footer { font-size: 0.9rem; }

/* hambúrguer */
.burger { display: inline-flex; align-items: center; gap: 10px; padding: 8px 0 8px 8px; }
.burger__box { display: block; width: 34px; height: 22px; position: relative; }
.burger__line {
  position: absolute; left: 0; width: 100%; height: 2px; background: var(--c-text); border-radius: 2px;
  transition: transform var(--t-base) var(--ease), opacity var(--t-fast), top var(--t-base) var(--ease);
}
.burger__line:nth-child(1) { top: 0; }
.burger__line:nth-child(2) { top: 10px; }
.burger__line:nth-child(3) { top: 20px; }
.burger[aria-expanded="true"] .burger__line:nth-child(1) { top: 10px; transform: rotate(45deg); }
.burger[aria-expanded="true"] .burger__line:nth-child(2) { opacity: 0; }
.burger[aria-expanded="true"] .burger__line:nth-child(3) { top: 10px; transform: rotate(-45deg); }
.burger__label { font-size: 0.8rem; letter-spacing: 0.16em; text-transform: uppercase; display: none; }

/* navegação: overlay em tela cheia no mobile (estilo do site original) */
.nav {
  position: fixed; inset: 0; z-index: 2;
  background: rgba(10, 9, 9, 0.94);
  display: flex; flex-direction: column; justify-content: center; align-items: center;
  padding: calc(var(--header-h) + 20px) var(--gutter) 40px;
  opacity: 0; visibility: hidden; pointer-events: none;
  transition: opacity var(--t-base) var(--ease), visibility 0s linear var(--t-base);
}
.nav-open .nav { opacity: 1; visibility: visible; pointer-events: auto; transition-delay: 0s; }
.nav__list { display: flex; flex-direction: column; align-items: center; gap: 6px; }
.nav__link {
  display: block; font-size: var(--fs-menu); font-weight: 700; line-height: 1.15; padding: 4px 0;
  opacity: 0; transform: translateY(16px); transition: opacity 0.5s var(--ease), transform 0.5s var(--ease);
}
.nav-open .nav__link { opacity: 1; transform: none; }
.nav-open .nav__item:nth-child(2) .nav__link { transition-delay: 0.05s; }
.nav-open .nav__item:nth-child(3) .nav__link { transition-delay: 0.1s; }
.nav-open .nav__item:nth-child(4) .nav__link { transition-delay: 0.15s; }
.nav__extra { display: flex; flex-direction: column; align-items: center; }
.nav__social { display: flex; gap: 28px; margin-top: 36px; }
.nav__social a { display: block; padding: 6px; opacity: 0.85; transition: opacity var(--t-fast); }
.nav__social a:hover { opacity: 1; }

@media (min-width: 1024px) {
  .burger { display: none; }
  .lang--header { display: inline-flex; }
  .nav {
    position: static; inset: auto; background: none; padding: 0; opacity: 1; visibility: visible; pointer-events: auto;
    flex-direction: row; justify-content: flex-end; transition: none; flex: 1;
  }
  .nav__list { flex-direction: row; gap: clamp(20px, 3vw, 44px); }
  .nav__link { font-size: 1.05rem; font-weight: 400; opacity: 1; transform: none; letter-spacing: 0.02em; position: relative; padding: 6px 0; }
  .nav__link::after { content: ""; position: absolute; left: 0; bottom: 0; height: 1px; width: 0; background: currentColor; transition: width var(--t-base) var(--ease); }
  .nav__link:hover::after, .nav__link:focus-visible::after, .nav__link.is-current::after { width: 100%; }
  .nav__extra { display: none; }
}

/* ---------------------------------------------------------------- hero */
.hero {
  position: relative; min-height: 100svh; min-height: 100vh;
  display: flex; align-items: flex-end; overflow: hidden; background: var(--c-bg-pure);
}
@supports (height: 100svh) { .hero { min-height: 100svh; } }
.hero__media { position: absolute; inset: 0; z-index: 0; }
.hero__media::after {
  content: ""; position: absolute; inset: 0;
  background: linear-gradient(to top, rgba(0, 0, 0, 0.75) 0%, rgba(0, 0, 0, 0.15) 45%, rgba(0, 0, 0, 0.35) 100%);
}
.hero__video { width: 100%; height: 100%; object-fit: cover; transform: scale(calc(1 + var(--p, 0) * 0.08)); }
.js .hero__media { animation: heroIn 1.6s var(--ease) both; }
@keyframes heroIn { from { opacity: 0; transform: scale(1.06); } to { opacity: 1; transform: none; } }
.hero__content {
  position: relative; z-index: 1; width: 100%;
  transform: translate3d(0, calc(var(--p, 0) * 90px), 0); opacity: calc(1 - var(--p, 0) * 1.6);
  padding-top: calc(var(--header-h) + 24px); padding-bottom: clamp(32px, 6vh, 80px);
  display: flex; align-items: flex-end; justify-content: space-between; gap: 24px;
}
.hero__info { position: relative; padding-left: 20px; max-width: 900px; }
.hero__info::before { content: ""; position: absolute; left: 0; top: 0.2em; bottom: 0.2em; width: 2px; background: var(--c-text); }
.hero__title { font-size: var(--fs-h1); font-weight: 700; line-height: 1.12; letter-spacing: -0.01em; }
.hero__subtitle { font-size: clamp(1.25rem, 0.9rem + 1.8vw, 2.5rem); line-height: 1.25; margin-top: 8px; }
.hero__scroll { display: none; flex: none; width: 56px; height: 56px; border-radius: 50%; border: 1px solid var(--c-line); align-items: center; justify-content: center; animation: bob 2.4s ease-in-out infinite, fadeIn 1s ease 1.4s both; }
@keyframes fadeIn { from { opacity: 0; } to { opacity: 1; } }
@keyframes bob { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(8px); } }
@media (min-width: 768px) {
  .hero__info { padding-left: 28px; }
  .hero__scroll { display: inline-flex; }
  .hero__content { padding-bottom: clamp(48px, 10vh, 120px); }
}

/* ---------------------------------------------------------------- about teaser */
.about-teaser { padding: clamp(80px, 14vh, 160px) 0; }
.about-teaser__inner { display: flex; flex-direction: column; align-items: center; text-align: center; gap: clamp(28px, 5vh, 56px); }
.about-teaser__statement { font-size: clamp(1.4rem, 1rem + 1.9vw, 2.6rem); line-height: 1.3; max-width: 22em; text-wrap: balance; --stagger: 22ms; }
.about-teaser__statement:nth-child(2) { color: var(--c-text-dim); }

/* ---------------------------------------------------------------- 6Es */
.six-e { position: relative; overflow: hidden; isolation: isolate; padding: clamp(80px, 12vh, 140px) 0; background: var(--c-bg-pure); display: flex; align-items: center; }
@media (min-width: 1024px) { .six-e { min-height: 88vh; } }
.six-e__bg { position: absolute; inset: -12% 0; z-index: -1; }
.six-e__bg img { width: 100%; height: 100%; object-fit: cover; opacity: 0.55; }
.six-e::before { content: ""; position: absolute; inset: 0; z-index: -1; background: linear-gradient(to bottom, var(--c-bg) 0%, rgba(20, 18, 18, 0.2) 25%, rgba(20, 18, 18, 0.2) 75%, var(--c-bg) 100%); }
.six-e__content { display: flex; flex-direction: column; align-items: center; text-align: center; width: 100%; }
.six-e__title { font-size: clamp(1.35rem, 1rem + 1.3vw, 1.9rem); font-weight: 700; line-height: 1.3; max-width: 26em; margin-bottom: clamp(40px, 6vh, 72px); text-wrap: balance; }
.six-e__grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 28px 16px; width: 100%; }
.six-e__item {
  display: flex; flex-direction: column; align-items: center; gap: 16px; width: 100%; padding: 12px 6px; border-radius: var(--radius);
  transition: transform var(--t-base) var(--ease), opacity var(--t-base);
}
.six-e__grid:hover .six-e__item { opacity: 0.45; }
.six-e__grid .six-e__item:hover, .six-e__grid .six-e__item:focus-visible { opacity: 1; transform: scale(1.06); }
.six-e__logo { width: clamp(72px, 18vw, 120px); aspect-ratio: 1; display: grid; place-items: center; }
.six-e__logo img { width: 100%; height: 100%; object-fit: contain; }
.six-e__name { font-size: clamp(1.1rem, 1rem + 0.5vw, 1.4rem); font-weight: 700; }
.six-e__hint { margin-top: 36px; font-size: 0.85rem; letter-spacing: 0.12em; text-transform: uppercase; color: var(--c-text-dim); }
@media (min-width: 600px) { .six-e__grid { grid-template-columns: repeat(3, 1fr); } }
@media (min-width: 1024px) { .six-e__grid { grid-template-columns: repeat(6, 1fr); gap: 24px 12px; } .six-e__hint { display: none; } }

/* diálogo dos 6Es */
.e-dialog {
  position: fixed; inset: 0; width: 100vw; height: 100vh; max-width: none; max-height: none; margin: 0; padding: 0;
  border: 0; background: var(--c-bg-pure); color: var(--c-text); overflow: hidden;
}
.e-dialog::backdrop { background: rgba(0, 0, 0, 0.6); }
.e-dialog[open] { display: block; animation: fade 0.5s var(--ease); }
@keyframes fade { from { opacity: 0; } to { opacity: 1; } }
.e-dialog__bg { position: absolute; inset: 0; }
.e-dialog__bg img { width: 100%; height: 100%; object-fit: cover; }
.e-dialog__bg::after { content: ""; position: absolute; inset: 0; background: var(--c-overlay); }
.e-dialog__frame {
  position: relative; height: 100%; display: flex; flex-direction: column; justify-content: space-between;
  padding: calc(var(--gutter) * 0.8) var(--gutter); max-width: calc(var(--content-max) + 2 * var(--gutter)); margin-inline: auto;
}
.e-dialog__close { display: inline-flex; align-items: center; gap: 10px; align-self: flex-start; font-size: 0.85rem; letter-spacing: 0.14em; text-transform: uppercase; padding: 8px 0; }
.e-dialog__content { flex: 1; display: flex; flex-direction: column; justify-content: center; padding: 24px 0; animation: rise 0.6s var(--ease); }
@keyframes rise { from { opacity: 0; transform: translateY(20px); } to { opacity: 1; transform: none; } }
.e-dialog__head { display: flex; align-items: flex-end; gap: 16px; margin-bottom: 20px; }
.e-dialog__logo { width: clamp(44px, 8vw, 100px); height: auto; }
.e-dialog__title { font-size: clamp(2.5rem, 1.5rem + 6vw, 6.25rem); font-weight: 700; line-height: 0.95; letter-spacing: -0.02em; }
.e-dialog__desc { font-size: clamp(1.125rem, 1rem + 1vw, 1.75rem); line-height: 1.45; max-width: 30em; }
.e-dialog__nav { display: flex; align-items: center; justify-content: flex-end; gap: 12px; }
.e-dialog__counter { font-variant-numeric: tabular-nums; color: var(--c-text-dim); margin-right: 8px; letter-spacing: 0.08em; }

/* ---------------------------------------------------------------- quote */
.quote { padding: clamp(80px, 12vh, 140px) 0 clamp(40px, 8vh, 100px); }
.quote__mark { display: block; font-size: clamp(6rem, 4rem + 8vw, 11rem); line-height: 0.6; height: 0.45em; margin-bottom: 0.15em; }
.quote__text { font-size: clamp(2rem, 1.3rem + 3.5vw, 3.75rem); line-height: 1.12; max-width: 17em; letter-spacing: -0.01em; text-wrap: balance; }

/* ---------------------------------------------------------------- video banner */
.video-banner {
  position: relative; height: clamp(320px, 60vh, 520px); overflow: hidden; background: var(--c-bg-pure); margin-top: clamp(40px, 8vh, 100px);
  clip-path: inset(0 calc((1 - var(--p, 1)) * var(--gutter)) round calc((1 - var(--p, 1)) * 24px));
}
.video-banner__video { width: 100%; height: 100%; object-fit: cover; transform: scale(calc(1.12 - var(--p, 1) * 0.12)); }
@media (min-width: 1024px) { .video-banner { height: clamp(520px, 85vh, 900px); } }

/* ---------------------------------------------------------------- projetos (carrossel) */
.projects { padding: clamp(80px, 14vh, 160px) 0 clamp(60px, 10vh, 120px); }
.projects__head { display: flex; flex-wrap: wrap; align-items: flex-end; justify-content: space-between; gap: 16px 40px; margin-bottom: clamp(36px, 6vh, 72px); }

.carousel { position: relative; }
.carousel__track {
  display: flex; gap: clamp(16px, 2.5vw, 40px);
  overflow-x: auto; overscroll-behavior-x: contain; scroll-snap-type: x mandatory;
  -webkit-overflow-scrolling: touch; scrollbar-width: none;
  padding-inline: max(var(--gutter), calc((100vw - var(--content-max)) / 2));
  scroll-padding-inline: max(var(--gutter), calc((100vw - var(--content-max)) / 2));
}
.carousel__track::-webkit-scrollbar { display: none; }
@media (hover: hover) { .carousel__track { cursor: grab; } .carousel__track.is-dragging { cursor: grabbing; scroll-behavior: auto; } .carousel__track.is-dragging * { pointer-events: none; } }
.carousel__item { flex: none; scroll-snap-align: start; }
.carousel--cards .carousel__item { width: min(78vw, 360px); }
@media (min-width: 640px) { .carousel--cards .carousel__item { width: min(44vw, 360px); } }
@media (min-width: 1024px) { .carousel--cards .carousel__item { width: clamp(280px, calc((min(100vw, var(--content-max)) - 3 * 40px) / 4), 380px); } }
.carousel__controls { display: flex; align-items: center; justify-content: space-between; gap: 20px; margin-top: 28px; }
.carousel__progress { flex: 1; height: 1px; background: var(--c-line); position: relative; max-width: 320px; }
.carousel__progress span { position: absolute; inset: 0; background: var(--c-text); transform-origin: left; transform: scaleX(0); transition: transform 0.2s linear; }
.carousel__counter { font-variant-numeric: tabular-nums; letter-spacing: 0.1em; color: var(--c-text-dim); font-size: 0.95rem; white-space: nowrap; }
.carousel__buttons { display: flex; gap: 12px; }

/* card de projeto */
.card { display: block; position: relative; border-radius: var(--radius); overflow: hidden; background: #1d1a1a; isolation: isolate; }
.card__media { display: block; aspect-ratio: 5 / 7; overflow: hidden; }
.card__media img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.8s var(--ease); }
.card::after {
  content: ""; position: absolute; inset: 0; z-index: 1; pointer-events: none;
  background: linear-gradient(to top, rgba(0, 0, 0, 0.85) 0%, rgba(0, 0, 0, 0.25) 45%, rgba(0, 0, 0, 0) 70%);
  transition: opacity var(--t-base);
}
.card__body { position: absolute; z-index: 2; left: 0; right: 0; bottom: 0; padding: 20px; display: flex; flex-direction: column; gap: 6px; }
.card__index { font-size: 0.75rem; letter-spacing: 0.16em; color: var(--c-text-dim); }
.card__title { font-size: clamp(1.4rem, 1.1rem + 1.2vw, 2.1rem); font-weight: 400; line-height: 1.1; }
.card__title b { font-weight: 700; }
.card:hover img, .card:focus-visible img { transform: scale(1.06); }
.card:focus-visible { outline-offset: 2px; }

/* ---------------------------------------------------------------- parceiros (marquee) */
.partners { padding: clamp(60px, 10vh, 120px) 0; overflow: hidden; }
.partners__title { font-size: clamp(1.25rem, 1rem + 1.1vw, 1.75rem); font-weight: 400; line-height: 1.4; max-width: 34em; margin-bottom: clamp(40px, 7vh, 80px); --stagger: 18ms; }
.marquee { position: relative; padding: 6px 0; -webkit-mask-image: linear-gradient(to right, transparent, #000 8%, #000 92%, transparent); mask-image: linear-gradient(to right, transparent, #000 8%, #000 92%, transparent); }
.marquee__track { display: flex; width: max-content; gap: clamp(8px, 2vw, 24px); animation: marquee 48s linear infinite; }
.marquee--reverse .marquee__track { animation-direction: reverse; animation-duration: 56s; }
.marquee:hover .marquee__track, .marquee:focus-within .marquee__track { animation-play-state: paused; }
@keyframes marquee { from { transform: translate3d(0, 0, 0); } to { transform: translate3d(-50%, 0, 0); } }
.marquee__item { flex: none; }
.partners__link {
  display: flex; align-items: center; justify-content: center; width: clamp(150px, 18vw, 240px); height: clamp(80px, 9vw, 120px); padding: 16px 22px; border-radius: 10px;
  opacity: 0.8; transition: opacity var(--t-base), background var(--t-base);
}
.partners__link:hover, .partners__link:focus-visible { opacity: 1; background: rgba(248, 244, 234, 0.06); }
.partners__link img { max-height: 100%; max-width: 100%; width: auto; height: auto; object-fit: contain; }
@media (prefers-reduced-motion: reduce) {
  .marquee { mask-image: none; -webkit-mask-image: none; }
  .marquee__track { animation: none; width: auto; flex-wrap: wrap; justify-content: center; }
  .marquee__item.is-dup { display: none; }
}

/* ---------------------------------------------------------------- follow us */
.follow { position: relative; overflow: hidden; padding: clamp(60px, 10vh, 120px) 0 0; }
.follow__inner { display: grid; gap: 40px; }
.follow__text { display: flex; flex-direction: column; justify-content: center; align-items: flex-start; gap: 24px; }
.follow__title { font-size: var(--fs-section); font-weight: 400; line-height: 1; }
.follow__cols { display: none; }
.follow__marquee { display: block; margin-top: clamp(32px, 6vh, 56px); overflow: hidden; -webkit-mask-image: linear-gradient(to right, transparent, #000 6%, #000 94%, transparent); mask-image: linear-gradient(to right, transparent, #000 6%, #000 94%, transparent); }
.follow__marqueeTrack { display: flex; width: max-content; gap: 12px; animation: marquee 40s linear infinite; }
.follow__marqueeTrack img { width: clamp(180px, 42vw, 260px); height: auto; aspect-ratio: 345 / 442; object-fit: cover; border-radius: 8px; }
.follow__marquee:hover .follow__marqueeTrack { animation-play-state: paused; }
@media (min-width: 900px) {
  .follow { padding: 0; height: 100vh; min-height: 640px; max-height: 1000px; display: flex; align-items: center; }
  .follow__inner { grid-template-columns: 1fr 1fr; grid-template-rows: minmax(0, 1fr); align-items: stretch; height: 100%; gap: clamp(40px, 6vw, 100px); }
  .follow__marquee { display: none; }
  .follow__cols { display: grid; grid-template-columns: 1fr 1fr; grid-template-rows: minmax(0, 1fr); gap: 20px; height: 100%; min-height: 0; align-items: stretch; -webkit-mask-image: linear-gradient(to bottom, transparent, #000 12%, #000 88%, transparent); mask-image: linear-gradient(to bottom, transparent, #000 12%, #000 88%, transparent); }
  .follow__col { display: flex; flex-direction: column; justify-content: center; min-height: 0; }
  .follow__stack { display: flex; flex-direction: column; gap: 20px; flex: none; will-change: transform; }
  .follow__stack img { width: 100%; height: auto; border-radius: 10px; display: block; }
  .follow__cols:hover img { filter: brightness(0.9); }
}
@media (prefers-reduced-motion: reduce) {
  .follow__marqueeTrack { animation: none; width: auto; flex-wrap: wrap; }
  .follow__marquee { mask-image: none; -webkit-mask-image: none; }
}

/* ---------------------------------------------------------------- footer */
.footer { padding: clamp(40px, 8vh, 100px) 0 24px; }
.footer__inner { display: grid; grid-template-columns: 1fr; gap: 36px; padding-top: 40px; border-top: 1px solid var(--c-line); }
.footer__brand img { width: 34px; height: auto; opacity: 0.9; }
.footer__title { font-size: clamp(1.5rem, 1.2rem + 1vw, 2.2rem); font-weight: 700; line-height: 1.1; margin-bottom: 14px; }
.footer__link { display: block; width: fit-content; position: relative; padding: 4px 0; font-size: 1.05rem; }
.footer__link::after { content: ""; position: absolute; left: 0; bottom: 2px; height: 1px; width: 0; background: currentColor; transition: width var(--t-base) var(--ease); }
.footer__link:hover::after, .footer__link:focus-visible::after { width: 100%; }
.footer__address span { display: block; line-height: 1.5; }
.footer__address .is-bold { font-weight: 700; }
.footer__social { display: flex; flex-wrap: wrap; gap: 4px 28px; }
.footer__bottom { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 12px 24px; margin-top: 48px; padding-top: 20px; border-top: 1px solid var(--c-line); }
.footer__legal { font-size: 0.8rem; color: var(--c-text-dim); }
@media (min-width: 768px) {
  .footer__inner { grid-template-columns: 80px 1fr 1fr; }
  .footer__social { grid-column: 2 / -1; }
}
@media (min-width: 1024px) {
  .footer__inner { grid-template-columns: 100px 2fr 1.4fr 1fr; gap: 24px; }
  .footer__brand img { width: 40px; }
  .footer__social { grid-column: auto; display: block; }
}

/* ---------------------------------------------------------------- páginas internas: cabeçalho */
.page-hero { position: relative; overflow: hidden; isolation: isolate; background: var(--c-bg-pure); }
.page-hero__bg { position: absolute; inset: -10% 0; z-index: -1; }
.page-hero__bg img { width: 100%; height: 100%; object-fit: cover; opacity: 0.6; }
.page-hero::after { content: ""; position: absolute; inset: 0; z-index: -1; background: linear-gradient(to bottom, rgba(0, 0, 0, 0.35), var(--c-bg) 100%); }
.page-hero__content { padding-top: calc(var(--header-h) + clamp(60px, 12vh, 160px)); padding-bottom: clamp(40px, 8vh, 100px); }
.page-hero__title { font-size: var(--fs-display); font-weight: 700; line-height: 1; letter-spacing: -0.02em; max-width: 12em; text-wrap: balance; }
.page-hero__lead { font-size: var(--fs-lead); color: var(--c-text-dim); max-width: 36em; margin-top: 24px; line-height: 1.5; }
.page-hero--about { min-height: 60vh; display: flex; align-items: flex-end; }
.page-hero--simple::after { display: none; }
.page-hero--simple { background: var(--c-bg); }

/* ---------------------------------------------------------------- sobre */
.about-page { display: grid; gap: 40px; padding-block: clamp(20px, 4vh, 40px) clamp(60px, 10vh, 120px); }
.subnav { display: flex; gap: 6px 22px; flex-wrap: wrap; position: sticky; top: var(--header-h); z-index: 5; background: var(--c-bg); padding: 12px 0; margin-bottom: 8px; }
.subnav__link { font-size: clamp(1.25rem, 1rem + 1vw, 2rem); font-weight: 700; color: var(--c-text-faint); transition: color var(--t-base); padding: 4px 0; }
.subnav__link.is-active, .subnav__link:hover, .subnav__link:focus-visible { color: var(--c-text); }
.about-page__content { display: grid; gap: clamp(60px, 10vh, 120px); }
.about-page__section { scroll-margin-top: calc(var(--header-h) + 72px); }
.about-page__heading { font-size: clamp(1.5rem, 1.2rem + 1.4vw, 2.4rem); font-weight: 700; line-height: 1.2; margin-bottom: 20px; }
.method { display: grid; margin-top: 48px; border-top: 1px solid var(--c-line); }
.method__step { display: grid; gap: 8px 32px; padding: 24px 0 32px; border-bottom: 1px solid var(--c-line); }
.method__index { font-size: 0.8rem; letter-spacing: 0.16em; color: var(--c-text-dim); }
.method__title { font-size: clamp(1.4rem, 1.1rem + 1.2vw, 2rem); font-weight: 700; text-transform: uppercase; line-height: 1.1; }
.method__desc { color: var(--c-text-dim); line-height: 1.5; }
.method__desc br + br { content: ""; display: block; margin-top: 0.4em; }
.about-page__asap { margin: clamp(48px, 8vh, 90px) 0; max-width: 720px; }
.cta { padding-bottom: clamp(80px, 14vh, 160px); }
@media (min-width: 768px) {
  .method__step { grid-template-columns: 60px 1fr 1fr; align-items: start; }
  .method__index { padding-top: 0.5em; }
}
@media (min-width: 1024px) {
  .about-page { grid-template-columns: 260px 1fr; gap: 80px; }
  .subnav { flex-direction: column; align-self: start; padding: 0; background: none; }
}

/* ---------------------------------------------------------------- grade de projetos */
.projects-grid { display: grid; grid-template-columns: 1fr; gap: 20px; padding-bottom: clamp(80px, 14vh, 160px); }
@media (min-width: 560px) { .projects-grid { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1024px) { .projects-grid { grid-template-columns: repeat(3, 1fr); gap: 28px; } }
@media (min-width: 1400px) { .projects-grid { grid-template-columns: repeat(4, 1fr); } }

/* ---------------------------------------------------------------- página de projeto */
.gallery { background: var(--c-bg-pure); padding-top: var(--header-h); }
.gallery__track { gap: 6px; padding-inline: 0; scroll-padding-inline: 0; }
.gallery__item { width: 100vw; height: clamp(300px, 56vh, 620px); margin: 0; }
.gallery__item img { width: 100%; height: 100%; object-fit: cover; }
.carousel--single .gallery__item { width: 100%; }
.gallery__bar { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding-top: 18px; padding-bottom: 18px; background: var(--c-bg); }
.gallery__back { display: inline-flex; align-items: center; gap: 10px; font-size: 0.85rem; letter-spacing: 0.14em; text-transform: uppercase; white-space: nowrap; }
@media (max-width: 479px) { .gallery__back span { display: none; } .gallery__back { width: 48px; height: 48px; justify-content: center; border: 1px solid var(--c-line); border-radius: 50%; } }
.gallery__back .icon { width: 20px; height: 20px; transition: transform var(--t-base) var(--ease); }
.gallery__back:hover .icon { transform: translateX(-4px); }
.gallery__controls { display: flex; align-items: center; gap: 12px; }
@media (min-width: 1024px) {
  .gallery__item { height: clamp(520px, 80vh, 900px); width: min(100vw, 1600px); }
  .gallery__track { padding-inline: max(0px, calc((100vw - 1600px) / 2)); scroll-padding-inline: max(0px, calc((100vw - 1600px) / 2)); }
}

.project__body { padding-top: clamp(40px, 7vh, 90px); padding-bottom: clamp(60px, 10vh, 120px); }
.project__head { margin-bottom: clamp(36px, 6vh, 72px); }
.project__title { font-size: var(--fs-display); font-weight: 400; line-height: 1; letter-spacing: -0.02em; }
.project__title b { font-weight: 700; }
.project__subtitle { font-size: clamp(1.25rem, 1rem + 1.2vw, 2.25rem); line-height: 1.25; margin-top: 16px; color: var(--c-text-dim); max-width: 28em; }
.project__grid { display: grid; gap: clamp(40px, 6vh, 72px); }
.project__text { font-size: var(--fs-lead); line-height: 1.6; letter-spacing: 0.02em; }
.project__text > p { margin-bottom: 1.2em; }
.project__list { margin: 0 0 1.2em; }
.project__list li { position: relative; padding-left: 1.3em; margin-bottom: 0.5em; }
.project__list li::before { content: ""; position: absolute; left: 0; top: 0.7em; width: 8px; height: 8px; border-radius: 50%; background: var(--c-text); }
.project__note { margin-top: 32px; font-size: 0.9rem; line-height: 1.5; color: var(--c-text-dim); max-width: 40em; }
.project__block { padding: 24px 0; border-top: 1px solid var(--c-line); }
.project__block:last-child { border-bottom: 1px solid var(--c-line); }
.project__blockTitle { font-size: 0.8rem; letter-spacing: 0.18em; text-transform: uppercase; color: var(--c-text-dim); margin-bottom: 18px; font-weight: 400; }
@media (min-width: 1024px) {
  .project__grid { grid-template-columns: minmax(0, 7fr) minmax(0, 4fr); gap: clamp(48px, 6vw, 120px); align-items: start; }
  .project__side { position: sticky; top: calc(var(--header-h) + 24px); }
}

.impacts { display: grid; grid-template-columns: repeat(2, 1fr); gap: 20px 24px; }
.impacts__value { font-size: clamp(1.5rem, 1.2rem + 1.2vw, 2.2rem); line-height: 1.1; }
.impacts__value b { font-weight: 700; }
.impacts__label { font-size: 0.95rem; line-height: 1.4; color: var(--c-text-dim); margin-top: 6px; }
.impacts__label b { color: var(--c-text); }

.awards { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.awards__item img { width: 100%; max-width: 140px; height: auto; }
.awards__text { display: block; margin-top: 8px; font-size: 0.8rem; line-height: 1.35; color: var(--c-text-dim); }

.linklist { display: grid; gap: 6px; }
.linklist__link { display: flex; align-items: center; gap: 12px; padding: 10px 0; font-size: 1rem; text-transform: uppercase; letter-spacing: 0.06em; line-height: 1.3; }
.linklist__link .icon { flex: none; width: 20px; height: 20px; opacity: 0.8; }
.linklist__link span { position: relative; }
.linklist__link span::after { content: ""; position: absolute; left: 0; bottom: -3px; height: 1px; width: 100%; background: currentColor; opacity: 0.4; transition: opacity var(--t-fast); }
.linklist__link:hover span::after { opacity: 1; }
.linklist__link small { font-size: 0.7rem; padding: 2px 8px; border: 1px solid var(--c-line); border-radius: 999px; color: var(--c-text-dim); }

/* vídeo do YouTube com "facade" (carrega o player só ao clicar) */
.project__videos { display: grid; gap: 20px; margin-top: 40px; }
.yt { position: relative; aspect-ratio: 16 / 9; border-radius: var(--radius); overflow: hidden; background: #1d1a1a; isolation: isolate; }
.yt__thumb { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; transition: transform 0.8s var(--ease); }
.yt::after { content: ""; position: absolute; inset: 0; background: linear-gradient(to top, rgba(0, 0, 0, 0.7), rgba(0, 0, 0, 0.1) 60%); pointer-events: none; }
.yt__play {
  position: absolute; left: 50%; top: 50%; z-index: 2; transform: translate(-50%, -50%);
  width: 76px; height: 76px; border-radius: 50%; background: rgba(248, 244, 234, 0.92); color: var(--c-bg);
  display: grid; place-items: center; transition: transform var(--t-base) var(--ease), background var(--t-fast);
}
.yt__play .icon { width: 34px; height: 34px; margin-left: 3px; }
.yt:hover .yt__play { transform: translate(-50%, -50%) scale(1.08); background: var(--c-text); }
.yt:hover .yt__thumb { transform: scale(1.03); }
.yt__caption { position: absolute; z-index: 2; left: 20px; bottom: 16px; right: 20px; font-size: 0.95rem; letter-spacing: 0.04em; }
.yt__fallback { position: absolute; z-index: 2; right: 20px; top: 16px; font-size: 0.75rem; letter-spacing: 0.12em; text-transform: uppercase; opacity: 0.7; }
.yt iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; z-index: 3; }
.yt.is-playing .yt__play, .yt.is-playing .yt__caption, .yt.is-playing .yt__fallback, .yt.is-playing::after { display: none; }

.project__banner { background: var(--c-bg-pure); overflow: hidden; }
.project__banner img { width: 100%; height: auto; transform: scale(calc(1.08 - var(--p, 1) * 0.08)); }

.textimage { padding: clamp(60px, 10vh, 140px) var(--gutter); display: grid; gap: clamp(60px, 12vh, 140px); }
.textimage__block { display: grid; gap: 28px; align-items: center; }
.textimage__media { border-radius: var(--radius); overflow: hidden; }
.textimage__media img { width: 100%; height: auto; }
.textimage__title { font-size: clamp(1.25rem, 1rem + 1vw, 1.7rem); text-transform: uppercase; font-weight: 400; text-decoration: underline; text-underline-offset: 0.15em; margin-bottom: 20px; }
.textimage__text { font-size: var(--fs-lead); line-height: 1.55; }
@media (min-width: 768px) {
  .textimage__block { grid-template-columns: 1fr 1fr; gap: clamp(32px, 5vw, 80px); }
  .textimage__block--flip .textimage__media { order: 2; }
}

.pager { display: grid; gap: 16px; padding-block: 8px clamp(60px, 10vh, 120px); }
.pager__link { display: flex; align-items: center; gap: 18px; padding: 20px 0; border-top: 1px solid var(--c-line); }
.pager__link .icon { flex: none; width: 28px; height: 28px; transition: transform var(--t-base) var(--ease); }
.pager__link--next { justify-content: flex-end; text-align: right; }
.pager__link--prev:hover .icon { transform: translateX(-6px); }
.pager__link--next:hover .icon { transform: translateX(6px); }
.pager__meta { display: flex; flex-direction: column; gap: 4px; }
.pager__meta small { font-size: 0.75rem; letter-spacing: 0.16em; text-transform: uppercase; color: var(--c-text-dim); }
.pager__meta strong { font-size: clamp(1.25rem, 1rem + 1.2vw, 2rem); font-weight: 400; line-height: 1.1; }
.pager__meta strong b { font-weight: 700; }
.pager__all { justify-self: center; font-size: 0.85rem; letter-spacing: 0.14em; text-transform: uppercase; padding: 10px 0; order: 3; }
@media (min-width: 768px) {
  .pager { grid-template-columns: 1fr auto 1fr; align-items: center; gap: 32px; border-top: 1px solid var(--c-line); }
  .pager__link { border-top: 0; }
  .pager__all { order: 0; }
}

/* ---------------------------------------------------------------- 404 e raiz */
.notfound { min-height: 80vh; display: flex; flex-direction: column; justify-content: center; align-items: flex-start; gap: 20px; padding-top: var(--header-h); }
.notfound__title { font-size: var(--fs-display); font-weight: 700; line-height: 1; }
.notfound__text { font-size: var(--fs-lead); color: var(--c-text-dim); max-width: 30em; }
.root-choice { min-height: 100vh; display: flex; flex-direction: column; justify-content: center; align-items: center; gap: 28px; text-align: center; }
.root-choice__logo { width: 240px; }
.root-choice__label { color: var(--c-text-dim); }
.root-choice__links { display: flex; gap: 12px; flex-wrap: wrap; justify-content: center; }
