/* Mindshift — design system matched to Index SVG (Versão 2) */
:root {
  --bg: #04141A;
  --bg-deep: #010B0F;
  --bg-util: #171027;
  --line: #12333C;
  --accent: #4CD4D1;
  --text: #FFFFFF;
  --muted: #A7C4C9;
  --ink: #04141A;
  --surface: #FFFFFF;
  --surface-soft: #FEFEFE;
  --footer-muted: #8FB3B8;
  --footer-link: #C9E8E8;
  --footer-top: #DCEFEF;
  --page: 1440px;
  --max: 1200px;
  --gutter: 120px;
  --section-gap: 88px;
  --header-h: 100px;
  --radius: 16px;
  --font-display: "Raleway", system-ui, sans-serif;
  --font-body: "Raleway", system-ui, sans-serif;
  --font-script: "Caveat", cursive;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  background: var(--bg);
  color: var(--text);
  font-family: var(--font-body);
  font-size: 18px;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
}
main { flex: 1; }
img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
button { font: inherit; cursor: pointer; border: 0; background: none; color: inherit; }

.wrap {
  width: 100%;
  max-width: none;
  padding-inline: clamp(24px, 8vw, 120px);
  margin-inline: auto;
}
.wrap-wide {
  width: 100%;
  max-width: none;
  padding-inline: clamp(24px, 5vw, 72px);
  margin-inline: auto;
}
.wrap-page {
  width: min(100%, var(--page));
  margin-inline: auto;
  padding-inline: max(24px, calc((100% - var(--page)) / 2 + var(--gutter)));
}

/* ========== Header (pixel-matched to Index SVG 1440×100) ========== */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  height: 100px;
  background: #04141A;
  border-bottom: 1px solid #12333C;
}
.site-header__inner {
  position: relative;
  height: 100%;
  width: 100%;
  margin-inline: auto;
}
.brand {
  position: absolute;
  left: 8.61vw;
  top: 12px;
  width: 72px;
  height: 76px;
  display: block;
  z-index: 6;
}
.brand img {
  width: 72px;
  height: 76px;
  object-fit: contain;
}

.nav {
  position: absolute;
  left: calc(8.61vw + 140px);
  top: 35px;
  height: 39px;
  display: flex;
  align-items: center;
  gap: clamp(32px, 4.8vw, 72px);
  margin: 0;
  padding: 0;
  pointer-events: none;
}
.nav a {
  position: relative;
  height: 39px;
  display: inline-flex;
  align-items: center;
  pointer-events: auto;
  font-family: var(--font-display);
  font-weight: 300;
  font-size: 12px;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: #FFFFFF;
  line-height: 1;
  white-space: nowrap;
  padding: 0;
  box-sizing: border-box;
  -webkit-font-smoothing: antialiased;
}
.nav a:hover { color: var(--accent); }

/* Active = CONNECT bars from SVG (y=35 & y=72) */
.nav a.is-active { color: #FFFFFF; }
.nav a.is-active::before,
.nav a.is-active::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  height: 2px;
  background: #4CD4D1;
  pointer-events: none;
}
.nav a.is-active::before { top: 0; }
.nav a.is-active::after { bottom: 0; }

/* Utils: exact crop from Index SVG (1080–1320 × 30–70) → right 120 */
.header-utils {
  position: absolute;
  right: 8.33vw;
  top: 30px;
  width: 240px;
  height: 40px;
  margin: 0;
  padding: 0;
}
.header-utils__art {
  width: 240px;
  height: 40px;
  display: block;
  pointer-events: none;
}
.header-utils__hit {
  position: absolute;
  top: 0;
  height: 40px;
  display: block;
  border: 0;
  background: transparent;
  padding: 0;
  cursor: pointer;
}
.header-utils__hit--li {
  left: 0;
  width: 52px; /* 1080–1132 */
}
.header-utils__lang {
  position: absolute;
  left: 118px; /* space after globe */
  top: 0;
  height: 40px;
  display: flex;
  align-items: center;
  gap: 8px;
}
.header-utils__lang-btn {
  font-family: "Raleway", system-ui, sans-serif;
  font-weight: 600;
  font-size: 12px;
  letter-spacing: 0.04em;
  line-height: 1;
  color: #ffffff;
  padding: 0;
  border: 0;
  background: transparent;
  cursor: pointer;
}
.header-utils__lang-btn.is-active {
  color: #4CD4D1;
}
.header-utils__lang-btn:hover {
  color: #4CD4D1;
}
.header-utils__lang-btn:focus-visible {
  outline: 2px solid #4CD4D1;
  outline-offset: 3px;
}
.menu-toggle {
  display: none;
  position: absolute;
  right: 20px;
  top: 28px;
  width: 44px;
  height: 44px;
  border: 1px solid rgba(255,255,255,0.25);
  border-radius: 8px;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  gap: 5px;
  padding: 0;
  z-index: 9;
}
.menu-toggle__bar {
  display: block;
  width: 18px;
  height: 2px;
  background: #fff;
  border-radius: 1px;
  transition: transform 0.2s ease, opacity 0.2s ease;
}

/* ========== Type — Raleway (300 Light / 400 Regular / 600 SemiBold / 700 Bold) ==========
   Titles & hero: Regular 400 (+4px vs legacy)
   Eyebrows: SemiBold 600
   Body / lead: Regular 400 (+2px)
   Strong / UI labels: SemiBold 600
   Caveat: script only
*/
.eyebrow {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 22px;
  line-height: 1.3;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--accent);
  text-align: center;
  margin: 0 0 20px;
}
.eyebrow::after {
  content: "";
  display: block;
  width: 48px;
  height: 2px;
  margin: 18px auto 0;
  background: var(--accent);
}
.eyebrow--left { text-align: left; }
.eyebrow--left::after {
  margin-left: 0;
  margin-right: auto;
}

.h1, .h2 {
  font-family: var(--font-display);
  font-weight: 400;
  font-size: 44px;
  line-height: 1.2;
  margin: 0;
  text-align: center;
  color: var(--text);
}
.h1--left, .h2--left { text-align: left; }
.h1-lite { font-weight: 300; }

.lead {
  font-family: var(--font-body);
  font-weight: 400;
  font-size: 18px;
  line-height: 1.55;
  color: var(--muted);
  max-width: 980px;
  margin: 28px auto 0;
  text-align: left;
}
.lead--center { text-align: center; max-width: 820px; }

/* Portfolio — exact line breaks from brief/Figma */
body[data-page="portfolio"] .lead.lead--center {
  max-width: min(1120px, 100%);
  margin-inline: auto;
  text-align: center;
  color: #FFFFFF;
}
@media (max-width: 860px) {
  body[data-page="portfolio"] .lead br {
    display: none;
  }
}
.lead strong {
  font-family: var(--font-body);
  color: var(--text);
  font-weight: 600;
}

.section {
  padding: 0;
}
.section-spacer { height: var(--section-gap); }

/* Same top rhythm on every inner page (Excel: equal start spacing) */
.page-hero {
  padding: 86px 0 0;
}
.page-hero .h1 { max-width: 980px; margin-inline: auto; }
.page-hero .lead { max-width: 980px; }
.page-hero + .section-spacer,
.page-hero + .section {
  margin-top: 0;
}

.accent-rule {
  width: 56px;
  height: 3px;
  background: var(--accent);
  margin: 22px 0 0;
}
.accent-rule--center { margin-inline: auto; }

