/* ═══════════════════════════════════════════════
    SOLID SECTION BACKGROUND SYSTEM
    Design-system palette scale, light to dark
    ═══════════════════════════════════════════════ */

@font-face {
  font-family: 'Syne';
  src: url('../fonts/Syne-VariableFont_wght.ttf') format('truetype');
  font-weight: 400 800;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: 'Inter';
  src: url('../fonts/Inter-VariableFont_opsz,wght.ttf') format('truetype');
  font-weight: 300 900;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: 'Inter';
  src: url('../fonts/Inter-Italic-VariableFont_opsz,wght.ttf') format('truetype');
  font-weight: 300 900;
  font-style: italic;
  font-display: swap;
}

@font-face {
  font-family: 'JetBrains Mono';
  src: url('../fonts/JetBrainsMono-VariableFont_wght.ttf') format('truetype');
  font-weight: 300 800;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: 'JetBrains Mono';
  src: url('../fonts/JetBrainsMono-Italic-VariableFont_wght.ttf') format('truetype');
  font-weight: 300 800;
  font-style: italic;
  font-display: swap;
}

html[data-lang="en"] .lang-pt {
  display: none !important;
}

html[data-lang="pt"] .lang-en {
  display: none !important;
}

:root {
  --section-hero: #f2efe9;
  --section-process: #e6ded1;
  --section-cases: #d8cbb8;
  --section-impact: #b89f82;
  --section-about: #80644a;
  --section-contact: #5d3f2e;
  --section-footer: #472211;
  --ease-organic: cubic-bezier(.22, 1, .36, 1);
  --ease-soft: cubic-bezier(.16, 1, .3, 1);
  --motion-fast: 220ms;
  --motion-mid: 420ms;
  --motion-slow: 820ms;
  --reveal-y: 14px;
  --reveal-blur: 2px;
  --section-text-dark: #2B1710;
  --section-text-muted: rgba(43, 23, 16, 0.74);
  --section-text-soft: rgba(43, 23, 16, 0.58);
  --section-text-light: #f2efe9;
  --section-text-light-muted: rgba(242, 239, 233, 0.92);
  --section-text-light-soft: rgba(242, 239, 233, 0.78);
}

@media (max-width: 767px) {
  :root {
    --reveal-y: 8px;
    --reveal-blur: 0px;
    --motion-slow: 520ms;
  }
}

body {
  background-color: var(--section-hero);
  color: var(--section-text-dark);
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

/* Content Layer */
body > * {
  position: relative;
  z-index: 1;
}

/* Section backgrounds - Solid design-system scale */
#hero {
  background: var(--section-hero);
  padding-bottom: clamp(9rem, 14vh, 12rem) !important;
}

#hero::before {
  content: '';
  position: absolute;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  opacity: 0.04;
  background-image: radial-gradient(rgba(71, 34, 17, 0.8) 1.5px, transparent 1.5px);
  background-size: 64px 64px;
  background-position: center top;
  mask-image: radial-gradient(ellipse at center, transparent 15%, black 70%);
  -webkit-mask-image: radial-gradient(ellipse at center, transparent 15%, black 70%);
}
@media (max-width: 767px) {
  #hero::before { opacity: 0.01; }
}

#process {
  background: var(--section-process);
}

#cases {
  background: var(--section-cases);
}

#impact {
  background: var(--section-impact);
}

#about {
  background: var(--section-about);
}

#contact {
  background: var(--section-contact);
}

footer {
  background: var(--section-footer) !important;
}

#hero,
#process,
#cases,
#impact,
#about,
#contact,
footer {
  position: relative;
  isolation: isolate;
}

#hero > *,
#process > *,
#cases > *,
#impact > *,
#about > *,
#contact > *,
footer > * {
  position: relative;
  z-index: 1;
}

/* ─── STANDARDIZED SECTION PADDING ─── */
.section-pad {
  padding-top: 6rem;
  padding-bottom: 6rem;
}
@media (max-width: 1023px) {
  .section-pad { padding-top: 5rem; padding-bottom: 5rem; }
}
@media (max-width: 639px) {
  .section-pad { padding-top: 4rem; padding-bottom: 4rem; }
}


::selection { background: #BE9C6E; color: #DAD5CD; }

/* ─── Global Environmental Infrastructure Animations ─── */
@keyframes env-flow { to { stroke-dashoffset: -200; } }
@keyframes env-flow-reverse { to { stroke-dashoffset: 200; } }
.env-flow { animation: env-flow 30s linear infinite; }
.env-flow-reverse { animation: env-flow-reverse 35s linear infinite; }
.env-node { animation: pulse-node 6s ease-in-out infinite; transform-origin: center; transform-box: fill-box; }

.text-balance {
  text-wrap: balance;
  overflow-wrap: break-word; /* Fallback for older browsers */
}

/* Reveal masks */
.reveal-mask { clip-path: polygon(0 0, 100% 0, 100% 100%, 0% 100%); }
.reveal-text { transform: none; will-change: transform, filter, opacity; }

.motion-item,
.motion-group,
.reveal,
.reveal-soft,
.reveal-blur,
.reveal-card,
.reveal-text {
  opacity: 1;
  transform: none;
  filter: none;
}

.motion-ready .reveal,
.motion-ready .reveal-soft,
.motion-ready .reveal-blur,
.motion-ready .reveal-card {
  opacity: 0;
  transform: translate3d(0, var(--reveal-y), 0);
  filter: blur(var(--reveal-blur));
}

.motion-ready .is-visible,
.motion-ready .reveal.is-visible,
.motion-ready .reveal-soft.is-visible,
.motion-ready .reveal-blur.is-visible,
.motion-ready .reveal-card.is-visible {
  opacity: 1;
  transform: translate3d(0, 0, 0);
  filter: blur(0);
}

/* Availability Badge Pulse */
.avail-dot-v2 {
  animation: avail-pulse-v2 2s ease-in-out infinite;
}
@keyframes avail-pulse-v2 {
  0%, 100% { opacity: 1; transform: scale(1); }
  50% { opacity: 0.6; transform: scale(1.2); }
}

/* Custom Marquee */
.marquee {
  display: flex;
  overflow: hidden;
  user-select: none;
  gap: 2rem;
  min-width: 0;
}
.marquee-content {
  display: flex;
  flex-shrink: 0;
  gap: 2rem;
  min-width: max-content;
  white-space: nowrap;
}
@keyframes client-marquee {
  from { transform: translate3d(0, 0, 0); }
  to { transform: translate3d(calc(-100% - 2rem), 0, 0); }
}

@media (hover: hover) and (pointer: fine) {
  .clients-marquee:hover .marquee-content {
    animation-play-state: paused;
  }
}

.clients-strip {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  width: 100vw;
  background: rgba(226, 218, 207, 0.85);
  overflow: hidden;
  z-index: 20;
  height: clamp(3.5rem, 6vh, 4.5rem);
  display: flex;
  align-items: center;
}

#hero > .clients-strip {
  position: absolute;
  z-index: 20;
}

.clients-strip-inner {
  display: flex;
  align-items: center;
  gap: clamp(1rem, 2vw, 2rem);
  min-width: 0;
  width: 100%;
  max-width: 1440px;
  margin: 0 auto;
  padding: 0 1.5rem;
  height: 100%;
}

.clients-label {
  flex: 0 0 auto;
  font-family: 'JetBrains Mono', monospace;
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--section-text-soft);
}

.clients-marquee {
  flex: 1 1 auto;
  width: 100%;
  font-family: 'Syne', sans-serif;
  font-size: clamp(0.95rem, 1.1vw, 1.15rem);
  font-weight: 650;
  letter-spacing: 0;
  color: #472211;
  mask-image: linear-gradient(90deg, transparent, black 8%, black 92%, transparent);
  -webkit-mask-image: linear-gradient(90deg, transparent, black 8%, black 92%, transparent);
}

.clients-marquee span {
  white-space: nowrap;
}

@media (max-width: 767px) {
  .marquee-content {
    animation-duration: 54s;
  }
}

