/* ==========================================================================
   Definirs v3 - Home reimaginada
   Conceito: "o arco". O simbolo da marca sao tres arcos concentricos; o site
   usa essa geometria como sistema (janelas de imagem em arco, a cadeia de
   valor desenhada em arcos) e concentra a ousadia num momento so: o hero.
   Estados escondidos para animacao so existem sob html.motion (JS ativo e
   sem prefers-reduced-motion) - sem JS, tudo aparece no estado final.
   ========================================================================== */

@font-face {
  font-family: "Utopia";
  src: url("../fonts/Utopia-Regular.ttf") format("truetype");
  font-weight: 400;
  font-display: swap;
}
@font-face {
  font-family: "Source Sans 3";
  src: url("../fonts/source-sans-3-latin-wght-normal.woff2") format("woff2");
  font-weight: 200 900;
  font-display: swap;
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+2074, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: "Source Sans 3";
  src: url("../fonts/source-sans-3-latin-ext-wght-normal.woff2") format("woff2");
  font-weight: 200 900;
  font-display: swap;
  unicode-range: U+0100-02AF, U+0304, U+0308, U+0329, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}

:root {
  /* cor: as do projeto, com papeis fixos */
  --navy: #2D3E50;          /* tinta e capitulos escuros */
  --paper: #F4E9E0;         /* fundo base */
  --paper-light: #F7F2EE;   /* superficies elevadas */
  --action: #F16103;        /* so acoes */
  --action-hover: #D65502;
  --insight: #00ABC8;       /* marcadores, foco, indicador de capitulo */
  --olive: #827905;         /* so no simbolo e no primeiro elo da cadeia */
  --white: #FFFFFF;
  --ink-soft: rgba(45, 62, 80, .78);
  --rule: rgba(45, 62, 80, .16);
  --rule-inverse: rgba(255, 255, 255, .16);
  --noise: url("../img/noise.png");

  /* tipo */
  --serif: "Utopia", Georgia, "Times New Roman", serif;
  --sans: "Source Sans 3", "Segoe UI", system-ui, sans-serif;
  --fs-display: clamp(42px, 4.7vw, 86px);
  --fs-h2: clamp(34px, 4vw, 66px);
  --fs-h3: clamp(28px, 2.7vw, 46px);
  --fs-lead: clamp(19px, 1.35vw, 23px);
  --fs-body: 18px;

  /* grade */
  --col: min(1345px, 100% - 48px);
  --gap: clamp(20px, 2.2vw, 32px);
  --chapter-pad: clamp(96px, 11vw, 176px);
  --radius: 20px;
  --header-h: 88px;
  --ease-out: cubic-bezier(.16, 1, .3, 1);
}
@media (max-width: 767px) {
  :root { --col: calc(100% - 32px); --header-h: 72px; --fs-body: 17px; }
}