.cols-2 {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 40px 56px;
  margin-top: 36px;
}
.cols-2 p {
  margin: 0;
  font-family: var(--font-body);
  font-size: 18px;
  color: var(--muted);
}
.cols-2 strong {
  font-family: var(--font-body);
  color: var(--text);
  font-weight: 600;
}

/* ========== Clusters ========== */
.clusters {
  display: grid;
  grid-template-columns: repeat(7, 1fr);
  gap: 12px;
  margin-top: 40px;
}
.flip {
  perspective: 1000px;
  aspect-ratio: 215 / 370;
  min-height: 0;
}
.flip__inner {
  position: relative;
  width: 100%;
  height: 100%;
  transform-style: preserve-3d;
  transition: transform 0.55s ease;
  cursor: pointer;
}
.flip.is-flipped .flip__inner { transform: rotateY(180deg); }
.flip__face {
  position: absolute;
  inset: 0;
  backface-visibility: hidden;
  -webkit-backface-visibility: hidden;
  border-radius: var(--radius);
  overflow: hidden;
}
.flip__face--photo {
  background: #fff;
  box-shadow: 0 10px 28px rgba(76, 212, 209, 0.12);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: space-between;
  padding: 22px 14px 20px;
  gap: 12px;
}
.flip__face--photo img {
  width: 100%;
  flex: 1 1 auto;
  min-height: 0;
  object-fit: contain;
  object-position: center;
}
.flip__title {
  margin: 0;
  flex: 0 0 auto;
  width: 100%;
  min-height: 3.6em;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: flex-start;
  font-family: var(--font-display);
  font-weight: 600;
  font-size: clamp(14px, 1.25vw, 20px);
  line-height: 1.2;
  letter-spacing: 0.01em;
  text-align: center;
  color: var(--bg);
  overflow: visible;
  hyphens: manual;
}
.flip__face--back {
  transform: rotateY(180deg);
  background: #4CD4D1;
  display: grid;
  place-items: center;
  padding: 18px 14px;
  box-shadow: 0 10px 28px rgba(76, 212, 209, 0.18);
}
.flip__face--back p {
  margin: 0;
  width: 100%;
  font-family: var(--font-body);
  font-size: 16px;
  font-weight: 600;
  color: #fff;
  line-height: 1.4;
  text-align: center;
}
body[data-page="expertise"] .clusters .flip__face--photo {
  background: #fff;
}
body[data-page="expertise"] .clusters .flip__title {
  color: var(--bg);
}
body[data-page="expertise"] .clusters .flip__face--back {
  background: #4CD4D1;
}
body[data-page="expertise"] .clusters .flip__face--back p {
  color: #fff;
  font-size: 16px;
}

/* ========== Services (Figma: barra teal esquerda; Networking barra inferior) ========== */
.services {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px 64px;
  margin-top: 36px;
  align-items: start;
}
.service {
  background: transparent;
  display: block;
  min-height: 0;
  overflow: visible;
  border-bottom: 1px solid rgba(76, 212, 209, 0.18);
  padding: 18px 0 20px;
}
.service__title {
  margin: 0;
  width: 100%;
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 14px;
  padding: 0;
  border: 0;
  background: transparent;
  cursor: pointer;
  text-align: left;
  color: var(--text);
  font-family: var(--font-display);
}
.service__index {
  font-weight: 300;
  font-size: 14px;
  letter-spacing: 0.08em;
  color: var(--accent);
  min-width: 1.8em;
}
.service__label {
  font-weight: 600;
  font-size: clamp(18px, 1.8vw, 22px);
  line-height: 1.25;
  transition: color 0.2s ease;
}
.service__arrow {
  width: 0;
  height: 0;
  border-left: 6px solid transparent;
  border-right: 6px solid transparent;
  border-top: 8px solid rgba(255, 255, 255, 0.35);
  flex-shrink: 0;
  transition: transform 0.28s ease, border-top-color 0.2s ease;
}
.service__title:hover .service__label,
.service.is-open .service__label {
  color: var(--accent);
}
.service.is-open .service__arrow {
  border-top-color: var(--accent);
  transform: rotate(180deg);
}
.service__panel {
  display: grid;
  grid-template-rows: 0fr;
  opacity: 0;
  transition: grid-template-rows 0.4s ease, opacity 0.35s ease, margin 0.35s ease;
  margin-top: 0;
  pointer-events: none;
}
.service.is-open .service__panel {
  grid-template-rows: 1fr;
  opacity: 1;
  margin-top: 14px;
  pointer-events: auto;
}
.service__panel-inner {
  overflow: hidden;
  min-height: 0;
}
.service__text {
  margin: 0;
  padding-left: calc(1.8em + 14px);
  font-family: var(--font-body);
  font-weight: 400;
  font-size: 16px;
  line-height: 1.55;
  color: #FFFFFF;
  max-width: 42ch;
  transform: translateY(-8px);
  opacity: 0;
  transition: transform 0.4s cubic-bezier(0.22, 1, 0.36, 1), opacity 0.35s ease;
}
.service.is-open .service__text {
  transform: translateY(0);
  opacity: 1;
  transition-delay: 0.06s;
}
.service--wide {
  grid-column: 1 / -1;
  text-align: left;
}
.service--wide .service__title {
  grid-template-columns: auto auto auto;
  justify-content: center;
  width: fit-content;
  margin-inline: auto;
}
.service--wide .service__text {
  max-width: none;
  width: max-content;
  white-space: nowrap;
  margin-inline: auto;
  padding-left: 0;
}

/* ========== Marquee ========== */
.marquee {
  margin-top: 36px;
  background: var(--surface);
  overflow: hidden;
  white-space: nowrap;
  padding: 18px 0;
}
.marquee__track {
  display: inline-flex;
  align-items: center;
  gap: 28px;
  animation: marquee 42s linear infinite;
  padding-left: 28px;
}
.marquee:hover .marquee__track { animation-play-state: paused; }
.marquee__item {
  font-family: var(--font-body);
  font-weight: 600;
  font-size: 16px;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--ink);
  display: inline-flex;
  align-items: center;
  gap: 28px;
}
.marquee__item::after {
  content: "▲";
  color: var(--accent);
  font-size: 11px;
}
/* Figma Expertise: triângulos pretos na faixa branca */
.marquee--ink .marquee__item::after { color: var(--ink); }
.marquee--muted .marquee__item { color: var(--muted); }
.marquee--muted .marquee__item::after { color: rgba(76, 212, 209, 0.55); }
/* About — Memberships logos (#A7C4C9), Blavity-style monochrome strip */
.marquee--logos {
  background: transparent;
  padding: 22px 0;
  margin-top: 44px;
}
.marquee--logos .marquee__track {
  gap: 36px;
  animation-duration: 55s;
}
.marquee--logos .marquee__item {
  gap: 36px;
  text-transform: none;
}
.marquee--logos .marquee__item::after {
  content: "▲";
  color: rgba(76, 212, 209, 0.45);
  font-size: 10px;
  flex-shrink: 0;
}
.marquee--logos .marquee__item img {
  display: block;
  height: 36px;
  width: auto;
  max-width: 160px;
  object-fit: contain;
  object-position: center;
}
@keyframes marquee {
  from { transform: translateX(0); }
  to { transform: translateX(-50%); }
}