/* Magnetic Button & Interaction */
.btn-hover-fx { transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1); }
.btn-hover-fx:hover { transform: translateY(-2px); box-shadow: 0 8px 16px rgba(139, 60, 58, 0.15); }
.btn-hover-fx:active { transform: translateY(1px) scale(0.98); }

/* Liquid Glass */
.liquid-glass {
  background: rgba(218, 213, 205, 0.65);
  backdrop-filter: blur(20px) saturate(180%);
  -webkit-backdrop-filter: blur(20px) saturate(180%);
  border-bottom: 1px solid rgba(71, 34, 17, 0.03);
}

/* Technical Blueprint Elements */
.blueprint-box {
  border: 1px solid rgba(190, 156, 110, 0.1);
  background: rgba(190, 156, 110, 0.02);
  position: relative;
  transition: all 0.3s ease;
}
.blueprint-box::before, .blueprint-box::after {
  content: '';
  position: absolute;
  width: 4px;
  height: 4px;
  border: 1px solid rgba(190, 156, 110, 0.3);
}
.blueprint-box::before { top: -1px; left: -1px; border-right: 0; border-bottom: 0; }
.blueprint-box::after { bottom: -1px; right: -1px; border-left: 0; border-top: 0; }

.blueprint-label {
  font-family: 'JetBrains Mono', monospace;
  font-size: 9px;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: rgba(190, 156, 110, 0.6);
  padding: 2px 6px;
  background: rgba(190, 156, 110, 0.05);
  border: 1px solid rgba(190, 156, 110, 0.1);
  display: inline-block;
}


/* ═══════════════════════════════════════════════
   SECTION HEADER SYSTEM — shared across editorial sections
   Pattern: kicker / title | subtitle + microcopy
   ═══════════════════════════════════════════════ */

.section-header {
  margin-bottom: 3rem;
}

.section-kicker,
.sh-kicker {
  font-family: 'JetBrains Mono', monospace;
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.3em;
  text-transform: uppercase;
  color: #BE9C6E;
  margin-bottom: 1.5rem;
  display: block;
}

.section-kicker-context,
.sh-kicker-context {
  color: rgba(71, 34, 17, 0.35);
  font-weight: 400;
  margin-right: 1rem;
}

.section-header-grid,
.sh-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 2rem;
  align-items: end;
}

@media (min-width: 1024px) {
  .section-header {
    margin-bottom: 3.25rem;
  }

  /*
    Section header contract:
    two content columns only. Visual separators are intentionally absent from
    the editorial system; never reserve a 1px grid track for missing chrome.
  */
  .section-header-grid,
  .sh-grid {
    grid-template-columns: minmax(0, 1.35fr) minmax(20rem, 0.75fr);
    column-gap: clamp(3rem, 6vw, 6rem);
    row-gap: 2rem;
  }
}

.section-header-title-col,
.sh-title-col {
  min-width: 0;
}

h2.section-header-title,
.sh-title {
  will-change: transform, filter, opacity;
  font-family: 'Syne', sans-serif;
  font-weight: 700;
  font-size: clamp(2.5rem, 4vw, 3rem);
  line-height: 0.96;
  letter-spacing: 0;
  color: #472211;
  margin: 0;
  overflow-wrap: normal;
  word-break: normal;
  hyphens: none;
}

.section-header-subtitle,
.sh-subtitle {
  font-family: 'Inter', sans-serif;
  font-size: clamp(0.9375rem, 1.1vw, 1.0625rem);
  line-height: 1.55;
  color: #5F4638;
  max-width: 520px;
  margin-left: auto;
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 1rem;
  align-items: flex-start;
  text-align: left;
}

@media (min-width: 1024px) {
  .section-header-subtitle,
  .sh-subtitle {
    align-items: flex-end;
    text-align: right;
  }
}

@media (max-width: 767px) {
  .section-header-subtitle,
  .sh-subtitle {
    max-width: 100%;
    margin-left: 0;
    align-items: flex-start;
  }
}

/* Editorial microcopy — secondary system markings for section context */
.section-microcopy {
  font-family: 'JetBrains Mono', monospace;
  font-size: clamp(0.625rem, 0.65vw, 0.75rem);
  font-weight: 500;
  line-height: 1.45;
  letter-spacing: 0.24em;
  text-transform: uppercase;
  color: #6D584A;
}

.section-microcopy--accent {
  color: #BE9C6E;
}

.section-microstats {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-start;
  gap: 0.75rem 1.5rem;
}

.section-microstats.section-microcopy {
  font-size: 0.563rem;
}

.section-microstats strong {
  color: #472211;
  font-weight: 700;
}

.section-chip-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  margin-bottom: 4rem;
  font-size: 0.563rem;
}

.section-chip {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 32px;
  padding: 0.55rem 1.1rem;
  border: 1px solid rgba(71, 34, 17, 0.2);
  border-radius: 4px;
  font-family: 'JetBrains Mono', monospace;
  font-size: inherit;
  font-weight: 600;
  letter-spacing: 0.2em;
  line-height: 1;
  text-transform: uppercase;
  color: rgba(71, 34, 17, 0.7);
  background: rgba(255, 255, 255, 0.08);
  transition: border-color 0.35s ease, color 0.35s ease, background-color 0.35s ease;
}

.section-chip:hover {
  border-color: rgba(190, 156, 110, 0.3);
  color: rgba(71, 34, 17, 0.86);
  background: rgba(255, 255, 255, 0.12);
}

.section-microflow {
  font-family: 'JetBrains Mono', monospace;
  font-size: clamp(0.625rem, 0.65vw, 0.75rem);
  font-weight: 500;
  line-height: 1.5;
  letter-spacing: 0.24em;
  text-transform: uppercase;
  color: #6D584A;
}

.section-editorial-footer {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.5rem;
  margin-top: clamp(3rem, 6vw, 5rem);
  padding-top: 1.25rem;
  border-top: 1px solid rgba(71, 34, 17, 0.12);
  font-size: 0.5rem;
}

.section-editorial-footer .section-microcopy,
.section-editorial-footer .section-microflow {
  font-size: inherit;
}

@media (min-width: 768px) {
  .section-editorial-footer {
    grid-template-columns: 1fr 1.4fr 1fr;
    align-items: start;
  }

  .section-microstats {
    justify-content: flex-end;
  }

  .section-editorial-footer .section-microflow {
    text-align: center;
  }

  .section-editorial-footer .section-microcopy:last-child {
    text-align: right;
  }
}

@media (max-width: 639px) {
  .section-chip-row {
    margin-bottom: 2.75rem;
  }

  .section-chip {
    width: 100%;
    justify-content: flex-start;
  }

  .section-microflow {
    letter-spacing: 0.16em;
    overflow-wrap: anywhere;
  }
}

/* ─── IMPACT SECTION ─── */

#impact {
  scroll-margin-top: 96px;
}


/* ─── GRID 2x2 ─── */
.impact-grid {
  display: grid;
  grid-template-columns: 1fr;
  grid-auto-rows: auto;
  gap: clamp(0.75rem, 1.5vw, 1.25rem);
  align-items: stretch;
}

@media (min-width: 768px) {
  .impact-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    grid-auto-rows: 340px;
  }
}

@media (max-width: 639px) {
  .impact-grid {
    gap: 0.75rem;
  }
}

/* ─── CARD ─── */
/* Left = context (32%), Right = evidence (68%) */
.impact-cell {
  background: #E8DED0;
  border: 1px solid rgba(68, 45, 34, 0.14);
  border-radius: 8px;
  display: grid;
  grid-template-columns: minmax(110px, 0.75fr) minmax(0, 1.85fr);
  min-height: 0;
  height: 100%;
  overflow: hidden;
  transition: border-color 0.28s ease, box-shadow 0.28s ease;
}

@media (max-width: 639px) {
  .impact-cell {
    grid-template-columns: 1fr;
    height: auto;
    min-height: 0;
  }
}

.impact-cell:hover {
  border-color: rgba(190, 156, 110, 0.35);
  transform: translateY(-2px);
}