/* --------------------------------------------------------------- base */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-padding-top: calc(var(--header-h) + 16px); }
body {
  margin: 0;
  background: var(--paper);
  color: var(--navy);
  font-family: var(--sans);
  font-size: var(--fs-body);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
img { display: block; max-width: 100%; height: auto; }
a { color: inherit; }
h1, h2, h3 { font-family: var(--serif); font-weight: 400; margin: 0; letter-spacing: -.01em; text-wrap: balance; }
p { margin: 0; text-wrap: pretty; }
.questions__list li, .intent__q, .chain__caption, .builders__lead { text-wrap: balance; }
figure { margin: 0; }
:focus-visible { outline: 2px solid var(--insight); outline-offset: 3px; border-radius: 4px; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.skip { position: absolute; left: 16px; top: -60px; z-index: 100; background: var(--navy); color: var(--white); padding: 10px 16px; border-radius: 8px; }
.skip:focus { top: 16px; }

.wrap { width: var(--col); margin-inline: auto; }
.display { font-size: var(--fs-display); line-height: 1.02; }
.h2 { font-size: var(--fs-h2); line-height: 1.04; }
.h3 { font-size: var(--fs-h3); line-height: 1.08; }
.prose p + p { margin-top: 1.1em; }
.prose { max-width: 62ch; }

/* capitulos */
.chapter { position: relative; padding-block: var(--chapter-pad); }
.chapter--paper { background: var(--paper); }
.chapter--light { background: var(--paper-light); }
.chapter--navy { background: var(--navy) var(--noise); color: var(--white); }
.chapter--paper + .chapter--paper { padding-top: 0; }

/* ------------------------------------------------------------- botoes */
.actions { display: flex; flex-wrap: wrap; gap: 12px 16px; }
.btn {
  display: inline-flex; align-items: center; justify-content: center;
  min-height: 48px; padding: 12px 26px;
  border-radius: 999px; border: 1px solid transparent;
  font: 600 16px/1.2 var(--sans); text-decoration: none; white-space: nowrap;
  transition: background-color .25s, color .25s, border-color .25s;
}
.btn--action { background: var(--action); color: var(--white); }
.btn--action:hover { background: var(--action-hover); }
.btn--ghost { border-color: currentColor; color: inherit; }
.chapter--navy .btn--ghost:hover { background: var(--white); color: var(--navy); border-color: var(--white); }
.chapter--paper .btn--ghost:hover { background: var(--navy); color: var(--white); border-color: var(--navy); }
.link-action {
  display: inline-block; margin-top: 24px;
  color: var(--action); font-weight: 600; text-decoration: none;
  background: linear-gradient(currentColor, currentColor) 0 100% / 0 1px no-repeat;
  padding-bottom: 2px; transition: background-size .35s var(--ease-out);
}
.link-action:hover, .link-action:focus-visible { background-size: 100% 1px; }

/* ----------------------------------------------------------- cabecalho */
.site-header {
  position: fixed; inset: 0 0 auto 0; z-index: 50;
  height: var(--header-h);
  color: var(--white);
  transition: transform .45s var(--ease-out), background-color .35s, color .35s, box-shadow .35s;
}
.site-header[data-theme="paper"] {
  color: var(--navy);
  background: rgba(244, 233, 224, .92);
  -webkit-backdrop-filter: saturate(140%) blur(10px);
  backdrop-filter: saturate(140%) blur(10px);
  box-shadow: 0 1px 0 var(--rule);
}
.site-header[data-theme="navy"].is-scrolled { background: rgba(45, 62, 80, .9); -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px); }
.site-header.is-hidden { transform: translateY(-100%); }
.site-header__inner { width: var(--col); height: 100%; margin-inline: auto; display: flex; align-items: center; gap: 24px; position: relative; }
.brand { display: flex; align-items: flex-end; gap: 12px; text-decoration: none; }
.brand__mark { width: 31px; height: 40px; }
.brand__word { font-family: var(--serif); font-size: 36px; line-height: .8; transform: translateY(1px); }
.site-nav { position: absolute; left: 50%; transform: translateX(-50%); display: flex; gap: 36px; }
.site-nav a { font-family: var(--serif); font-size: 18px; text-decoration: none; padding-block: 6px; background: linear-gradient(currentColor, currentColor) 0 100% / 0 1px no-repeat; transition: background-size .3s var(--ease-out); }
.site-nav a:hover, .site-nav a[aria-current="page"] { background-size: 100% 1px; }
.site-header__cta { margin-left: auto; min-height: 44px; padding: 10px 22px; font-size: 15px; }
.menu-toggle { display: none; margin-left: auto; width: 44px; height: 44px; border: 0; background: none; color: inherit; cursor: pointer; }
.menu-toggle__bars, .menu-toggle__bars::before, .menu-toggle__bars::after { display: block; width: 22px; height: 2px; background: currentColor; margin: 0 auto; position: relative; transition: transform .3s; }
.menu-toggle__bars::before, .menu-toggle__bars::after { content: ""; position: absolute; left: 0; }
.menu-toggle__bars::before { top: -7px; }
.menu-toggle__bars::after { top: 7px; }
.menu-toggle[aria-expanded="true"] .menu-toggle__bars { background: transparent; }
.menu-toggle[aria-expanded="true"] .menu-toggle__bars::before { transform: translateY(7px) rotate(45deg); }
.menu-toggle[aria-expanded="true"] .menu-toggle__bars::after { transform: translateY(-7px) rotate(-45deg); }
.mobile-menu { position: fixed; inset: var(--header-h) 0 auto 0; background: var(--navy) var(--noise); color: var(--white); padding: 24px 16px 32px; display: grid; gap: 4px; }
.mobile-menu[hidden] { display: none; }
.mobile-menu a:not(.btn) { font-family: var(--serif); font-size: 28px; text-decoration: none; padding: 8px 0; border-bottom: 1px solid var(--rule-inverse); }
.mobile-menu .btn { margin-top: 20px; }
@media (max-width: 1100px) { .site-nav { gap: 24px; } }
@media (max-width: 1024px) {
  .site-nav { display: none; }
  .menu-toggle { display: block; margin-left: 8px; }
}
@media (max-width: 767px) {
  .site-header__cta { display: none; }
  .brand__word { font-size: 30px; }
  .brand__mark { width: 27px; height: 35px; }
}

/* ---------------------------------------------------- trilho de capitulos */
.rail { position: fixed; left: 28px; top: 50%; transform: translateY(-50%); z-index: 40; display: none; opacity: 0; transition: opacity .4s, color .4s; }
.rail ol { list-style: none; margin: 0; padding: 0 0 0 14px; border-left: 1px solid currentColor; display: grid; gap: 10px; }
.rail a { font-size: 13px; line-height: 1.2; text-decoration: none; opacity: .45; transition: opacity .3s; display: block; position: relative; }
.rail a:hover { opacity: .8; }
.rail a.is-active { opacity: 1; }
.rail a.is-active::before { content: ""; position: absolute; left: -18px; top: 50%; width: 7px; height: 7px; margin-top: -3.5px; border-radius: 50%; background: var(--insight); }
.rail.is-visible { opacity: 1; }
.rail:not(.is-visible) { pointer-events: none; }
.rail[data-theme="navy"] { color: var(--white); }
.rail[data-theme="paper"] { color: var(--navy); }
@media (min-width: 1560px) { .rail { display: block; } }
/* sem folga entre o indice e a coluna de conteudo, o indice sai (medido no JS) */
.rail.no-room { display: none; }

/* ---------------------------------------------------------------- hero */
.hero { padding: 0; }
.hero__stage { position: relative; height: 100vh; height: 100svh; min-height: 640px; overflow: hidden; }
.hero__copy {
  position: absolute; z-index: 2;
  left: max(24px, calc((100% - 1345px) / 2)); top: 0; bottom: 0;
  width: min(54%, 840px);
  display: flex; flex-direction: column; justify-content: center; gap: 28px;
  padding-top: var(--header-h); padding-bottom: 96px;
}
.hero__lead { font-size: clamp(17px, 1.15vw, 20px); line-height: 1.55; color: rgba(255, 255, 255, .86); max-width: 58ch; }
/* a janela em arco: a figura cobre o palco inteiro e o clip-path desenha o arco.
   Estado sem animacao (sem JS / movimento reduzido): arco fixo a direita. */
.hero__window {
  position: absolute; inset: 0; z-index: 1;
  --arch-l: 60%; --arch-r: max(24px, calc((100% - 1345px) / 2)); --arch-t: calc(var(--header-h) + 5vh); --arch-b: 128px;
  --arch-w: calc(100% - var(--arch-l) - var(--arch-r));
  clip-path: inset(var(--arch-t) var(--arch-r) var(--arch-b) var(--arch-l) round calc(var(--arch-w) / 2) calc(var(--arch-w) / 2) var(--radius) var(--radius));
}
.hero__window img { width: 100%; height: 100%; object-fit: cover; object-position: 58% 50%; transform-origin: 60% 50%; }
.hero__veil { position: absolute; inset: 0; z-index: 1; background: linear-gradient(180deg, rgba(45, 62, 80, .15) 0%, rgba(45, 62, 80, .15) 45%, rgba(45, 62, 80, .85) 100%); opacity: 0; }
.hero__checks {
  position: absolute; z-index: 3; left: 0; right: 0; bottom: 0;
  width: var(--col); margin: 0 auto; padding: 22px 0 28px;
  list-style: none; display: flex; flex-wrap: wrap; gap: 12px 40px;
  border-top: 1px solid var(--rule-inverse);
  font-size: 16px; color: rgba(255, 255, 255, .9);
}
.hero__checks li { display: flex; align-items: center; gap: 10px; }
.hero__checks li::before {
  content: ""; width: 14px; height: 8px; border-left: 2px solid var(--insight); border-bottom: 2px solid var(--insight);
  transform: rotate(-45deg) translateY(-2px);
}
/* ate 1024px o hero nao fixa: o arco entra no fluxo, abaixo do texto, com a foto inteira */
@media (max-width: 1024px) {
  .hero__stage { height: auto; min-height: 0; display: flex; flex-direction: column; padding: calc(var(--header-h) + 32px) 0 0; width: var(--col); margin-inline: auto; }
  .hero__copy { position: static; width: auto; padding: 0; gap: 24px; max-width: 760px; }
  .hero__window { position: relative; inset: auto; margin-top: 48px; width: min(100%, 620px); align-self: center; aspect-ratio: 4 / 5; clip-path: none; border-radius: 999px 999px var(--radius) var(--radius); overflow: hidden; }
  .hero__window img { object-position: 72% 50%; }
  .hero__checks { position: static; width: 100%; margin: 32px 0 0; padding-bottom: 40px; }
}
@media (max-width: 767px) {
  .hero__stage { padding-top: calc(var(--header-h) + 24px); }
  .hero__copy { gap: 22px; }
  .hero__window { margin-top: 40px; width: 100%; }
  .hero__checks { flex-direction: column; gap: 10px; margin-top: 28px; }
}

/* ----------------------------------------------------------- challenge */
.challenge__grid { display: grid; grid-template-columns: repeat(12, 1fr); column-gap: var(--gap); align-items: start; }
.challenge__title { grid-column: 1 / span 5; position: sticky; top: calc(var(--header-h) + 40px); }
.challenge__title .line { display: block; }
.challenge__body { grid-column: 7 / span 6; font-size: var(--fs-lead); line-height: 1.55; }
.questions { margin-top: clamp(96px, 10vw, 160px); display: grid; grid-template-columns: repeat(12, 1fr); column-gap: var(--gap); }
.questions__intro { grid-column: 1 / span 5; color: var(--ink-soft); max-width: 34ch; }
.questions__list { grid-column: 2 / -1; list-style: none; margin: 40px 0 0; padding: 0; border-top: 1px solid var(--rule); }
.questions__list li {
  font-family: var(--serif); font-size: clamp(26px, 3.1vw, 54px); line-height: 1.12;
  padding: clamp(22px, 2.4vw, 36px) 0; border-bottom: 1px solid var(--rule);
  padding-right: max(0px, calc(100% - 26ch));
}
.questions__close { grid-column: 7 / span 6; margin-top: 56px; font-size: var(--fs-lead); line-height: 1.55; }
@media (max-width: 1024px) {
  .challenge__title, .challenge__body, .questions__intro, .questions__close { grid-column: 1 / -1; }
  .challenge__title { position: static; margin-bottom: 40px; }
  .questions__list { grid-column: 1 / -1; }
  .questions__list li { padding-right: 0; }
}

/* --------------------------------------------------------- perspective */
.perspective__head { display: grid; grid-template-columns: repeat(12, 1fr); column-gap: var(--gap); align-items: start; }
.perspective__title { grid-column: 1 / span 7; max-width: 16ch; }
.perspective__text { grid-column: 8 / span 5; font-size: var(--fs-lead); line-height: 1.55; }
.perspective__photo { margin-top: clamp(48px, 6vw, 88px); border-radius: var(--radius); overflow: hidden; }
.perspective__photo img { width: 100%; aspect-ratio: 21 / 9; object-fit: cover; object-position: 50% 60%; }
.versus { margin-top: clamp(64px, 8vw, 128px); display: grid; grid-template-columns: 1fr 1fr; gap: var(--gap); }
.versus__side { border-radius: var(--radius); padding: clamp(32px, 4vw, 64px); font-size: var(--fs-lead); line-height: 1.5; }
.versus__term { display: block; font-family: var(--serif); font-size: var(--fs-h3); line-height: 1.05; margin-bottom: 20px; }
.versus__side--compliance { background: var(--paper-light); color: var(--ink-soft); box-shadow: inset 0 0 0 1px var(--rule); }
.versus__side--compliance .versus__term { color: var(--navy); }
.versus__side--integrity { background: var(--navy) var(--noise); color: var(--white); }
.perspective__close { margin: clamp(56px, 6vw, 96px) 0 0 calc((100% + var(--gap)) / 12); max-width: 44ch; font-family: var(--serif); font-size: clamp(24px, 2.2vw, 36px); line-height: 1.25; }
@media (max-width: 1024px) {
  .perspective__title, .perspective__text { grid-column: 1 / -1; }
  .perspective__text { margin-top: 32px; }
  .perspective__photo img { aspect-ratio: 4 / 3; }
  .versus { grid-template-columns: 1fr; }
  .perspective__close { margin-left: 0; }
}

/* ------------------------------------------------ builders + cadeia */
.builders__grid { display: grid; grid-template-columns: repeat(12, 1fr); column-gap: var(--gap); align-items: center; }
.builders__text { grid-column: 1 / span 6; }
.builders__text .h2 { margin-bottom: 32px; }
.builders__lead { font-family: var(--serif); font-size: clamp(24px, 2.2vw, 36px); line-height: 1.25; margin-bottom: 28px; max-width: 26ch; }
.builders__text p:not(.builders__lead) { color: rgba(255, 255, 255, .82); max-width: 56ch; font-size: var(--fs-lead); line-height: 1.55; }
.builders__photo { grid-column: 8 / span 5; }
/* janela em arco estatica: o raio de cima e sempre metade da largura */
.arch { container-type: inline-size; }
.arch img { width: 100%; aspect-ratio: 3 / 4; object-fit: cover; border-radius: 50cqw 50cqw var(--radius) var(--radius); }
.chain { position: relative; }
.chain__stage { padding-block: var(--chapter-pad); }
@media (min-width: 768px) {
  .chain__stage { min-height: 100vh; min-height: 100svh; display: flex; align-items: center; padding-block: calc(var(--header-h) + 24px) 48px; }
  .chain__stage > .wrap { width: var(--col); }
}
.chain__caption { max-width: 40ch; font-family: var(--serif); font-size: clamp(24px, 2.2vw, 36px); line-height: 1.25; }
.chain__track { position: relative; margin-top: clamp(56px, 7vw, 104px); }
.chain__line { display: block; width: 100%; height: clamp(70px, 8vw, 130px); overflow: visible; }
.chain__line path { fill: none; stroke: url(#chain-grad); stroke-width: 2; vector-effect: non-scaling-stroke; stroke-linecap: round; }
.chain__links { list-style: none; margin: 18px 0 0; padding: 0; display: grid; grid-template-columns: repeat(5, 1fr); }
.chain__links li { text-align: center; display: grid; gap: 8px; justify-items: center; padding-inline: 8px; }
.chain__n { font-size: 14px; letter-spacing: .08em; color: var(--insight); font-variant-numeric: tabular-nums; }
.chain__name { font-family: var(--serif); font-size: clamp(22px, 2.1vw, 36px); line-height: 1.1; }
.chain__links li::before { content: ""; order: -1; width: 12px; height: 12px; border-radius: 50%; background: var(--paper); box-shadow: 0 0 0 5px rgba(255, 255, 255, .12); margin-top: -26px; margin-bottom: 10px; }
.chain__links li:first-child::before { background: var(--olive); }
@media (max-width: 1024px) {
  .builders__text, .builders__photo { grid-column: 1 / -1; }
  .builders__photo { width: min(420px, 80%); margin: 56px auto 0; }
}
@media (max-width: 767px) {
  .chain__line { display: none; }
  .chain__links { grid-template-columns: 1fr; gap: 0; border-left: 1px solid var(--rule-inverse); margin-left: 6px; }
  .chain__links li { text-align: left; justify-items: start; grid-template-columns: auto 1fr; align-items: baseline; gap: 16px; padding: 18px 0 18px 24px; }
  .chain__links li::before { display: none; }
}

/* --------------------------------------------------------------- help */
.help__title { max-width: 14ch; }
.intents { margin-top: clamp(48px, 6vw, 88px); display: grid; grid-template-columns: 7fr 5fr; column-gap: calc(var(--gap) * 2); grid-auto-rows: auto; }
.intent { display: contents; }
.intent h3 { grid-column: 1; }
.intent__q {
  all: unset; box-sizing: border-box; cursor: pointer; display: block; width: 100%;
  font-family: var(--serif); font-size: clamp(24px, 2.4vw, 40px); line-height: 1.15;
  padding: 22px 0; border-top: 1px solid var(--rule); color: rgba(45, 62, 80, .42);
  transition: color .35s;
}
.intent:last-child .intent__q { border-bottom: 1px solid var(--rule); }
.intent__q:hover, .intent.is-active .intent__q { color: var(--navy); }
.intent__q:focus-visible { outline: 2px solid var(--insight); outline-offset: 4px; }
.intent.is-active .intent__q { text-decoration: underline; text-decoration-color: var(--insight); text-decoration-thickness: 2px; text-underline-offset: 8px; }
.intent__a {
  grid-column: 2; grid-row: 1 / span 4; align-self: start;
  position: sticky; top: calc(var(--header-h) + 40px);
  background: var(--paper-light); border-radius: var(--radius); box-shadow: inset 0 0 0 1px var(--rule);
  padding: clamp(28px, 3.4vw, 52px);
  font-size: var(--fs-lead); line-height: 1.55;
  visibility: hidden; opacity: 0;
  clip-path: inset(0 0 100% 0 round var(--radius));
  transition: clip-path .7s var(--ease-out), opacity .3s, visibility 0s .7s;
}
.intent.is-active .intent__a { visibility: visible; opacity: 1; clip-path: inset(0 0 0 0 round var(--radius)); transition: clip-path .7s var(--ease-out), opacity .3s, visibility 0s; }
.intent__icon { display: block; width: 72px; height: 72px; margin-bottom: 24px; }
.help__cta { margin-top: 48px; }
@media (max-width: 1024px) {
  .intents { display: block; }
  .intent { display: block; }
  .intent__a { position: static; visibility: visible; opacity: 1; clip-path: none; display: none; margin: 0 0 20px; transition: none; }
  .intent.is-active .intent__a { display: block; clip-path: none; }
}

/* -------------------------------------------------------- engagements */
.engagements__head { display: grid; grid-template-columns: repeat(12, 1fr); column-gap: var(--gap); align-items: end; }
.engagements__head .h2 { grid-column: 1 / span 6; }
.engagements__head p { grid-column: 8 / span 5; font-size: var(--fs-lead); line-height: 1.55; }
.stack { margin-top: clamp(56px, 7vw, 104px); padding-bottom: 40px; }
/* a pilha termina e o bloco seguinte comeca logo: sem os 466px de vazio de antes */
.engagements { padding-bottom: 0; }
.case {
  --i: 0;
  /* cada card para 28px abaixo do anterior: no fim, os de tras aparecem so como abas no topo */
  position: sticky; top: calc(var(--header-h) + 32px + var(--i) * 28px);
  display: grid; grid-template-columns: repeat(12, 1fr); column-gap: var(--gap); align-items: start;
  padding: clamp(32px, 4.4vw, 72px);
  border-radius: var(--radius);
  background: var(--navy) var(--noise); color: var(--white);
  transform-origin: 50% 0;
  overflow: hidden;
}
.case + .case { margin-top: 18vh; }
.case:nth-child(2) { --i: 1; }
.case:nth-child(3) { --i: 2; }
/* o arco da marca, em linha fina, no canto de cada case */
.case::after {
  content: ""; position: absolute; right: 0; bottom: 0;
  width: min(42vw, 520px); aspect-ratio: 1;
  background: repeating-radial-gradient(circle at 100% 100%, transparent 0 25px, rgba(255, 255, 255, .07) 25px 26.5px);
  -webkit-mask: radial-gradient(circle at 100% 100%, #000 55%, transparent 72%);
  mask: radial-gradient(circle at 100% 100%, #000 55%, transparent 72%);
  pointer-events: none;
}
.case h3 { grid-column: 1 / span 6; font-size: var(--fs-h3); line-height: 1.08; }
.case p { grid-column: 8 / span 5; font-size: var(--fs-lead); line-height: 1.55; color: rgba(255, 255, 255, .84); position: relative; z-index: 1; }
@media (max-width: 1024px) {
  .engagements__head .h2, .engagements__head p { grid-column: 1 / -1; }
  .engagements__head p { margin-top: 24px; }
  .case h3, .case p { grid-column: 1 / -1; }
  .case p { margin-top: 28px; }
}
/* no celular os cases seguem em fluxo: a pilha cobriria o texto de cada um */
@media (max-width: 767px) {
  .case { position: relative; top: auto; }
  .case + .case { margin-top: 20px; }
  .stack { padding-bottom: 0; }
}

/* --------------------------------------------------------- insights/about */
/* dois caminhos para continuar: fio fino abre o bloco, divisor entre as colunas,
   texto antes da foto, colunas alinhadas no topo */
.duo__grid {
  margin-top: 80px; padding-top: clamp(48px, 5vw, 80px); border-top: 1px solid var(--rule);
  display: grid; grid-template-columns: 1fr 1fr; column-gap: clamp(48px, 7vw, 128px); align-items: stretch;
}
.duo__item { display: flex; flex-direction: column; position: relative; cursor: pointer; }
.duo__item + .duo__item::before {
  content: ""; position: absolute; top: 0; bottom: 0; left: calc(clamp(48px, 7vw, 128px) / -2);
  width: 1px; background: var(--rule);
}
.duo__item .h3 { margin-bottom: 20px; max-width: 20ch; }
.duo__item p { font-size: var(--fs-lead); line-height: 1.55; max-width: 48ch; }
.duo__link { align-self: flex-start; margin-bottom: 40px; }
/* a foto recorta o proprio zoom do hover (overflow + raio na figura) */
.duo__photo { margin-top: auto; border-radius: var(--radius); overflow: hidden; }
.duo__photo img { width: 100%; aspect-ratio: 3 / 2; object-fit: cover; border-radius: var(--radius); transition: transform .6s var(--ease-out); }
.duo__item:hover .duo__photo img { transform: scale(1.04); }
.duo__item:hover .duo__link { background-size: 100% 1px; }
@media (max-width: 767px) {
  .duo__grid { grid-template-columns: 1fr; row-gap: 56px; margin-top: 56px; }
  .duo__item + .duo__item { padding-top: 56px; border-top: 1px solid var(--rule); }
  .duo__item + .duo__item::before { display: none; }
}

/* ------------------------------------------------------------- contact */
.contact__grid { display: grid; grid-template-columns: repeat(12, 1fr); column-gap: var(--gap); align-items: center; }
.contact__text { grid-column: 1 / span 7; display: grid; gap: 32px; }
.display--contact { font-size: clamp(44px, 5.4vw, 96px); max-width: 13ch; }
.contact__text p { font-size: var(--fs-lead); line-height: 1.55; color: rgba(255, 255, 255, .86); max-width: 50ch; }
.contact__photo { grid-column: 9 / span 4; }
.contact__photo img { aspect-ratio: 4 / 5; }
@media (max-width: 1024px) {
  .contact__text, .contact__photo { grid-column: 1 / -1; }
  .contact__photo { width: min(420px, 80%); margin: 64px auto 0; }
}

/* -------------------------------------------------------------- rodape */
.site-footer { padding: 88px 0 40px; background: var(--navy) var(--noise); color: var(--white); border-top: 1px solid var(--rule-inverse); }
.site-footer__grid { display: grid; grid-template-columns: 2fr 1fr 1fr; gap: 48px; }
.site-footer__brand img { width: 40px; height: auto; margin-bottom: 20px; }
.site-footer__brand p { font-family: var(--serif); font-size: 22px; line-height: 1.25; max-width: 18ch; }
.site-footer__h { font-family: var(--serif); font-size: 18px; margin-bottom: 14px; opacity: .6; }
.site-footer nav, .site-footer__grid > div:last-child { display: grid; align-content: start; gap: 6px; }
.site-footer a { text-decoration: none; opacity: .88; }
.site-footer a:hover { opacity: 1; text-decoration: underline; }
.site-footer__legal { margin-top: 72px; padding-top: 24px; border-top: 1px solid var(--rule-inverse); display: flex; flex-wrap: wrap; justify-content: space-between; gap: 12px; font-size: 14px; opacity: .72; }
.site-footer__links { display: flex; gap: 24px; }
@media (max-width: 767px) { .site-footer__grid { grid-template-columns: 1fr; gap: 36px; } }

/* -------------------------------------------------- estados de animacao
   so com html.motion: JS ativo e movimento permitido */
html.motion [data-reveal="curtain"] { clip-path: inset(100% 0 0 0 round var(--radius)); }
html.motion [data-reveal="curtain"] img { transform: scale(1.14); }
html.motion [data-reveal="wipe"] { clip-path: inset(-10% 100% -10% 0); }
html.motion .challenge__title .line--second { clip-path: inset(0 0 100% 0); }
html.motion .chain__links li { opacity: .28; transition: opacity .5s; }
html.motion .chain__links li.is-lit { opacity: 1; }

/* movimento reduzido: sem transicoes; o conteudo ja aparece no estado final */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { transition: none !important; animation: none !important; scroll-behavior: auto !important; }
}

/* ------------------------------------------ mascaras de linhas (o simbolo)
   o SVG montado pelo JS mostra a foto pelas faixas; a <img> fica no DOM (alt, SEO)
   e so some quando a mascara esta ativa - sem JS, vale a <img> normal */
/* :where() zera a especificidade: a figura so ganha position se ainda nao tiver
   (a janela do hero e absoluta e precisa continuar do tamanho do palco) */
:where(.is-masked) { position: relative; }
.line-mask { position: absolute; inset: 0; width: 100%; height: 100%; display: block; pointer-events: none; }
html.motion [data-mask] img, html.motion .hero__window img { opacity: 0; }
@media (min-width: 1025px) {
  html.motion .hero__window { clip-path: none; }
}

@media (min-width: 1025px) {
  html.motion .hero__checks { border-top: 0; }
  html.motion .hero__checks::before { content: ""; position: absolute; left: 0; top: 0; height: 1px; width: var(--fio-w, 100%); background: var(--rule-inverse); }
}

/* cases -> Insights/About: o fundo passa suavemente do bege para o bege claro.
   Com JS, as duas secoes ficam transparentes e a cor vem do body (animada pela rolagem);
   sem JS ou com movimento reduzido, Insights/About ja aparece no bege claro */
.duo.chapter--fade { background: var(--paper-light); }
html.motion .chapter--fade { background: transparent; }

/* tablet e mobile, com a mascara ativa: o SVG desenha a janela deitada (arco para a
   direita); a figura nao recorta nada por conta propria */
@media (max-width: 1024px) {
  html.motion .hero__window { border-radius: 0; overflow: visible; }
}

/* We are builders no celular/tablet: a janela deitada e desenhada pelo SVG */
@media (max-width: 1024px) {
  html.motion .builders__photo img { border-radius: 0; }
}

/* contato da Home no celular/tablet: retangulo de cantos arredondados (aneis) */
@media (max-width: 1024px) {
  .contact__photo[data-mask-mobile="aneis"] { border-radius: var(--radius); overflow: hidden; width: 100%; }
  .contact__photo[data-mask-mobile="aneis"] img { border-radius: var(--radius); }
}
/* celular e tablet: a foto do contato ocupa a coluna inteira, deitada (4:3), como a
   foto de Our perspective - larga sem virar um poster */
@media (max-width: 1024px) {
  .contact__photo[data-mask-mobile="aneis"] img { aspect-ratio: 4 / 3; }
}
/* hero da Home no tablet: largura da coluna, caixa horizontal para a janela deitada */
@media (min-width: 768px) and (max-width: 1024px) {
  .hero__window { width: 100%; aspect-ratio: 3 / 2; }
}
/* cadeia: bolinha, numero e nome sempre a partir do topo - nomes de duas linhas
   crescem para baixo, sem empurrar o numero para cima */
.chain__links li { align-content: start; }

/* ======================================================= feedback do Mitch (set/2026) */

.mobile-menu .btn { white-space: normal; text-align: center; }
.mobile-menu .btn + .btn { margin-top: 10px; }
@media (max-width: 767px) { .actions .btn { white-space: normal; text-align: center; } }

/* perguntas do investidor: um painel so reune a frase de abertura e as quatro perguntas.
   Dentro dele, as perguntas ficam numa grade 2x2 separada por fios em cruz,
   sem caixas - texto e perguntas leem como um bloco */
.questions { display: block; }
.questions__panel {
  background: var(--paper-light); border-radius: var(--radius); box-shadow: inset 0 0 0 1px var(--rule);
  padding: clamp(32px, 4vw, 64px);
}
.questions__intro { max-width: 52ch; font-family: var(--serif); font-size: clamp(22px, 1.9vw, 30px); line-height: 1.3; color: var(--navy); }
.questions__grid { list-style: none; margin: clamp(32px, 3.4vw, 52px) 0 0; padding: 0; display: grid; grid-template-columns: 1fr 1fr; }
.questions__grid li {
  --cel: clamp(22px, 2.4vw, 40px);
  padding: var(--cel) var(--cel) var(--cel) 0;
  /* menores que a abertura; o icone fica acima do texto */
  display: grid; align-content: start; gap: 16px;
  font-family: var(--serif); font-size: clamp(18px, 1.35vw, 22px); line-height: 1.3; text-wrap: balance;
}
.questions__icon { display: block; width: 56px; height: 56px; }
.questions__grid li:nth-child(even) { padding-left: var(--cel); padding-right: 0; border-left: 1px solid var(--rule); }
.questions__grid li:nth-child(n+3) { border-top: 1px solid var(--rule); }
.questions__grid li:nth-child(-n+2) { padding-top: 0; }
.questions__grid li:nth-child(n+3) { padding-bottom: 0; }
@media (max-width: 767px) {
  .questions__grid { grid-template-columns: 1fr; }
  .questions__grid li, .questions__grid li:nth-child(even), .questions__grid li:nth-child(n+3), .questions__grid li:nth-child(-n+2) { padding: 20px 0; border-left: 0; }
  .questions__grid li + li { border-top: 1px solid var(--rule); }
  .questions__grid li:first-child { padding-top: 0; }
  .questions__grid li:last-child { padding-bottom: 0; }
}

/* cadeia de valor como capitulo proprio */
.chain__caption { max-width: 40ch; }
.chain__links li::before { margin-bottom: 18px; }

/* organisations: uma faixa so - titulo a esquerda, logos agrupados a direita, entre dois
   fios. Respiro curto acima e abaixo (antes: 176px + 80px ate o bloco seguinte) */
.orgs.chapter { padding-block: clamp(48px, 5vw, 72px); }
.orgs .wrap {
  /* mesmas duas colunas do bloco Insights/About logo abaixo: os logos comecam na
     mesma linha vertical que "Built on experience" */
  display: grid; grid-template-columns: 1fr 1fr; column-gap: clamp(48px, 7vw, 128px); align-items: center;
  border-top: 1px solid var(--rule); padding-top: clamp(40px, 4vw, 56px);
}
.orgs__title { grid-column: 1; font-size: var(--fs-h3); line-height: 1.08; max-width: none; }
.orgs__logos { grid-column: 2; list-style: none; margin: 0; padding: 0;
  display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 32px clamp(48px, 5vw, 80px); }
.orgs__logos img { width: auto; display: block; }
.orgs__logos li:nth-child(1) img { height: clamp(50px, 4.2vw, 68px); }
.orgs__logos li:nth-child(2) img { height: clamp(38px, 3.2vw, 52px); }
.orgs__logos li:nth-child(3) img { height: clamp(22px, 1.9vw, 30px); }
/* o bloco Insights/About logo abaixo nao soma margem propria */
.orgs + .duo .duo__grid { margin-top: 0; }
@media (max-width: 1024px) {
  .orgs__title, .orgs__logos { grid-column: 1 / -1; }
  .orgs__logos { justify-content: flex-start; margin-top: 28px; }
}
@media (max-width: 767px) {
  .orgs__logos { gap: 28px 40px; }
}

/* nada pode gerar rolagem horizontal: com zoom fracionado do Windows (ex.: 125%/150%)
   o Chrome arredonda larguras e alguns elementos passavam 1px da borda. "clip" corta
   sem criar area de rolagem, entao o position: sticky continua funcionando */
html, body { overflow-x: clip; }

/* ================================================== feedback do Mitch, rodada 2 (out/2026) */

/* a abordagem: painel claro com compliance e Business Integrity lado a lado, separados por
   um fio vertical, e o fecho abaixo de um fio horizontal */
.approach {
  margin-top: clamp(64px, 8vw, 128px);
  background: var(--paper-light); border-radius: var(--radius); box-shadow: inset 0 0 0 1px var(--rule);
  padding: clamp(32px, 4vw, 64px);
}
.approach__label { font-size: 14px; letter-spacing: .16em; text-transform: uppercase; color: var(--ink-soft); }
.approach__title { margin-top: 20px; max-width: 22ch; font-size: clamp(32px, 3.4vw, 56px); line-height: 1.08; }
.approach__cols { margin-top: clamp(40px, 4vw, 64px); display: grid; grid-template-columns: 1fr 1fr; }
.approach__col { padding-right: clamp(24px, 3vw, 48px); }
.approach__col + .approach__col { padding: 0 0 0 clamp(24px, 3vw, 48px); border-left: 1px solid var(--rule); }
.approach__term { font-family: var(--serif); font-weight: 400; font-size: var(--fs-h3); line-height: 1.08; margin: 0 0 24px; }
.approach__col p, .approach__close p { font-size: var(--fs-lead); line-height: 1.6; color: var(--ink-soft); max-width: 46ch; }
.approach__close { margin-top: clamp(40px, 4vw, 56px); padding-top: clamp(32px, 3.4vw, 48px); border-top: 1px solid var(--rule); }
.approach__close p { max-width: 72ch; }
.approach__close .approach__together { font-family: var(--serif); font-size: clamp(24px, 2.2vw, 36px); line-height: 1.2; color: var(--navy); margin-bottom: 16px; max-width: none; }
@media (max-width: 767px) {
  .approach__cols { grid-template-columns: 1fr; }
  .approach__col { padding: 0; }
  .approach__col + .approach__col { padding: 32px 0 0; margin-top: 32px; border-left: 0; border-top: 1px solid var(--rule); }
}