/* Expertise — text rhythm matched to Index SVG
   Index measures (approx):
   - hero title → lead: 33px
   - eyebrow → title: 71px
   - title → body: 64px
   - body line pitch: ~28px
   - section → section: ~89px
   - title → cards: ~44px
*/
body[data-page="portfolio"] .page-hero {
  padding: 86px 0 0;
}
body[data-page="portfolio"] .page-hero .h1 {
  width: max-content;
  max-width: 100%;
  margin-inline: auto;
  text-align: center;
  line-height: 1.2;
}
body[data-page="portfolio"] .page-hero .h1 + .eyebrow {
  margin-top: 72px;
}
body[data-page="portfolio"] .page-hero .eyebrow + .lead {
  margin-top: 36px;
}
body[data-page="expertise"] .page-hero {
  padding: 86px 0 0;
}
body[data-page="expertise"] .expertise-copy {
  display: flex;
  flex-direction: column;
  align-items: stretch;
  width: fit-content;
  max-width: min(1040px, 100%);
  margin-inline: 0;
  margin-right: auto;
}
body[data-page="expertise"] .page-hero .expertise-copy {
  max-width: 100%;
}
body[data-page="expertise"] .expertise-copy .h1,
body[data-page="expertise"] .expertise-copy .h2 {
  width: max-content;
  max-width: 100%;
  margin-inline: 0;
  text-align: left;
  line-height: 1.2;
}
body[data-page="expertise"] .page-hero .h1 {
  width: max-content;
  max-width: 100%;
  margin-inline: 0;
  text-align: left;
}
/* Figma/Excel: indexado esq + #A7C4C9 — mesma largura do título */
body[data-page="expertise"] .page-hero .lead,
body[data-page="expertise"] .section .lead {
  margin-top: 34px;
  text-align: left;
  color: #FFFFFF;
  width: 100%;
  max-width: none;
  margin-inline: 0;
  line-height: 1.75;
}
body[data-page="expertise"] .expertise-copy:not(:has(.h1)):not(:has(.h2)) {
  width: 100%;
  max-width: min(1040px, 100%);
}
body[data-page="expertise"] .expertise-copy--center {
  width: fit-content;
  max-width: 100%;
  margin-inline: auto;
}
body[data-page="expertise"] .expertise-copy--center .lead {
  width: max-content;
  max-width: 100%;
  text-align: center;
  margin-inline: auto;
}
body[data-page="expertise"] .expertise-lead-2 {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0;
  font-size: clamp(14px, 1.3vw, 18px);
}
body[data-page="expertise"] .expertise-lead-2__line {
  display: block;
  white-space: nowrap;
}
@media (max-width: 860px) {
  body[data-page="expertise"] .expertise-lead-2__line {
    white-space: normal;
  }
}
body[data-page="about"] .about-copy {
  display: flex;
  flex-direction: column;
  align-items: stretch;
  width: var(--about-copy-width, fit-content);
  max-width: 100%;
  margin-inline: 0;
  margin-right: auto;
  box-sizing: border-box;
}
body[data-page="about"] .about-copy .h1 {
  width: max-content;
  max-width: 100%;
  margin-inline: 0;
  text-align: left;
  line-height: 1.2;
}
body[data-page="about"] .page-hero .lead,
body[data-page="about"] .section .lead {
  margin-top: 34px;
  text-align: left;
  color: #FFFFFF;
  width: 100%;
  max-width: none;
  margin-inline: 0;
  line-height: 1.75;
}
body[data-page="about"] .page-hero .about-copy .lead {
  width: 100%;
}
body[data-page="about"] .page-hero .h1 {
  max-width: none;
  line-height: 1.2;
  margin-inline: 0;
  text-align: left;
}
body[data-page="about"] .section .about-copy .lead {
  margin-top: 0;
}
body[data-page="about"] .about-copy--center {
  margin-inline: auto;
}
body[data-page="about"] .about-copy--center .lead {
  text-align: center;
}
body[data-page="about"] .h2 {
  width: fit-content;
  max-width: min(980px, 100%);
  margin-top: 0;
  margin-inline: auto;
  text-align: center;
}
body[data-page="about"] .h2--commitment {
  width: 100%;
  max-width: 100%;
  margin-inline: auto;
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
}
body[data-page="about"] .h2--commitment .h2__line {
  display: block;
  white-space: nowrap;
  text-align: center;
  width: fit-content;
  max-width: 100%;
  margin-inline: auto;
}
body[data-page="about"] .compass-card__text {
  width: 100%;
  max-width: 100%;
  margin-inline: auto;
  line-height: 1.55;
  text-align: center;
}
@media (max-width: 860px) {
  body[data-page="about"] .h1 br,
  body[data-page="about"] .lead br,
  body[data-page="about"] .h2 br {
    display: none;
  }
  body[data-page="about"] .h2--commitment .h2__line {
    white-space: normal;
  }
  body[data-page="about"] .about-copy,
  body[data-page="about"] .about-copy .h1 {
    width: 100%;
    max-width: 100%;
  }
}
body[data-page="expertise"] .eyebrow + .lead,
body[data-page="expertise"] .eyebrow + .expertise-copy,
body[data-page="about"] .eyebrow + .lead,
body[data-page="about"] .eyebrow + .about-copy,
body[data-page="portfolio"] .eyebrow + .lead {
  margin-top: 36px;
}
body[data-page="expertise"] .eyebrow + .expertise-copy .lead,
body[data-page="about"] .eyebrow + .about-copy .lead {
  margin-top: 0;
}
body[data-page="expertise"] .eyebrow,
body[data-page="about"] .eyebrow,
body[data-page="portfolio"] .eyebrow {
  margin: 0;
  text-align: center;
}
body[data-page="expertise"] .eyebrow + .h2,
body[data-page="about"] .eyebrow + .h2,
body[data-page="portfolio"] .eyebrow + .h2 {
  margin-top: 72px;
  text-align: center;
}
body[data-page="about"] .h2 + .about-copy {
  margin-top: 36px;
}
body[data-page="about"] .h2--commitment + .compass-grid {
  margin-top: 44px;
}
body[data-page="about"] .h2--commitment + .gov {
  margin-top: 44px;
}
body[data-page="about"] .section--mindshifters .mindshifters {
  margin-top: 44px;
}
body[data-page="expertise"] .h2 + .clusters {
  margin-top: 44px;
}
body[data-page="expertise"] .lead + .services,
body[data-page="expertise"] .expertise-copy + .services {
  margin-top: 44px;
}
body[data-page="expertise"] .marquee,
body[data-page="about"] .marquee {
  margin-top: 44px;
}
body[data-page="portfolio"] .lead + .filters {
  margin-top: 44px;
}
@media (max-width: 860px) {
  body[data-page="expertise"] .h1 br,
  body[data-page="expertise"] .lead br {
    display: none;
  }
  .services {
    grid-template-columns: 1fr;
    gap: 0;
  }
  .service__text {
    padding-left: 0;
    max-width: none;
  }
  .service--wide .service__text {
    white-space: normal;
    width: 100%;
  }
}