@media (prefers-reduced-motion: reduce) {
  .impact-cell { transition: none; }
  .impact-cell:hover { transform: none; }
}

/* ─── CARD SIDES ─── */
.impact-card-side {
  padding: 1.5rem 1.35rem;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  height: 100%;
  box-sizing: border-box;
}

@media (min-width: 1024px) {
  .impact-card-side {
    padding: 1.75rem 1.5rem;
  }
}

@media (min-width: 1280px) {
  .impact-card-side {
    padding: 1.9rem 1.65rem;
  }
}

/* Left column internal split */
.impact-cell .impact-card-side:first-child {
  border-right: 1px solid rgba(26, 20, 16, 0.07);
}

@media (max-width: 639px) {
  .impact-cell .impact-card-side:first-child {
    border-right: none;
    border-bottom: 1px solid rgba(26, 20, 16, 0.07);
    height: auto;
  }
}

/* ─── CLIENT NAME ─── */
.impact-cell h3 {
  font-family: 'Syne', sans-serif;
  font-size: clamp(1.25rem, 1.4vw, 1.5rem);
  font-weight: 700;
  line-height: 1.1;
  color: #472211;
  margin: 0 0 1.75rem 0;
  letter-spacing: 0;
  flex-shrink: 0;
}

/* ─── LABEL ─── */
.impact-label {
  font-family: 'JetBrains Mono', monospace;
  font-size: 9px;
  font-weight: 700;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: #BE9C6E;
  margin-bottom: 0.5rem;
  display: block;
  flex-shrink: 0;
}

/* ─── DIMENSION TEXT ─── */
.impact-dimension {
  font-family: 'Inter', sans-serif;
  font-size: 0.9375rem;
  font-weight: 600;
  color: rgba(71, 34, 17, 0.72);
  line-height: 1.4;
  flex: 1;
}

/* ─── ICON WRAPPER ─── */
.impact-icon-wrapper {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(190, 156, 110, 0.1);
  color: #BE9C6E;
  margin-bottom: 1.25rem;
  flex-shrink: 0;
}

/* ─── EVIDENCE VALUE ─── */
/* Petrobras: ≤3 lines | Bayer/Ambev/BMG: ≤2 lines */
.impact-evidence {
   font-family: 'Syne', sans-serif;
   font-size: clamp(1.55rem, 2.1vw, 1.8rem);
   font-weight: 700;
   line-height: 1.08;
   letter-spacing: 0;
   color: #472211;
   margin-bottom: 0.75rem;
   flex-shrink: 0;
   overflow-wrap: normal;
   word-break: normal;
   hyphens: none;
   min-width: 0;
 }

/* ─── DESCRIPTION ─── */
.impact-desc {
  font-family: 'Inter', sans-serif;
  font-size: 0.875rem;
  line-height: 1.6;
  color: rgba(71, 34, 17, 0.58);
  flex: 1;
  overflow: hidden;
}

/* ─── TAG ─── */
/* Anchored to bottom of left col via margin-top: auto */
.impact-tag {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 5px 11px;
  background: rgba(190, 156, 110, 0.05);
  border: 1px solid rgba(190, 156, 110, 0.16);
  border-radius: 4px;
  font-family: 'JetBrains Mono', monospace;
  font-size: 9px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: rgba(71, 34, 17, 0.5);
  margin-top: auto;
  align-self: flex-start;
  flex-shrink: 0;
}

.impact-tag .dot {
  width: 4px;
  height: 4px;
  border-radius: 50%;
  background: #BE9C6E;
  flex-shrink: 0;
}


/* Bento Grid System */
.bento-grid {
  display: grid;
  /* Columns will be handled by Tailwind utilities in the HTML */
  grid-auto-rows: minmax(180px, auto);
  gap: 1.5rem;
}

.bento-item {
  border-radius: 24px;
  padding: 2rem;
  background: #FFFFFF;
  border: 1px solid rgba(26, 20, 16, 0.06);
  transition: all 0.5s cubic-bezier(0.23, 1, 0.32, 1);
  opacity: 1; /* Ensure visibility */
}
.bento-item:hover {
  transform: translateY(-4px) scale(1.01);
  border-color: rgba(139, 60, 58, 0.2);
  box-shadow: 0 20px 40px rgba(139, 60, 58, 0.06);
}

/* Dot Grid Texture */
.dot-grid {
  background-image: radial-gradient(rgba(190, 156, 110, 0.15) 1px, transparent 1px);
  background-size: 24px 24px;
}

/* Magnetic Element Wrapper */
.magnetic-wrap {
  display: inline-block;
  transition: transform 0.3s cubic-bezier(0.23, 1, 0.32, 1);
}

/* Beam Scan Hover Effect */
.case-card {
  position: relative;
  overflow: hidden;
  transition: transform 0.4s cubic-bezier(0.4, 0, 0.2, 1);
  will-change: transform, filter, opacity;
}

.case-card h3,
.case-card p {
  will-change: transform, filter, opacity;
}
.case-card::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(
    105deg,
    transparent 30%,
    rgba(190, 156, 110, 0.05) 45%,
    rgba(190, 156, 110, 0.1) 50%,
    rgba(190, 156, 110, 0.05) 55%,
    transparent 70%
  );
  background-size: 200% 100%;
  background-position: 200% 0;
  transition: background-position 0s;
  pointer-events: none;
  z-index: 20;
}
.case-card:hover::after {
  background-position: -200% 0;
  transition: background-position 1.2s cubic-bezier(0.4, 0, 0.2, 1);
}
.case-card:hover {
  transform: translateY(-4px);
}

.grid-pattern {
  background-image:
    linear-gradient(to right, rgba(190, 156, 110, 0.3) 1px, transparent 1px),
    linear-gradient(to bottom, rgba(190, 156, 110, 0.3) 1px, transparent 1px);
  background-size: 40px 40px;
  transform-origin: center;
}
.grid-mask {
  mask-image: radial-gradient(300px circle at var(--mouse-x, 50%) var(--mouse-y, 50%), black, transparent);
  -webkit-mask-image: radial-gradient(300px circle at var(--mouse-x, 50%) var(--mouse-y, 50%), black, transparent);
}

/* Card Hover Lift */
.card-lift { transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1); }
.card-lift:hover { transform: translateY(-8px); box-shadow: 0 12px 32px rgba(71, 34, 17, 0.08); border-color: rgba(190, 156, 110, 0.2); }

/* Focus Indicators */
:focus-visible {
  outline: 2px solid #BE9C6E !important;
  outline-offset: 4px !important;
  box-shadow: 0 0 0 4px #DAD5CD, 0 0 0 6px rgba(190, 156, 110, 0.4) !important;
}

/* Motion Sensitivity */
@media (prefers-reduced-motion: reduce) {
  *, ::before, ::after {
    animation-delay: 0ms !important;
    animation-duration: .001ms !important;
    animation-iteration-count: 1 !important;
    background-attachment: initial !important;
    scroll-behavior: auto !important;
    transition-duration: .001ms !important;
    transition-delay: 0ms !important;
  }
  .marquee-content { animation: none !important; }
  .reveal,
  .reveal-soft,
  .reveal-blur,
  .reveal-card,
  .reveal-text,
  .motion-ready .reveal,
  .motion-ready .reveal-soft,
  .motion-ready .reveal-blur,
  .motion-ready .reveal-card,
  .motion-ready .reveal-text {
    opacity: 1 !important;
    transform: none !important;
    filter: none !important;
  }
}

/* Section transitions are handled by spacing and solid surfaces alone. */

/* Dark editorial sections — About and Contact */
.editorial-dark-section {
  position: relative;
  overflow: hidden;
  padding: 6rem 1.5rem;
  background: var(--section-about);
  color: #f2efe9;
  scroll-margin-top: 96px;
}

@media (max-width: 1023px) {
  .editorial-dark-section { padding-top: 5rem; padding-bottom: 5rem; }
}
@media (max-width: 639px) {
  .editorial-dark-section { padding-top: 4rem; padding-bottom: 4rem; }
}

.contact-section {
  background: var(--section-contact);
}