/* ========== Compass — 1×4 titles, cascade reveal ========== */
.compass-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  column-gap: clamp(12px, 2.5vw, 48px);
  row-gap: 0;
  margin-top: 44px;
  margin-inline: auto;
  width: 100%;
  max-width: 100%;
  border: 0;
  align-items: start;
  justify-items: center;
  position: relative;
  overflow: visible;
}
.compass-grid:has(.compass-card.is-open) {
  padding-bottom: 0;
}
.compass-card {
  padding: 0;
  border: 0;
  min-height: 0;
  min-width: 0;
  width: 100%;
  max-width: 100%;
  transition: background 0.25s ease;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  overflow: visible;
  position: relative;
  z-index: 0;
}
.compass-card.is-open {
  background: transparent;
  z-index: 2;
}
.compass-card__title {
  margin: 0;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 22px;
  line-height: 1.2;
  color: var(--text);
  cursor: pointer;
  padding: 0;
  text-align: center;
  transition: color 0.2s ease;
  white-space: nowrap;
  position: relative;
  z-index: 3;
}
.compass-card__title:hover,
.compass-card.is-open .compass-card__title {
  color: var(--accent);
}
.compass-card__arrow {
  width: 0;
  height: 0;
  border-left: 7px solid transparent;
  border-right: 7px solid transparent;
  border-top: 10px solid rgba(255, 255, 255, 0.35);
  flex-shrink: 0;
  transition: transform 0.28s ease, border-top-color 0.2s ease;
}
.compass-card.is-open .compass-card__arrow {
  border-top-color: var(--accent);
  transform: rotate(180deg);
}
.compass-card__body {
  position: static;
  left: auto;
  right: auto;
  top: auto;
  display: grid;
  grid-template-rows: 0fr;
  opacity: 0;
  transition: grid-template-rows 0.4s ease, opacity 0.35s ease, margin 0.35s ease;
  margin-top: 0;
  pointer-events: none;
  width: 100%;
  max-width: 100%;
  z-index: 1;
}
.compass-card.is-open .compass-card__body {
  grid-template-rows: 1fr;
  opacity: 1;
  margin-top: 18px;
  pointer-events: auto;
  z-index: 2;
}
.compass-card__body-inner {
  overflow: hidden;
  min-height: 0;
  width: 100%;
}
.compass-card.is-open .compass-card__body-inner {
  overflow: visible;
}
.compass-card__text {
  margin: 0 auto;
  font-family: var(--font-body);
  font-weight: 400;
  font-size: 16px;
  line-height: 1.55;
  color: #FFFFFF;
  width: 100%;
  max-width: 100%;
  text-align: center;
  transform: translateY(-10px);
  opacity: 0;
  transition: transform 0.4s cubic-bezier(0.22, 1, 0.36, 1), opacity 0.35s ease;
}
.compass-card__line {
  display: inline;
  white-space: normal;
}
.compass-card.is-open .compass-card__text {
  transform: translateY(0);
  opacity: 1;
  transition-delay: 0.08s;
}
@media (max-width: 860px) {
  .compass-grid {
    grid-template-columns: 1fr;
    gap: 22px;
    width: 100%;
    padding-bottom: 0;
  }
  .compass-grid:has(.compass-card.is-open) {
    padding-bottom: 0;
  }
  .compass-card {
    border: 0;
    padding: 0;
    width: 100%;
  }
  .compass-card.is-open .compass-card__body {
    margin-top: 18px;
  }
  .compass-card__title {
    white-space: normal;
  }
  .compass-card__text {
    width: 100%;
    max-width: 100%;
    text-align: center;
    margin-inline: auto;
  }
  .compass-card__line {
    white-space: normal;
  }
}

/* ========== Meet Our Mindshifters (Vivid+Co inspired) ========== */
.section--mindshifters {
  position: relative;
  overflow: visible;
}
.mindshifters {
  position: relative;
  margin-top: 44px;
  padding: 32px 0 72px;
  min-height: 620px;
  cursor: none;
  overflow: visible;
}
.mindshifters__glow {
  position: absolute;
  left: -10%;
  right: -10%;
  top: 5%;
  height: 85%;
  background:
    radial-gradient(ellipse 55% 50% at 28% 42%, rgba(76, 212, 209, 0.22) 0%, transparent 58%),
    radial-gradient(ellipse 45% 40% at 72% 58%, rgba(80, 130, 220, 0.16) 0%, transparent 55%),
    linear-gradient(115deg, transparent 20%, rgba(255, 255, 255, 0.04) 42%, transparent 58%);
  filter: blur(28px);
  pointer-events: none;
  z-index: 0;
}
.mindshifters__cursor {
  position: fixed;
  top: 0;
  left: 0;
  width: 84px;
  height: 84px;
  margin: -42px 0 0 -42px;
  border-radius: 50%;
  background: #ffffff;
  color: #04141A;
  display: grid;
  place-items: center;
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 11px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  pointer-events: none;
  z-index: 90;
  opacity: 0;
  scale: 0.6;
  transition: opacity 0.2s ease, scale 0.2s ease, background 0.2s ease, width 0.2s ease, height 0.2s ease, margin 0.2s ease;
  box-shadow: 0 8px 28px rgba(0, 0, 0, 0.35);
  will-change: left, top;
}
.mindshifters__cursor.is-visible {
  opacity: 1;
  scale: 1;
}
.mindshifters__cursor.is-dragging {
  scale: 0.92;
  background: var(--accent);
  color: #04141A;
}
.mindshifters__cursor.is-view::before,
.mindshifters__cursor.is-view::after {
  display: none;
}
.mindshifters__cursor::before,
.mindshifters__cursor::after {
  content: "";
  position: absolute;
  top: 50%;
  width: 0;
  height: 0;
  border-top: 5px solid transparent;
  border-bottom: 5px solid transparent;
  margin-top: -5px;
}
.mindshifters__cursor::before {
  left: 12px;
  border-right: 7px solid currentColor;
}
.mindshifters__cursor::after {
  right: 12px;
  border-left: 7px solid currentColor;
}
.mindshifters__viewport {
  position: relative;
  z-index: 1;
  overflow: visible;
  padding: 12px 0 40px;
  cursor: none;
  touch-action: pan-y;
}
.mindshifters__viewport.is-dragging {
  cursor: none;
  user-select: none;
}
.mindshifters__track {
  display: flex;
  align-items: flex-start;
  gap: clamp(36px, 4vw, 56px);
  width: max-content;
  padding: 8px max(24px, calc((100vw - 1100px) / 2 + 24px)) 48px;
  min-height: 520px;
  will-change: transform;
  transition: transform 0.05s linear;
}
.mindshifter {
  flex: 0 0 auto;
  width: min(300px, 78vw);
  display: flex;
  flex-direction: column;
  gap: 14px;
  transition: transform 0.45s cubic-bezier(0.22, 1, 0.36, 1);
}
.mindshifter[data-stagger="0"] { transform: translateY(0); }
.mindshifter[data-stagger="1"] { transform: translateY(56px); }
.mindshifter[data-stagger="2"] { transform: translateY(112px); }
.mindshifter[data-stagger="3"] { transform: translateY(40px); }
.mindshifter[data-stagger="4"] { transform: translateY(84px); }
.mindshifter__info {
  display: grid;
  grid-template-rows: 0fr;
  transition: grid-template-rows 0.45s cubic-bezier(0.22, 1, 0.36, 1);
  margin-top: -6px;
}
.mindshifter__info-inner {
  overflow: hidden;
  min-height: 0;
  display: flex;
  flex-direction: column;
  gap: 14px;
}
.mindshifter.is-viewing .mindshifter__info {
  grid-template-rows: 1fr;
}
.mindshifter__cascade {
  opacity: 0;
  transform: translateY(22px);
  will-change: opacity, transform;
}
.mindshifter.is-viewing .mindshifter__cascade {
  animation: mindCascade 0.7s cubic-bezier(0.16, 1, 0.3, 1) both;
  animation-delay: calc(var(--cascade-i, 0) * 90ms + 40ms);
}
@keyframes mindCascade {
  from {
    opacity: 0;
    transform: translateY(22px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}
.mindshifter__photo {
  position: relative;
  display: block;
  width: 100%;
  aspect-ratio: 4 / 5;
  border-radius: 28px;
  overflow: hidden;
  background: #12343c;
  box-shadow: 0 24px 60px rgba(0, 0, 0, 0.35);
  transition: box-shadow 0.45s ease;
  cursor: none;
}
.mindshifter__photo::after {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;
  background:
    radial-gradient(ellipse 70% 80% at 18% 40%, rgba(76, 212, 209, 0.38) 0%, transparent 55%),
    radial-gradient(ellipse 60% 55% at 85% 75%, rgba(18, 96, 110, 0.28) 0%, transparent 50%),
    linear-gradient(160deg, rgba(255, 255, 255, 0.08) 0%, transparent 40%);
  mix-blend-mode: soft-light;
  pointer-events: none;
  opacity: 0.85;
  transition: opacity 0.4s ease;
}
.mindshifter.is-viewing .mindshifter__photo,
.mindshifter__photo:hover {
  box-shadow: 0 28px 70px rgba(0, 0, 0, 0.48);
}
.mindshifter.is-viewing .mindshifter__photo::after,
.mindshifter__photo:hover::after {
  opacity: 1;
}
.mindshifter__photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 12%;
  display: block;
  pointer-events: none;
  transition: transform 0.6s cubic-bezier(0.22, 1, 0.36, 1);
}
.mindshifter.is-viewing .mindshifter__photo img,
.mindshifter__photo:hover img {
  transform: scale(1.04);
}
.mindshifter__meta {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 4px;
  margin: 0;
  padding: 0 2px 0;
}
.mindshifter__identity {
  margin: 0;
  display: inline-block;
  line-height: 1.15;
}
.mindshifter__name {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: clamp(17px, 1.8vw, 22px);
  color: #ffffff;
  letter-spacing: -0.01em;
  text-decoration: none;
}
.mindshifter__role {
  font-family: var(--font-display);
  font-weight: 400;
  font-size: 0.55em;
  line-height: 1;
  color: rgba(255, 255, 255, 0.78);
  margin-left: 0.55em;
  vertical-align: super;
  top: -0.45em;
  position: relative;
  white-space: nowrap;
}
.mindshifter__email {
  font-family: var(--font-body);
  font-weight: 400;
  font-size: clamp(12px, 1.15vw, 14px);
  color: var(--accent);
  text-decoration: none;
  letter-spacing: 0.01em;
  transition: color 0.2s ease, opacity 0.2s ease;
}
.mindshifter__email:hover,
.mindshifter__email:focus-visible {
  color: #ffffff;
  outline: none;
  text-decoration: underline;
  text-underline-offset: 3px;
}
.mindshifter__bio {
  margin: 0;
  padding: 0 2px;
  font-family: var(--font-display);
  font-weight: 400;
  font-size: 14px;
  line-height: 1.5;
  color: rgba(255, 255, 255, 0.88);
  display: flex;
  flex-direction: column;
  gap: 1em;
}
.mindshifter__bio p {
  margin: 0;
  font: inherit;
  color: inherit;
  line-height: inherit;
}
.mindshifter__rule {
  height: 0;
  border: 0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.92);
  margin: 0;
  padding: 0;
}
.mindshifter__rule--meta {
  margin-top: -4px;
}

@media (prefers-reduced-motion: reduce) {
  .mindshifter__cascade {
    opacity: 1;
    transform: none;
  }
  .mindshifter.is-viewing .mindshifter__cascade {
    animation: none;
  }
  .mindshifter__info {
    transition: none;
  }
}

@media (max-width: 900px) {
  .mindshifters { min-height: 0; cursor: auto; }
  .mindshifters__cursor { display: none; }
  .mindshifters__viewport,
  .mindshifter__photo { cursor: auto; }
  .mindshifter[data-stagger] { transform: translateY(0); }
  .mindshifters__track {
    min-height: 0;
    padding-left: 20px;
    padding-right: 20px;
  }
}
@media (max-width: 640px) {
  .mindshifters { padding: 20px 0 28px; }
  .mindshifter { width: min(280px, 82vw); }
  .mindshifter__photo { border-radius: 22px; }
}

/* ========== Governance (same boxes/fundo as Index indicators) ========== */
.gov {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 14px;
  margin-top: 44px;
  max-width: 980px;
  margin-inline: auto;
}
.gov__box {
  background: linear-gradient(180deg, #4CD4D1 0%, #12606E 100%);
  border-radius: var(--radius);
  min-height: 96px;
  padding: 14px 20px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-body);
  font-weight: 600;
  font-size: 16px;
  line-height: 1.25;
  color: #FFFFFF;
  text-align: center;
  white-space: nowrap;
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}
.gov__box:hover {
  transform: translateY(-4px);
  box-shadow: 0 12px 28px rgba(76, 212, 209, 0.22);
}

/* ========== Portfolio — seamless infinite rails (translateX -50%) ========== */
.section--rail {
  padding: 0;
  overflow: hidden;
}
.portfolio-rail {
  display: grid;
  gap: 16px;
  width: 100%;
  overflow: hidden;
}
.rail-row {
  overflow: hidden;
  width: 100%;
}
.rail-row__track {
  display: flex;
  flex-wrap: nowrap;
  width: max-content;
  will-change: transform;
  animation: none;
}
.rail-row__track.is-ready {
  animation: portfolio-rail-ltr var(--rail-duration, 48s) linear infinite;
}
.rail-row--rtl .rail-row__track.is-ready {
  animation-name: portfolio-rail-rtl;
}
.portfolio-rail.is-paused .rail-row__track.is-ready,
.portfolio-rail:hover .rail-row__track.is-ready {
  animation-play-state: paused;
}
.rail-set {
  display: flex;
  gap: 16px;
  flex: 0 0 auto;
  padding-right: 16px;
  box-sizing: content-box;
}
@keyframes portfolio-rail-ltr {
  from { transform: translate3d(0, 0, 0); }
  to { transform: translate3d(-50%, 0, 0); }
}
@keyframes portfolio-rail-rtl {
  from { transform: translate3d(-50%, 0, 0); }
  to { transform: translate3d(0, 0, 0); }
}
.project-tile {
  flex: 0 0 calc((100vw - 48px) / 4);
  width: calc((100vw - 48px) / 4);
  max-width: none;
  aspect-ratio: 1672 / 941;
  background: var(--surface);
  border-radius: 10px;
  overflow: hidden;
  cursor: pointer;
  position: relative;
  border: 0;
  padding: 0;
  transition: transform 0.35s ease, box-shadow 0.35s ease;
}
.project-tile:hover,
.project-tile:focus-visible {
  transform: translateY(-6px) scale(1.02);
  box-shadow: 0 16px 36px rgba(76, 212, 209, 0.22);
  z-index: 1;
}
.project-tile img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  pointer-events: none;
}

/* Flip card — sample: Corporate 1 + IN-BOUND
   Uses face swap (not rotateY): parent marquee transform flattens 3D and breaks backface. */