.contact-section .section-header-title {
  max-width: 860px;
  font-size: clamp(2.5rem, 4vw, 3rem);
  line-height: 0.94;
  text-wrap: balance;
}

.editorial-ambient {
  position: absolute;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  overflow: hidden;
}

.editorial-ambient::after {
  content: '';
  position: absolute;
  inset: 0;
  opacity: 0.08;
  background-image:
    radial-gradient(rgba(242, 239, 233, 0.22) 0.65px, transparent 0.65px),
    linear-gradient(180deg, rgba(0, 0, 0, 0) 0%, rgba(0, 0, 0, 0.24) 100%);
  background-size: 4px 4px, 100% 100%;
}

.editorial-ambient-grid {
  position: absolute;
  inset: -10%;
  opacity: 0.08;
  background-image:
    linear-gradient(to right, rgba(190, 156, 110, 0.45) 1px, transparent 1px),
    linear-gradient(to bottom, rgba(190, 156, 110, 0.45) 1px, transparent 1px);
  background-size: 72px 72px;
  mask-image: linear-gradient(180deg, transparent 0%, black 22%, black 76%, transparent 100%);
  -webkit-mask-image: linear-gradient(180deg, transparent 0%, black 22%, black 76%, transparent 100%);
}

.editorial-ambient-lines {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  opacity: 0.18;
  color: #BE9C6E;
}

.editorial-ambient-lines path,
.editorial-ambient-lines circle {
  fill: none;
  stroke: currentColor;
  stroke-width: 0.75;
  stroke-linecap: round;
  stroke-dasharray: 3 9;
  vector-effect: non-scaling-stroke;
}

.editorial-ambient-lines circle {
  fill: currentColor;
  stroke: none;
  opacity: 0.55;
}

/* Ambient - removed fake coordinates */

.section-header--dark {
  color: #f2efe9;
}

.section-header--dark .section-kicker {
  color: #BE9C6E;
}

.section-header--dark .section-kicker-context {
  color: rgba(242, 239, 233, 0.26);
}

.section-header--dark .section-header-title {
  color: #f2efe9;
}

.section-header--dark .section-header-subtitle {
  color: rgba(242, 239, 233, 0.68);
}

.section-header--dark .section-microcopy {
  color: rgba(242, 239, 233, 0.42);
}

.section-header--dark .section-microstats strong {
  color: #f2efe9;
}

.about-narrative {
  max-width: 920px;
  margin: 0 0 clamp(4rem, 8vw, 6rem);
  display: grid;
  gap: 1.35rem;
  color: rgba(242, 239, 233, 0.76);
  font-family: 'Inter', sans-serif;
  font-size: clamp(1.05rem, 1.35vw, 1.35rem);
  line-height: 1.72;
  font-weight: 350;
}

.about-narrative p:first-child {
  max-width: 760px;
  color: #f2efe9;
  font-family: 'Syne', sans-serif;
  font-size: clamp(1.45rem, 2vw, 2rem);
  line-height: 1.18;
  letter-spacing: 0;
}

/* ─── ABOUT LAYOUT WITH PHOTO ─── */
.about-layout {
  display: grid;
  grid-template-columns: 1fr;
  gap: clamp(3rem, 6vw, 5rem);
  margin-bottom: clamp(3.5rem, 7vw, 5.5rem);
}

@media (min-width: 1024px) {
  .about-layout {
    grid-template-columns: 1fr 360px;
    align-items: start;
    gap: clamp(4rem, 7vw, 7rem);
  }
}

.about-photo-frame {
  position: relative;
  border: 1px solid rgba(242, 239, 233, 0.14);
  border-radius: 4px;
  overflow: hidden;
  background: rgba(19, 15, 12, 0.6);
  aspect-ratio: 4 / 5;
  max-width: 360px;
}

@media (max-width: 1023px) {
  .about-photo-frame {
    max-width: 260px;
    aspect-ratio: 4 / 5;
  }
}

.about-photo-frame img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center top;
  filter: grayscale(30%) contrast(1.05);
  display: block;
}

/* grain overlay */
.about-photo-frame::after {
  content: '';
  position: absolute;
  inset: 0;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 256 256' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='noise'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23noise)' opacity='0.07'/%3E%3C/svg%3E");
  background-size: 180px 180px;
  opacity: 0.35;
  mix-blend-mode: overlay;
  pointer-events: none;
  z-index: 2;
}

.about-photo-caption {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  z-index: 3;
  padding: 1.25rem 1rem 1rem;
  background: linear-gradient(to top, rgba(19,15,12,0.92) 0%, transparent 100%);
  font-family: 'Inter', sans-serif;
  font-size: 0.65rem;
  font-weight: 500;
  letter-spacing: 0.02em;
  color: rgba(242, 239, 233, 0.85);
  text-transform: uppercase;
  color: rgba(242, 239, 233, 0.56);
  line-height: 1.6;
}

/* ─── ABOUT GRID — 5 cards, responsive ─── */
.about-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 0.9rem;
}