.project-tile--flip {
  background: #FFFFFF;
  overflow: hidden;
}
.project-tile--flip .project-tile__inner {
  position: relative;
  display: block;
  width: 100%;
  height: 100%;
}
.project-tile--flip.is-flipped {
  z-index: 5;
  box-shadow: 0 16px 36px rgba(76, 212, 209, 0.22);
}
.project-tile__face {
  position: absolute;
  inset: 0;
  border-radius: 10px;
  overflow: hidden;
  transition: opacity 0.35s ease, visibility 0.35s ease;
}
.project-tile__face--front {
  background: var(--surface);
  opacity: 1;
  visibility: visible;
  z-index: 1;
}
.project-tile__face--back {
  background: #FFFFFF;
  display: grid;
  grid-template-rows: minmax(0, 1.2fr) minmax(0, 0.9fr);
  text-align: left;
  font-family: var(--font-body);
  opacity: 0;
  visibility: hidden;
  z-index: 2;
  pointer-events: none;
}
.project-tile--flip.is-flipped .project-tile__face--front {
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
}
.project-tile--flip.is-flipped .project-tile__face--back {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
}
.flip-card__top {
  padding: clamp(28px, 5.5vw, 44px) 18px 14px;
  display: flex;
  flex-direction: column;
  gap: 5px;
  justify-content: flex-start;
  min-height: 0;
  overflow: hidden;
}
.flip-card__title {
  font-weight: 600;
  font-size: clamp(11px, 1.05vw, 15px);
  line-height: 1.2;
  color: #4CD4D1;
}
.flip-card__meta {
  font-weight: 400;
  font-size: clamp(10px, 0.9vw, 12px);
  line-height: 1.3;
  color: #4CD4D1;
}
.flip-card__dates {
  margin-top: auto;
  padding-top: 4px;
  font-weight: 600;
  font-size: clamp(9px, 0.75vw, 11px);
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: #04141A;
}
.flip-card__bottom {
  background: #04141A;
  padding: 12px 14px 12px;
  display: flex;
  flex-direction: column;
  gap: 5px;
  position: relative;
  min-height: 0;
  overflow: hidden;
}
.flip-card__bottom--corporate {
  justify-content: flex-end;
  align-items: flex-end;
  text-align: right;
}
.flip-card__brand {
  font-weight: 600;
  font-size: clamp(11px, 0.95vw, 13px);
  color: #4CD4D1;
  line-height: 1.2;
}
.flip-card__number {
  font-weight: 400;
  font-size: clamp(9px, 0.8vw, 11px);
  color: #FFFFFF;
  line-height: 1.3;
  word-break: break-word;
}
.flip-card__fund {
  font-size: clamp(9px, 0.8vw, 11px);
  color: #FFFFFF;
  line-height: 1.3;
}
.flip-card__fund strong {
  font-weight: 600;
  color: #FFFFFF;
}
.flip-card__explore {
  align-self: flex-end;
  margin-top: auto;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 78px;
  padding: 6px 12px;
  background: #4CD4D1;
  color: #FFFFFF;
  font-family: var(--font-body);
  font-weight: 600;
  font-size: 10px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  border-radius: 2px;
  pointer-events: auto;
}
.flip-card__explore:hover {
  filter: brightness(1.05);
}
.portfolio-rail:has(.project-tile--flip.is-flipped) .rail-row__track {
  animation-play-state: paused;
}
@media (prefers-reduced-motion: reduce) {
  .rail-row__track {
    animation: none !important;
    transform: translate3d(0, 0, 0) !important;
  }
}

.filters {
  display: flex;
  flex-wrap: nowrap;
  gap: 12px 16px;
  justify-content: center;
  margin: 0 0 28px;
  align-items: center;
  max-width: 100%;
  overflow: visible;
  position: relative;
  z-index: 30;
}
.filter-btn {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 15px;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: #4CD4D1;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  position: relative;
  padding: 10px 0 8px;
  white-space: nowrap;
  flex: 0 0 auto;
  max-width: none;
  line-height: 1.2;
}
.filter-btn .chev { color: #fff; font-size: 9px; }
.filter-btn.is-special.is-on::before,
.filter-btn.is-special.is-on::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  height: 2px;
  background: #fff;
}
.filter-btn.is-special.is-on::before { top: 0; }
.filter-btn.is-special.is-on::after { bottom: 0; }
.filter-menu {
  position: absolute;
  top: calc(100% + 10px);
  left: 50%;
  transform: translateX(-50%);
  background: #0a2228;
  border: 1px solid var(--line);
  min-width: 220px;
  max-width: min(320px, 80vw);
  padding: 8px 0;
  display: none;
  z-index: 80;
  box-shadow: 0 12px 28px rgba(0, 0, 0, 0.35);
}
.filter-wrap { position: relative; flex: 0 0 auto; }
.filter-wrap.is-open .filter-menu { display: block; }
.filter-menu button {
  display: block;
  width: 100%;
  text-align: left;
  padding: 10px 16px;
  font-family: var(--font-body);
  font-size: 14px;
  font-weight: 400;
  color: #fff;
  white-space: normal;
}
.filter-menu button:hover {
  color: var(--accent);
  background: rgba(76, 212, 209, 0.08);
}
.filter-menu button.is-active {
  color: var(--accent);
}
.filter-btn__value {
  color: var(--accent);
  font-weight: 600;
  max-width: 18ch;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  display: inline-block;
  vertical-align: bottom;
}
.filter-btn--clear {
  color: rgba(255, 255, 255, 0.9);
  font-size: 15px;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  font-weight: 600;
  padding: 8px 12px;
  border: 1px solid rgba(76, 212, 209, 0.75);
  border-radius: 4px;
  background: rgba(76, 212, 209, 0.06);
}
.filter-btn--clear:hover {
  color: #fff;
  border-color: var(--accent);
  background: rgba(76, 212, 209, 0.14);
}
.filter-btn[hidden],
.filter-btn--clear[hidden] {
  display: none !important;
}
.past-filter-empty {
  text-align: center;
  color: rgba(255, 255, 255, 0.7);
  font-family: var(--font-body);
  margin: 28px 0 8px;
}
.past-card.is-filtered-out,
.past-card[hidden] {
  display: none !important;
}

.past-grid {
  display: grid;
  grid-template-columns: repeat(6, minmax(0, 1fr));
  gap: 14px;
  max-width: min(1200px, 100%);
  margin-inline: auto;
}
.past-card {
  --past-accent: #4CD4D1;
  position: relative;
  isolation: isolate;
  background: #fff;
  min-height: 0;
  border-radius: 14px;
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
  align-items: stretch;
  gap: 10px;
  padding: 14px 12px 16px 16px;
  text-align: left;
  overflow: hidden;
  border: 3px solid #4CD4D1;
  box-shadow: none;
  transition:
    transform 0.35s cubic-bezier(0.22, 1, 0.36, 1),
    box-shadow 0.35s ease,
    border-color 0.35s ease;
}
.past-card:hover {
  transform: translateY(-6px) scale(1.015);
  border-color: #4CD4D1;
  box-shadow: 0 8px 20px rgba(4, 20, 26, 0.12);
}
.past-card img {
  position: relative;
  z-index: 2;
  align-self: flex-start;
  flex: 0 0 40px;
  width: 110px;
  height: 40px;
  max-width: 100%;
  margin: 0;
  object-fit: contain;
  object-position: left center;
  opacity: 1;
  pointer-events: none;
  filter: drop-shadow(0 2px 6px rgba(4, 20, 26, 0.12));
  transition: transform 0.35s ease;
}
.past-card:hover img {
  transform: scale(1.04);
}
.past-card span {
  position: relative;
  z-index: 2;
  margin-top: 0;
  padding-top: 0;
  font-family: var(--font-body);
  font-weight: 600;
  font-size: clamp(11px, 0.85vw, 13px);
  color: var(--ink);
  line-height: 1.35;
  max-width: 100%;
  display: block;
  overflow: visible;
  hyphens: none;
  -webkit-hyphens: none;
  overflow-wrap: normal;
  word-break: normal;
}
@media (max-width: 1100px) {
  .past-grid { grid-template-columns: repeat(5, minmax(0, 1fr)); }
}
@media (max-width: 900px) {
  .past-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}