@media (min-width: 640px) {
  .about-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (min-width: 1024px) {
  .about-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

@media (min-width: 1280px) {
  .about-grid {
    grid-template-columns: repeat(5, minmax(0, 1fr));
  }
}

.about-card,
.contact-intent-card {
  position: relative;
  min-width: 0;
  border: 1px solid rgba(255, 235, 210, 0.12);
  border-radius: 8px;
  background: #201610;
  padding: clamp(1.35rem, 2vw, 1.8rem);
  transition: border-color 0.3s ease, transform 0.3s ease;
}

.about-card:hover,
.contact-intent-card:hover {
  border-color: rgba(190, 156, 110, 0.35);
}

.about-card-index {
  display: block;
  margin-bottom: clamp(1.5rem, 3vw, 2.5rem);
  font-family: 'JetBrains Mono', monospace;
  font-size: 0.563rem;
  letter-spacing: 0.22em;
  color: rgba(190, 156, 110, 0.72);
}

.about-card h3,
.contact-intent-card h3,
.about-human-band h3 {
  margin: 0;
  font-family: 'Syne', sans-serif;
  font-size: clamp(1.25rem, 1.5vw, 1.6rem);
  line-height: 1.08;
  letter-spacing: 0;
  color: #f2efe9;
}

.about-card h3,
.contact-intent-card h3 {
  margin-bottom: 1.35rem;
}

.about-card ul,
.about-human-band ul {
  display: flex;
  flex-wrap: wrap;
  gap: 0.55rem;
  margin: 0;
  padding: 0;
  list-style: none;
}

.about-card li,
.about-human-band li {
  display: inline-flex;
  align-items: center;
  min-height: 30px;
  padding: 0.45rem 0.68rem;
  border: 1px solid rgba(242, 239, 233, 0.12);
  border-radius: 4px;
  color: rgba(242, 239, 233, 0.72);
  background: rgba(0, 0, 0, 0.1);
  font-family: 'JetBrains Mono', monospace;
  font-size: 0.625rem;
  line-height: 1.25;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.about-human-band {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.75rem;
  margin-top: clamp(2rem, 5vw, 3.5rem);
  padding: clamp(1.25rem, 2vw, 1.75rem);
  border-top: 1px solid rgba(242, 239, 233, 0.12);
  border-bottom: 1px solid rgba(242, 239, 233, 0.08);
  background: rgba(242, 239, 233, 0.018);
}

@media (min-width: 900px) {
  .about-human-band {
    grid-template-columns: minmax(220px, 0.5fr) 1.5fr;
    align-items: center;
  }

  .about-human-band ul {
    justify-content: flex-end;
  }
}

.contact-intent-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 0.9rem;
}

@media (min-width: 900px) {
  .contact-intent-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

.contact-intent-card {
  min-height: 250px;
  display: flex;
  flex-direction: column;
}

.contact-intent-card p {
  margin: auto 0 0;
  color: rgba(242, 239, 233, 0.68);
  font-family: 'Inter', sans-serif;
  font-size: 0.98rem;
  line-height: 1.65;
}

.contact-actions {
  display: grid;
  grid-template-columns: 1fr;
  gap: 0.75rem;
  margin-top: clamp(2rem, 5vw, 3.5rem);
}

@media (min-width: 520px) {
  .contact-actions {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (min-width: 1024px) {
  .contact-actions {
    grid-template-columns: repeat(5, minmax(0, 1fr));
  }
}

.contact-action {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: space-between;
  min-height: 48px;
  gap: 1rem;
  padding: 0.95rem 1rem;
  border: 1px solid rgba(242, 239, 233, 0.14);
  border-radius: 4px;
  color: #f2efe9;
  background: rgba(242, 239, 233, 0.035);
  font-family: 'JetBrains Mono', monospace;
  font-size: 0.625rem;
  font-weight: 700;
  letter-spacing: 0.18em;
  line-height: 1;
  text-transform: uppercase;
  text-decoration: none;
  transition: border-color 0.32s ease, background-color 0.32s ease, color 0.32s ease;
}

.contact-action::after {
  content: '';
  position: absolute;
  left: 1rem;
  right: 1rem;
  bottom: 0.72rem;
  height: 1px;
  background: #BE9C6E;
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.32s ease;
}

.contact-action:hover {
  border-color: rgba(190, 156, 110, 0.42);
  background: rgba(190, 156, 110, 0.09);
  color: #fffaf0;
}

.contact-action:hover::after {
  transform: scaleX(1);
}

@media (max-width: 639px) {
  .editorial-dark-section {
    padding-left: 1.25rem;
    padding-right: 1.25rem;
  }

  .section-header--dark .section-header-title {
    font-size: clamp(2.05rem, 9vw, 2.7rem);
    line-height: 1.02;
  }

  .about-narrative {
    font-size: 1rem;
  }

  .about-card li,
  .about-human-band li {
    width: 100%;
  }
}

@media (prefers-reduced-motion: reduce) {
  .about-card:hover,
  .contact-intent-card:hover {
    transform: none;
  }

  .lang-toggle,
  .lang-toggle__thumb,
  .lang-toggle__option {
    transition-duration: 1ms !important;
  }
}

/* Final minimal system pass */
#nav {
  position: fixed !important;
  transition: background 0.6s cubic-bezier(0.23, 1, 0.32, 1),
              backdrop-filter 0.6s cubic-bezier(0.23, 1, 0.32, 1),
              box-shadow 0.6s cubic-bezier(0.23, 1, 0.32, 1);
}

#nav.nav-scrolled {
  backdrop-filter: blur(24px) saturate(160%);
  -webkit-backdrop-filter: blur(24px) saturate(160%);
}

.liquid-glass {
  background: rgba(242, 236, 225, 0.92);
  border-bottom: 1px solid rgba(68, 45, 34, 0.16);
  box-shadow: 0 4px 20px rgba(45, 21, 8, 0.08);
  backdrop-filter: blur(16px) saturate(140%);
  -webkit-backdrop-filter: blur(16px) saturate(140%);
}

#nav a {
  color: #2B1710;
  font-weight: 600;
}

#nav a.font-display,
.liquid-glass .magnetic-wrap a {
  display: inline-flex !important;
  align-items: center !important;
  min-height: 44px !important;
}

#nav .nav-links a {
  color: #5F4638;
  font-weight: 500;
  position: relative;
  text-decoration: none;
  transition: color 0.26s ease, opacity 0.26s ease;
}

#nav .nav-links a::after {
  content: '';
  position: absolute;
  left: 0;
  right: 100%;
  bottom: 0;
  height: 1.5px;
  background: #BE9C6E;
  transition: right 0.28s cubic-bezier(0.22, 1, 0.36, 1);
}

#nav .nav-links a:hover::after,
#nav .nav-links a:focus-visible::after {
  right: 0;
}

#nav .nav-links a:hover,
#nav .nav-links a:focus-visible {
  color: #2B1710;
  opacity: 1;
}

#nav .nav-links a:not(:hover) {
  opacity: 0.82;
}

.lang-toggle {
  --toggle-width: 104px;
  --toggle-height: 30px;
  --toggle-pad: 3px;
  --toggle-ease: cubic-bezier(.22, 1, .36, 1);

  position: relative;
  width: var(--toggle-width);
  height: var(--toggle-height);
  padding: var(--toggle-pad);
  display: grid;
  grid-template-columns: 1fr 1fr;
  align-items: stretch;
  border-radius: 999px;
  border: 1px solid rgba(72, 46, 32, 0.16);
  background: rgba(255, 255, 255, 0.48);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.58),
    0 1px 2px rgba(64, 42, 28, 0.04);
  overflow: hidden;
  isolation: isolate;
  transition:
    background-color 260ms var(--toggle-ease),
    border-color 260ms var(--toggle-ease),
    box-shadow 260ms var(--toggle-ease);
  flex-shrink: 0;
}

.lang-toggle:hover {
  background: rgba(255, 255, 255, 0.68);
  border-color: rgba(72, 46, 32, 0.26);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.72),
    0 6px 16px rgba(64, 42, 28, 0.06);
}

.lang-toggle__thumb {
  position: absolute;
  z-index: 0;
  top: var(--toggle-pad);
  left: var(--toggle-pad);
  width: calc((100% - (var(--toggle-pad) * 2)) / 2);
  height: calc(100% - (var(--toggle-pad) * 2));
  border-radius: 999px;
  background: rgba(72, 46, 32, 0.14);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.42),
    0 1px 3px rgba(64, 42, 28, 0.08);
  transform: translate3d(0, 0, 0);
  transition:
    transform 320ms var(--toggle-ease),
    background-color 260ms var(--toggle-ease),
    box-shadow 260ms var(--toggle-ease);
  will-change: transform;
  pointer-events: none;
}

.lang-toggle[data-current-lang="en"] .lang-toggle__thumb {
  transform: translate3d(100%, 0, 0);
}

.lang-toggle:hover .lang-toggle__thumb {
  background: rgba(72, 46, 32, 0.18);
}

.lang-toggle__option {
  position: relative;
  z-index: 1;
  width: 100%;
  height: 100%;
  min-width: 0;
  padding: 0;
  border: 0;
  appearance: none;
  background: transparent;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: 'JetBrains Mono', monospace;
  font-size: 8.5px;
  font-weight: 600;
  line-height: 1;
  letter-spacing: 0.11em;
  text-transform: uppercase;
  color: rgba(72, 46, 32, 0.72);
  transition:
    color 220ms var(--toggle-ease),
    transform 220ms var(--toggle-ease);
}

.lang-toggle__option:hover {
  color: rgba(48, 29, 20, 0.86);
}

.lang-toggle__option[aria-pressed="true"],
.lang-toggle__option.active {
  color: rgba(48, 29, 20, 0.92);
}

.lang-toggle__option:active {
  transform: translateY(1px);
}

.lang-toggle__option:focus {
  outline: none;
}

.lang-toggle__option:focus-visible {
  outline: 2px solid rgba(122, 87, 55, 0.44) !important;
  outline-offset: 4px;
  border-radius: 999px;
}

.mobile-lang-toggle {
  margin-top: 0.65rem;
  margin-bottom: 0.45rem;
}

.mobile-menu-toggle {
  display: inline-flex;
  width: 2.35rem;
  height: 2.35rem;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  gap: 0.34rem;
  border: 1px solid rgba(68, 45, 34, 0.2);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.72);
  color: #2B1710;
}

.mobile-menu-toggle span {
  width: 0.95rem;
  height: 1px;
  background: currentColor;
}

.mobile-menu {
  padding: 0.25rem 1.5rem 1rem;
  background: rgba(242, 239, 233, 0.96);
  border-bottom: 1px solid rgba(68, 45, 34, 0.12);
}

.mobile-menu a {
  display: block;
  padding: 1.05rem 0;
  font-family: 'JetBrains Mono', monospace;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: #3a2418;
}

@media (min-width: 768px) {
  .mobile-menu-toggle,
  .mobile-menu {
    display: none !important;
  }
}

a:focus-visible,
button:focus-visible {
  outline: 2px solid #BE9C6E;
  outline-offset: 3px;
  border-radius: 2px;
}

#nav a:focus-visible {
  outline: none;
}

#nav a:focus-visible::after {
  right: 0;
}

.framework-card .env-layer,
#env-infrastructure,
#about .editorial-ambient,
#contact .editorial-ambient,
#about .about-human-band,
#impact > [data-parallax] {
  display: none !important;
}

/* A tipografia do H1 da hero é governada exclusivamente por hero.css
   (#hero h1.hero2__title). O override !important legado (versão portrait,
   5.5rem) foi removido por forçar a 2ª linha a quebrar numa 3ª no desktop.
   As regras responsivas de #hero h1 em media queries abaixo seguem ativas. */

#hero .sub {
  max-width: 64ch;
  color: #412312 !important;
}

#hero .eyebrow-text {
  color: rgba(45, 21, 8, 0.82);
}

.section-microcopy,
.section-microstats {
  color: rgba(45, 21, 8, 0.7);
}

.section-header-title {
  color: var(--section-text-dark);
  max-width: 980px;
}

.section-header-subtitle {
  color: var(--section-text-muted);
}

.section-kicker {
  color: #5F4638;
}

.section-kicker-context {
  color: var(--section-text-muted);
  font-weight: 400;
  margin-right: 1rem;
}

#hero,
#process,
#cases,
#impact {
  color: var(--section-text-dark);
}

#hero .eyebrow-text,
#process .section-microcopy,
#cases .section-microcopy,
#impact .section-microcopy,
#process .section-microstats,
#cases .section-microstats,
#impact .section-microstats {
  color: var(--section-text-soft);
}

#impact .section-kicker,
#impact .impact-label {
  color: #3a2416;
}

#about,
#contact,
footer {
  color: var(--section-text-light);
}

.section-chip-row,
.section-editorial-footer,
.section-microflow.mb-8 {
  display: none !important;
}

/* Legacy separator class removed */

#process .framework-card {
  background: #f0e9df !important;
  border-color: rgba(45, 21, 8, 0.12) !important;
  border-radius: 8px;
  box-shadow: 0 8px 24px rgba(45, 21, 8, 0.04);
  backdrop-filter: none !important;
  transition: border-color 0.28s ease, box-shadow 0.28s ease, background-color 0.28s ease;
}

#process .framework-card:hover {
  background: #f5eee4 !important;
  border-color: rgba(190, 156, 110, 0.35) !important;
  box-shadow: 0 12px 32px rgba(45, 21, 8, 0.06);
  transform: translateY(-4px);
}

.case-card {
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 8px !important;
}

.behavioral-svg {
  opacity: 0.14 !important;
  mix-blend-mode: screen;
}

.case-card:hover .behavioral-svg {
  opacity: 0.24 !important;
}

.impact-cell {
  grid-template-columns: minmax(120px, 0.8fr) minmax(0, 1.8fr);
  background: #efe5d8;
  border-color: rgba(45, 21, 8, 0.18);
  border-radius: 8px;
  box-shadow: 0 8px 24px rgba(45, 21, 8, 0.04);
  transition: border-color 0.26s ease, box-shadow 0.26s ease, transform 0.26s ease;
}

.impact-cell:hover {
  border-color: rgba(190, 156, 110, 0.35);
  box-shadow: 0 12px 32px rgba(45, 21, 8, 0.06);
  transform: translateY(-4px);
}

.impact-cell .impact-card-side:first-child {
  background: #e0cfba;
  border-right-color: rgba(45, 21, 8, 0.12);
}

.impact-icon-wrapper {
  display: none;
}

.impact-label {
  color: #6d431f;
}

.impact-dimension,
.impact-tag {
  color: rgba(45, 21, 8, 0.78);
}

.impact-evidence,
.impact-cell h3 {
  color: #2d1508;
}

.impact-desc {
  color: rgba(45, 21, 8, 0.76);
}

.editorial-dark-section {
  background: var(--section-about) !important;
}

.contact-section {
  background: var(--section-contact) !important;
}

.section-header--dark .section-header-subtitle,
.about-narrative,
.contact-intent-card p {
  color: var(--section-text-light-muted);
}

.section-header--dark .section-microcopy,
.section-header--dark .section-microstats {
  color: var(--section-text-light-soft);
}

.section-header--dark .section-header-title,
.section-header--dark .section-kicker,
.section-header--dark .section-kicker-context {
  color: var(--section-text-light);
}

.about-narrative {
  max-width: 860px;
}

.about-card,
.contact-intent-card {
  background: #241a13;
  border-color: rgba(255, 248, 238, 0.14);
  border-radius: 8px;
  box-shadow: 0 18px 50px rgba(0, 0, 0, 0.18);
}

.about-card:hover,
.contact-intent-card:hover {
  background: #2a1e16;
  border-color: rgba(213, 185, 139, 0.32);
}

.about-card h3,
.contact-intent-card h3 {
  color: #fff8ee;
}

.about-card li {
  width: 100%;
  min-height: auto;
  padding: 0;
  border: 0;
  background: transparent;
  color: rgba(255, 248, 238, 0.76);
  font-family: 'Inter', sans-serif;
  font-size: 0.9rem;
  letter-spacing: 0;
  line-height: 1.5;
  text-transform: none;
}

.about-card li::before {
  content: '';
  width: 4px;
  height: 4px;
  margin-right: 0.55rem;
  border-radius: 50%;
  background: #d5b98b;
  flex: 0 0 auto;
}

.contact-section .section-header-title {
   font-size: clamp(2.5rem, 4vw, 3rem);
   line-height: 1;
 }

.contact-intent-card {
  min-height: 178px;
}

.contact-intent-card p {
  margin-top: auto;
  font-size: 0.95rem;
}

.contact-action--primary {
  color: #21140c;
  background: #d5b98b;
  border-color: #d5b98b;
}

.contact-action--primary:hover {
  color: #21140c;
  background: #e4ca9d;
  border-color: #e4ca9d;
}

.contact-action--primary::after {
  background: rgba(33, 20, 12, 0.45);
}

.container {
  width: min(100% - 3rem, 1440px);
  margin-inline: auto;
}

.site-footer {
  background: #4a210f !important;
  background-image: none !important;
  color: rgba(244, 236, 226, 0.92);
  padding: clamp(4.5rem, 8vw, 7rem) 0 clamp(2rem, 4vw, 3rem);
  overflow: hidden;
}

.site-footer__inner {
  display: flex;
  flex-direction: column;
  gap: clamp(3.5rem, 6vw, 5rem);
}

.site-footer__top {
  display: grid;
  grid-template-columns: minmax(260px, 1fr) minmax(320px, 1.35fr);
  align-items: start;
  gap: clamp(2rem, 6vw, 6rem);
}

.site-footer__identity {
  display: flex;
  align-items: flex-start;
  gap: 1rem;
}

.site-footer__name {
  font-family: 'Syne', sans-serif;
  font-size: clamp(1.2rem, 1.6vw, 1.55rem);
  font-weight: 700;
  letter-spacing: 0;
  margin: 0 0 0.65rem;
  color: rgba(244, 236, 226, 0.96);
}

.site-footer__role {
  margin: 0;
  font-size: 0.95rem;
  line-height: 1.5;
  color: rgba(244, 236, 226, 0.82);
}

.site-footer__signature {
  margin: 0;
  justify-self: end;
  text-align: right;
  font-family: 'Syne', sans-serif;
  font-size: clamp(2rem, 4vw, 2rem);
  font-weight: 700;
  line-height: 0.98;
  letter-spacing: 0;
  color: rgba(244, 236, 226, 0.88);
}

.site-footer__bottom {
  border-top: 1px solid rgba(244, 236, 226, 0.14);
  padding-top: 2rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 2rem;
  font-family: 'JetBrains Mono', monospace;
  font-size: 0.68rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: rgba(244, 236, 226, 0.72);
}

.site-footer__bottom p {
  margin: 0;
}