@media (max-width: 640px) {
  .past-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 420px) {
  .past-grid { grid-template-columns: 1fr; }
}

.popup[hidden] { display: none; }
.popup {
  position: fixed;
  inset: 0;
  z-index: 120;
  background: rgba(1, 11, 15, 0.88);
  display: grid;
  place-items: center;
  padding: 24px;
}
.popup__card {
  width: min(100%, 720px);
  background: var(--surface);
  overflow: hidden;
  display: grid;
  grid-template-rows: 1fr 1fr;
  min-height: 420px;
  position: relative;
}
.popup__top {
  background: #fff;
  padding: 36px 40px;
  color: var(--ink);
}
.popup__top h3 {
  margin: 0 0 12px;
  font-family: var(--font-body);
  font-weight: 600;
  font-size: 28px;
  line-height: 1.25;
  color: var(--accent);
}
.popup__top .meta {
  font-family: var(--font-body);
  font-weight: 400;
  font-size: 16px;
  color: var(--accent);
  margin: 0 0 16px;
}
.popup__top .dates {
  font-family: var(--font-body);
  font-size: 13px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  font-weight: 600;
  color: var(--ink);
  margin: 0;
}
.popup__bottom {
  background: var(--bg);
  padding: 36px 40px;
  color: var(--text);
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}
.popup__bottom h4 {
  margin: 0 0 10px;
  font-size: 24px;
  color: var(--accent);
  font-family: var(--font-body);
  font-weight: 600;
}
.popup__bottom p {
  margin: 0 0 8px;
  font-family: var(--font-body);
  font-size: 16px;
  font-weight: 400;
  color: var(--text);
}
.popup__bottom p strong {
  font-family: var(--font-body);
  font-weight: 600;
}
.popup__actions {
  display: flex;
  justify-content: flex-end;
  margin-top: 24px;
}
.btn-explore {
  background: var(--accent);
  color: var(--text);
  font-family: var(--font-body);
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  padding: 10px 18px;
  font-size: 13px;
}
.popup__close {
  position: absolute;
  top: 18px;
  right: 24px;
  font-size: 28px;
  color: var(--accent);
  z-index: 2;
}

/* ========== Connect ========== */
body[data-page="connect"] {
  --connect-rule: rgba(167, 196, 201, 0.5);
  --connect-logo: 72px;
  --connect-line-gap: 48px;
  background: var(--bg);
}
body[data-page="connect"] main {
  display: flex;
  flex-direction: column;
  flex: 1;
  min-height: calc(100vh - var(--header-h) - 72px);
  position: relative;
  z-index: 1;
}
body[data-page="connect"] .connect-hero,
body[data-page="connect"] .page-hero {
  position: relative;
  flex: 1;
  display: flex;
  flex-direction: column;
  min-height: 0;
  overflow: visible;
  padding: clamp(40px, 5vw, 64px) 0 0;
}
body[data-page="connect"] .page-hero .wrap,
body[data-page="connect"] .connect-stage {
  width: 100%;
  position: relative;
  z-index: 2;
  flex: 1;
  display: flex;
  flex-direction: column;
  min-height: 0;
}
body[data-page="connect"] .page-hero .eyebrow {
  font-size: clamp(13px, 1.1vw, 15px);
  letter-spacing: 0.16em;
  margin-bottom: 0;
  flex-shrink: 0;
}
.connect-split {
  flex: 1;
  display: grid;
  grid-template-columns: minmax(0, 1fr) var(--connect-logo) minmax(0, 1fr);
  column-gap: var(--connect-line-gap);
  width: 100%;
  min-height: 0;
  align-items: center;
  padding: clamp(32px, 6vh, 72px) 0 clamp(28px, 5vh, 48px);
}
.connect-grid__left {
  grid-column: 1;
  padding: 0;
  display: flex;
  align-items: center;
  justify-content: flex-end;
}
.connect-grid__spine {
  grid-column: 2;
  position: relative;
  align-self: stretch;
}
.connect-grid__rule {
  position: absolute;
  top: 26%;
  bottom: 10%;
  /* same x as the start of the right footer line */
  left: calc(100% + var(--connect-line-gap));
  width: 1px;
  background: var(--connect-rule);
  pointer-events: none;
}
.connect-grid__right {
  grid-column: 3;
  padding: 0;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  text-align: center;
  gap: 16px;
}
body[data-page="connect"] .connect-grid .h1,
body[data-page="connect"] .connect-title {
  font-family: var(--font-display);
  font-weight: 400;
  font-size: clamp(34px, 4.15vw, 54px);
  line-height: 1.2;
  letter-spacing: 0;
  color: #FFFFFF;
  text-align: left;
  width: max-content;
  max-width: 100%;
  margin-inline: 0;
  hyphens: none;
  overflow-wrap: normal;
  word-break: keep-all;
}
body[data-page="connect"] .connect-title {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 0;
}
body[data-page="connect"] .connect-title__line {
  display: block;
  white-space: nowrap;
}
.connect-grid__right .hand {
  font-family: "Allura", cursive;
  font-size: clamp(42px, 4.6vw, 58px);
  font-weight: 400;
  color: var(--accent);
  margin: 0;
  line-height: 1.1;
  letter-spacing: 0.02em;
  text-align: center;
}
.connect-grid__right .hand::after {
  content: "";
  display: block;
  width: 48px;
  height: 2px;
  margin: 8px auto 0;
  background: var(--accent);
}
.connect-grid__right p {
  margin: 0;
  font-family: var(--font-body);
  font-weight: 400;
  color: #FFFFFF;
  font-size: clamp(16px, 1.4vw, 19px);
  line-height: 1.5;
  max-width: 28ch;
}
.connect-grid__right .mail-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  margin-top: 6px;
  padding: 13px 22px;
  border: 1.5px solid var(--accent);
  border-radius: 10px;
  color: var(--text);
  text-decoration: none;
  font-family: var(--font-body);
  font-weight: 600;
  font-size: clamp(15px, 1.35vw, 18px);
  line-height: 1;
  background: transparent;
  transition: transform 0.2s ease, background 0.2s ease, border-color 0.2s ease;
}
.connect-grid__right .mail-btn__icon {
  flex-shrink: 0;
  color: var(--accent);
}
.connect-grid__right .mail-btn:hover {
  transform: translateY(-1px);
  background: rgba(76, 212, 209, 0.1);
}
.connect-footer-mark {
  display: grid;
  grid-template-columns: minmax(0, 1fr) var(--connect-logo) minmax(0, 1fr);
  column-gap: var(--connect-line-gap);
  align-items: center;
  width: 100%;
  flex-shrink: 0;
  min-height: var(--connect-logo);
}
.connect-footer-mark__logo {
  grid-column: 2;
  width: var(--connect-logo);
  height: auto;
  display: block;
  justify-self: center;
  position: relative;
  z-index: 1;
}
.connect-footer-mark__line {
  display: block;
  height: 1px;
  width: 100%;
}
.connect-footer-mark__line--left {
  grid-column: 1;
  background: linear-gradient(90deg, transparent 0%, var(--connect-rule) 70%);
}
.connect-footer-mark__line--right {
  grid-column: 3;
  background: linear-gradient(90deg, var(--connect-rule) 30%, transparent 100%);
}
body[data-page="connect"] .site-footer {
  position: relative;
  z-index: 0;
  margin-top: 0;
  background: transparent;
  border-top: 0;
}
body[data-page="connect"] .site-footer__simple {
  padding-top: 14px;
  padding-bottom: 28px;
  font-weight: 400;
  font-size: 14px;
  color: rgba(255, 255, 255, 0.85);
}
.watermark {
  position: absolute;
  right: -40px;
  bottom: -60px;
  width: min(420px, 55vw);
  opacity: 0.08;
  pointer-events: none;
}