.site-footer__toplink {
  color: rgba(244, 236, 226, 0.78);
  text-decoration: none;
  transition:
    color 240ms var(--ease-organic),
    transform 240ms var(--ease-organic);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  min-width: 44px;
  padding: 0 10px;
  margin: -10px;
}

.site-footer__toplink:hover {
  color: rgba(244, 236, 226, 1);
  transform: translateY(-2px);
}

.site-footer__toplink:focus-visible {
  outline: 2px solid rgba(244, 236, 226, 0.45);
  outline-offset: 4px;
}

@media (max-width: 768px) {
  .site-footer__top {
    grid-template-columns: 1fr;
  }

  .site-footer__signature {
    justify-self: start;
    text-align: left;
    max-width: 100%;
  }

  .site-footer__bottom {
    align-items: flex-start;
    flex-direction: column;
  }
}

body,
main,
footer:not(.site-footer) {
  background-image: none !important;
}

#hero {
  background-color: var(--section-hero) !important;
}

#process {
  background-color: var(--section-process) !important;
}

#cases {
  background-color: var(--section-cases) !important;
}

#impact {
  background-color: var(--section-impact) !important;
}

#about {
  background-color: var(--section-about) !important;
}

#contact {
  background-color: var(--section-contact) !important;
}

footer:not(.site-footer) {
  background-color: var(--section-footer) !important;
}

@media (max-width: 639px) {
  html,
  body,
  main {
    max-width: 100%;
    overflow-x: hidden;
  }

  #hero {
    align-items: flex-start;
    padding-top: 7rem !important;
    padding-bottom: 4rem !important;
  }

  #hero .grid,
  #hero .grid > div {
    min-width: 0;
    max-width: 100%;
  }

  #hero h1 {
    width: min(100%, 21rem);
    max-width: calc(100vw - 3rem);
    font-size: clamp(2.35rem, 10.6vw, 2.75rem) !important;
    line-height: 0.96 !important;
    overflow-wrap: break-word;
  }

  #hero h1 .reveal-mask,
  #hero h1 .reveal-text {
    overflow: visible !important;
    clip-path: none !important;
  }

  #hero .eyebrow-text {
    display: block;
    width: min(100%, 18rem);
    max-width: calc(100vw - 6rem);
    min-width: 0;
    font-size: 0.625rem !important;
    line-height: 1.65;
    letter-spacing: 0.18em !important;
    white-space: normal;
  }

  #hero .sub {
    width: min(100%, 21rem);
    max-width: calc(100vw - 3rem);
    overflow-wrap: break-word;
  }

  #nav {
    left: 0;
    right: 0;
    width: auto !important;
    max-width: 100vw;
  }

  .clients-strip {
    height: clamp(2.75rem, 5vh, 3.25rem);
  }

  .clients-strip-inner {
    gap: 0.75rem;
    padding: 0 1rem;
  }

  .clients-label {
    font-size: 9px;
    letter-spacing: 0.16em;
  }

  .impact-cell {
    grid-template-columns: 1fr;
  }

  .impact-cell .impact-card-side:first-child {
    border-right: 0;
    border-bottom-color: rgba(45, 21, 8, 0.12);
  }

}

/* ── Framework card hover — consistent grammar ── */
.framework-card {
  transition: transform .28s var(--ease-organic), background-color .28s ease, border-color .28s ease, box-shadow .28s ease, color .22s ease;
}
.framework-card:hover {
  border-color: rgba(190, 156, 110, 0.35) !important;
  box-shadow: 0 6px 24px -6px rgba(26, 20, 16, 0.06);
  transform: translateY(-3px);
}
.framework-card:hover .framework-card-index {
  opacity: 1;
}

/* ── Impact cell hover — same grammar ── */
.impact-cell {
  transition: transform .28s var(--ease-organic), background-color .28s ease, border-color .28s ease, box-shadow .28s ease, color .22s ease;
}
.impact-cell:hover {
  border-color: rgba(190, 156, 110, 0.35);
  box-shadow: 0 6px 24px -6px rgba(26, 20, 16, 0.06);
  transform: translateY(-3px);
}

/* ── About card hover ── */
.about-card {
  transition: transform .28s var(--ease-organic), background-color .28s ease, border-color .28s ease, box-shadow .28s ease, color .22s ease;
}
.about-card:hover {
  border-color: rgba(190, 156, 110, 0.35);
  box-shadow: 0 6px 24px -6px rgba(26, 20, 16, 0.08);
  transform: translateY(-3px);
}
.about-card:hover .about-card-index {
  color: #BE9C6E;
}

/* ── Case card hover — cinematographic but controlled ── */
.case-card img {
  transition: transform 0.6s ease-out, opacity 0.4s ease-out;
}
.case-card:hover img {
  transform: scale(1.015) !important;
  opacity: 1 !important;
}
.case-card:hover .behavioral-svg {
  opacity: 0.22 !important;
}


/* A11Y — touch target normalization */
.mobile-menu-toggle,
.mobile-menu a {
  min-width: 44px;
  min-height: 44px;
}

.mobile-menu a {
  display: flex;
  align-items: center;
}


/* A11Y — Lighthouse target-size fix */
@media (max-width: 767px) {
  .mobile-menu-toggle {
    width: 44px;
    height: 44px;
    min-width: 44px;
    min-height: 44px;
    margin-left: 0.75rem;
    flex-shrink: 0;
  }
}


/* A11Y — structural mobile target spacing */
@media (max-width: 767px) {
  #nav .max-w-\[1440px\] {
    gap: 0.75rem;
  }

  .lang-toggle {
    margin-left: auto;
    margin-right: 0.75rem;
  }

  #mobile-menu-toggle.mobile-menu-toggle {
    width: 48px;
    height: 48px;
    min-width: 48px;
    min-height: 48px;
    padding: 0;
    margin-left: 0;
    flex-shrink: 0;
    touch-action: manipulation;
  }
}


/* A11Y — residual mobile target-size spacing */
@media (max-width: 767px) {
  #nav .max-w-\[1440px\] {
    column-gap: 1.5rem;
  }

  .lang-toggle {
    margin-left: auto;
    margin-right: 1.5rem;
  }

  #mobile-menu-toggle.mobile-menu-toggle {
    position: relative;
    z-index: 20;
    width: 52px;
    height: 52px;
    min-width: 52px;
    min-height: 52px;
    padding: 0;
    margin-left: 0;
    isolation: isolate;
    flex-shrink: 0;
    touch-action: manipulation;
  }

  #mobile-menu-toggle.mobile-menu-toggle::before {
    content: "";
    position: absolute;
    inset: -6px;
    pointer-events: none;
  }
}


/* A11Y — mobile nav hit area structural fix */
@media (max-width: 767px) {
  #nav .max-w-\[1440px\] {
    display: flex;
    align-items: center;
    column-gap: 1rem;
  }

  #nav .lang-toggle {
    margin-left: auto;
    margin-right: 2rem;
    flex-shrink: 0;
  }

  #mobile-menu .mobile-lang-toggle {
    margin-left: 0;
    margin-right: 0;
  }

  #mobile-menu-toggle.mobile-menu-toggle {
    position: relative;
    z-index: 30;
    width: 56px;
    height: 56px;
    min-width: 56px;
    min-height: 56px;
    padding: 0;
    margin-left: 0;
    flex-shrink: 0;
    touch-action: manipulation;
  }
}


/* A11Y — color contrast groups */
.section-header-subtitle,
.section-header-subtitle p {
  color: rgba(43, 23, 16, 0.84);
}

.section-microcopy,
.section-microstats,
.section-microstats span {
  color: rgba(43, 23, 16, 0.86);
}

#process .section-microstats,
#cases .section-microstats,
#impact .section-microstats {
  color: rgba(43, 23, 16, 0.84);
}

.col-span-1 .font-mono,
.grid .w-10 .font-display {
  color: #5d3f2e;
}

.section-header--dark .section-header-subtitle,
.section-header--dark .section-header-subtitle p,
.section-header--dark .section-microcopy,
.section-header--dark .section-microstats,
.section-header--dark .section-microstats span {
  color: rgba(255, 248, 238, 0.86);
}

.about-narrative,
.about-narrative p,
.about-narrative p.editorial-reveal,
.contact-intent-card p {
  color: rgba(255, 248, 238, 0.84);
}

.about-card .about-card-index,
.contact-intent-card .about-card-index {
  color: #d8c1a0;
}

footer:not(.site-footer) .font-mono,
footer:not(.site-footer) a.font-mono {
  color: rgba(255, 248, 238, 0.88);
}


/* A11Y — residual color contrast selectors */
#about .about-narrative,
#about .about-narrative p,
#about .about-narrative p.editorial-reveal {
  color: rgba(255, 248, 238, 0.94);
}

.section-header-subtitle p,
.section-microstats span {
  color: rgba(43, 23, 16, 0.94);
}

.section-header--dark .section-header-subtitle p,
.section-header--dark .section-microstats span {
  color: rgba(255, 248, 238, 0.94);
}

.grid .w-10 .font-display {
  color: #472211;
}

.section-header--dark .grid .w-10 .font-display {
  color: #fff8ee;
}

/* A11Y — structural mobile target spacing */
@media (max-width: 767px) {
  #nav .max-w-\[1440px\] {
    gap: 0.75rem;
  }

  .lang-toggle {
    margin-left: auto;
    margin-right: 0.75rem;
  }

  #mobile-menu-toggle.mobile-menu-toggle {
    width: 48px;
    height: 48px;
    min-width: 48px;
    min-height: 48px;
    padding: 0;
    margin-left: 0;
    flex-shrink: 0;
    touch-action: manipulation;
  }
}


/* A11Y — residual mobile target-size spacing */
@media (max-width: 767px) {
  #nav .max-w-\[1440px\] {
    column-gap: 1.5rem;
  }

  .lang-toggle {
    margin-left: auto;
    margin-right: 1.5rem;
  }

  #mobile-menu-toggle.mobile-menu-toggle {
    position: relative;
    z-index: 20;
    width: 52px;
    height: 52px;
    min-width: 52px;
    min-height: 52px;
    padding: 0;
    margin-left: 0;
    isolation: isolate;
    flex-shrink: 0;
    touch-action: manipulation;
  }

  #mobile-menu-toggle.mobile-menu-toggle::before {
    content: "";
    position: absolute;
    inset: -6px;
    pointer-events: none;
  }
}


/* A11Y — mobile nav hit area structural fix */
@media (max-width: 767px) {
  #nav .max-w-\[1440px\] {
    display: flex;
    align-items: center;
    column-gap: 1rem;
  }

  #nav .lang-toggle {
    margin-left: auto;
    margin-right: 2rem;
    flex-shrink: 0;
  }

  #mobile-menu .mobile-lang-toggle {
    margin-left: 0;
    margin-right: 0;
  }

  #nav .lang-toggle,
  #mobile-menu .mobile-lang-toggle {
    --toggle-width: 120px;
    --toggle-height: 44px;
    --toggle-pad: 4px;
  }

  .lang-toggle__option {
    font-size: 10px;
  }

  #mobile-menu-toggle.mobile-menu-toggle {
    position: relative;
    z-index: 30;
    width: 56px;
    height: 56px;
    min-width: 56px;
    min-height: 56px;
    padding: 0;
    margin-left: 0;
    flex-shrink: 0;
    touch-action: manipulation;
  }
}


/* A11Y — color contrast groups */
.section-header-subtitle,
.section-header-subtitle p {
  color: rgba(43, 23, 16, 0.84);
}

.section-microcopy,
.section-microstats,
.section-microstats span {
  color: rgba(43, 23, 16, 0.86);
}

#process .section-microstats,
#cases .section-microstats,
#impact .section-microstats {
  color: rgba(43, 23, 16, 0.84);
}

.col-span-1 .font-mono,
.grid .w-10 .font-display {
  color: #5d3f2e;
}

.section-header--dark .section-header-subtitle,
.section-header--dark .section-header-subtitle p,
.section-header--dark .section-microcopy,
.section-header--dark .section-microstats,
.section-header--dark .section-microstats span {
  color: rgba(255, 248, 238, 0.86);
}

.about-narrative,
.about-narrative p,
.about-narrative p.editorial-reveal,
.contact-intent-card p {
  color: rgba(255, 248, 238, 0.84);
}

.about-card .about-card-index,
.contact-intent-card .about-card-index {
  color: #d8c1a0;
}

footer:not(.site-footer) .font-mono,
footer:not(.site-footer) a.font-mono {
  color: rgba(255, 248, 238, 0.88);
}


/* A11Y — residual color contrast selectors */
#about .about-narrative,
#about .about-narrative p,
#about .about-narrative p.editorial-reveal {
  color: rgba(255, 248, 238, 0.94);
}

.section-header-subtitle p,
.section-microstats span {
  color: rgba(43, 23, 16, 0.94);
}

.section-header--dark .section-header-subtitle p,
.section-header--dark .section-microstats span {
  color: rgba(255, 248, 238, 0.94);
}

.grid .w-10 .font-display {
  color: #472211;
}

.section-header--dark .grid .w-10 .font-display {
  color: #fff8ee;
}

/* ── Hero Orbit & Cards System ── */
@keyframes spin-slow { 100% { transform: rotate(360deg); } }
@keyframes pulse-node-subtle {
  0%, 100% { opacity: 0.45; transform: scale(1); }
  50% { opacity: 0.75; transform: scale(1.08); }
}

.ev-track {
  display: flex;
  width: max-content;
  animation: client-marquee 40s linear infinite;
  will-change: transform;
}

@keyframes client-marquee {
  from { transform: translate3d(0, 0, 0); }
  to { transform: translate3d(-50%, 0, 0); }
}

.ev-marquee:hover .ev-track {
  animation-play-state: paused;
}

@media (max-width: 768px) {
  .ev-track {
    animation-duration: 56s;
  }
}

@media (prefers-reduced-motion: reduce) {
  .ev-track {
    animation: none !important;
    transition: none !important;
    transform: none !important;
  }
}

.hero-cta__bg {
  position: absolute;
  inset: 0;
  background-color: rgba(158, 130, 92, 1);
  opacity: 0;
  transition: opacity 0.3s;
}

.hero-cta:hover {
  transform: translateY(-1px);
}

.hero-cta:hover .hero-cta__bg {
  opacity: 1;
}

.hero-cta__arrow {
  position: relative;
  transition: transform 0.3s;
}

.hero-cta:hover .hero-cta__arrow {
  transform: translateX(4px);
}

/* ─── AJUSTES MOBILE DE TIPOGRAFIA E CABEÇALHO/RODAPÉ ─── */
@media (max-width: 767px) {
  /* Ocultar seletor de idioma do cabeçalho móvel */
  #nav > div:not(#mobile-menu) > .lang-toggle,
  #nav > .nav__inner .lang-toggle:not(.mobile-lang-toggle) {
    display: none !important;
  }

  /* Garantir que o botão do menu se alinhe na extremidade direita do cabeçalho */
  #mobile-menu-toggle.mobile-menu-toggle {
    margin-left: auto;
  }

  /* Hero H1 e Subtítulo */
  #hero h1 {
    font-size: clamp(1.7rem, 10.6vw, 2.5rem) !important;
    margin-bottom: 2rem !important;
  }

  #hero .sub {
    font-size: 0.9rem !important;
    margin-bottom: 2rem !important;
  }

  /* Títulos de Seção e Espaçamento */
  h2.section-header-title,
  .sh-title,
  .section-header--dark,
  .contact-section .section-header-title {
    font-size: clamp(1.7rem, 4vw, 1.7rem) !important;
  }

  .section-header {
    margin-bottom: 2rem !important;
  }

  .about-narrative {
    margin: 0 !important;
  }

  /* Assinatura do Rodapé com Fallbacks de Acessibilidade/Layout */
  .site-footer__signature {
    font-size: clamp(1rem, 4vw, 2rem) !important;
    justify-self: center !important;
    justify-self: anchor-center !important;
    text-align: left !important;
  }
}

/* End of file */