.coming-soon {
  min-height: 55vh;
  display: grid;
  place-items: center;
  text-align: center;
  padding: 86px 24px var(--section-gap);
}
.coming-soon p {
  font-family: var(--font-body);
  font-size: 16px;
  font-weight: 400;
  color: var(--muted);
}

/* ========== Footer ========== */
.site-footer {
  background: var(--bg-deep);
  margin-top: var(--section-gap);
  padding: 0;
  border-top: 1px solid rgba(76, 212, 209, 0.22);
}
.site-footer__inner {
  width: 100%;
  max-width: none;
  margin-inline: auto;
  padding: 48px 120px 40px;
}
.site-footer__simple {
  text-align: center;
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 16px;
  line-height: 1.3;
  color: var(--text);
  padding: 36px 24px 40px;
  margin: 0;
}
.site-footer__top {
  display: flex;
  justify-content: space-between;
  gap: 24px;
  color: var(--footer-top);
  font-weight: 600;
  padding-bottom: 28px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
  margin-bottom: 28px;
}
.site-footer__bottom {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
  font-size: 13px;
  color: var(--footer-muted);
}
.site-footer__bottom a { color: var(--footer-link); }

@media (max-width: 1100px) {
  .brand { left: 24px; }
  .nav { left: 140px; gap: 36px; }
  .header-utils { right: 24px; }
  .clusters { grid-template-columns: repeat(4, 1fr); }
  .gov { grid-template-columns: repeat(3, 1fr); }
  .site-footer__inner { padding: 40px 32px; }
}
@media (max-width: 860px) {
  :root {
    --header-h: 76px;
    --section-gap: 48px;
    --gutter: 20px;
  }

  html, body {
    overflow-x: hidden;
  }
  body.menu-open {
    overflow: hidden;
  }

  .wrap,
  .wrap-wide,
  .wrap-page {
    padding-inline: 20px;
  }

  .h1, .h2 {
    font-size: clamp(26px, 7vw, 34px);
  }
  .lead {
    font-size: 16px;
  }
  .eyebrow {
    font-size: 13px;
    letter-spacing: 0.12em;
    margin-bottom: 16px;
  }
  .eyebrow::after {
    margin-top: 12px;
  }

  .site-header {
    height: var(--header-h);
  }
  .brand {
    left: 16px;
    top: 8px;
    width: 56px;
    height: 60px;
  }
  .brand img {
    width: 56px;
    height: 60px;
  }
  .menu-toggle {
    display: flex;
    top: 50%;
    right: 16px;
    transform: translateY(-50%);
    border-color: rgba(76, 212, 209, 0.45);
  }
  .site-header.is-open .menu-toggle__bar:nth-child(1) {
    transform: translateY(7px) rotate(45deg);
  }
  .site-header.is-open .menu-toggle__bar:nth-child(2) {
    opacity: 0;
  }
  .site-header.is-open .menu-toggle__bar:nth-child(3) {
    transform: translateY(-7px) rotate(-45deg);
  }

  .nav,
  .header-utils {
    display: none;
  }
  .site-header.is-open .nav {
    display: flex;
    flex-direction: column;
    align-items: stretch;
    position: fixed;
    top: var(--header-h);
    left: 0;
    right: 0;
    bottom: 0;
    height: auto;
    gap: 0;
    pointer-events: auto;
    background: #04141A;
    padding: 12px 24px 96px;
    border-bottom: 0;
    overflow-y: auto;
    z-index: 7;
  }
  .site-header.is-open .nav a {
    position: relative;
    left: auto !important;
    top: auto;
    display: flex;
    align-items: center;
    height: 52px;
    padding: 0;
    font-size: 14px;
    letter-spacing: 0.08em;
    border-bottom: 1px solid #12333C;
  }
  .site-header.is-open .header-utils {
    display: flex;
    position: fixed;
    top: auto;
    right: auto;
    left: 24px;
    bottom: max(24px, env(safe-area-inset-bottom));
    z-index: 8;
  }

  .page-hero { padding-top: 40px; }
  .site-footer { margin-top: 48px; }
  .watermark { display: none; }

  .cols-2,
  .services,
  .connect-split {
    grid-template-columns: 1fr;
  }
  .filters {
    flex-wrap: wrap;
    justify-content: center;
  }
  .gov {
    grid-template-columns: 1fr;
    max-width: 420px;
  }
  .gov__box {
    white-space: normal;
  }
  .clusters {
    grid-template-columns: repeat(2, 1fr);
    gap: 10px;
  }

  body[data-page="connect"] {
    --connect-logo: 56px;
    --connect-line-gap: 16px;
  }
  body[data-page="connect"] main {
    min-height: 0;
  }
  .connect-split {
    padding: 28px 0 24px;
    align-items: start;
    column-gap: 0;
    grid-template-columns: 1fr;
  }
  .connect-grid__spine { display: none; }
  .connect-grid__left,
  .connect-grid__right {
    grid-column: 1;
  }
  .connect-grid__left {
    padding: 0 0 32px;
    justify-content: center;
  }
  .connect-grid__right {
    padding-left: 0;
    align-items: center;
    text-align: center;
  }
  .connect-grid__right .hand { text-align: center; }
  .connect-grid__right .hand::after { margin-left: auto; margin-right: auto; }
  .connect-grid__right p { max-width: 36ch; }
  .connect-grid__right .mail-btn {
    max-width: 100%;
    white-space: normal;
  }
  .connect-footer-mark {
    width: min(360px, 86vw);
    margin-inline: auto;
  }
  body[data-page="connect"] .connect-title {
    max-width: 100%;
    width: 100%;
    text-align: center;
    margin-inline: auto;
    align-items: center;
    font-size: clamp(26px, 7.5vw, 36px);
  }
  body[data-page="connect"] .connect-title__line {
    white-space: normal;
  }

  body[data-page="portfolio"] .h1 br {
    display: none;
  }
  body[data-page="expertise"] .h1,
  body[data-page="portfolio"] .h1 {
    max-width: 100%;
  }

  .popup {
    padding: 16px;
    align-items: end;
  }
  .popup__card {
    min-height: 0;
    max-height: min(92vh, 720px);
    overflow: auto;
  }
}

@media (max-width: 640px) {
  .clusters {
    grid-template-columns: 1fr;
    max-width: 280px;
    margin-inline: auto;
  }
  .popup__top,
  .popup__bottom {
    padding: 24px 20px;
  }
}
