/* =========================================================
   Engenho de Ideias — sobre
   ========================================================= */
/* Page-specific tweaks for Sobre */
  .sub-nav {
    display: flex; align-items: center; justify-content: space-between;
    padding-block: 18px;
    border-bottom: 1px solid var(--line-strong);
    font-size: 12px;
    letter-spacing: 0.22em;
    text-transform: uppercase;
    color: var(--ink-soft);
  }
  .sub-nav a { display: inline-flex; align-items: center; gap: 8px; transition: color .4s cubic-bezier(0.32, 0.72, 0, 1); }
  .sub-nav a:hover { color: var(--orange); }

  .sobre-hero {
    padding-top: clamp(48px, 8vw, 100px);
    padding-bottom: clamp(64px, 9vw, 120px);
  }
  .sobre-hero h1 {
    font-family: var(--serif);
    font-weight: 300;
    font-size: clamp(34px, 5vw, 76px);
    line-height: 0.98;
    letter-spacing: -0.035em;
    margin: clamp(24px, 4vw, 40px) 0 0;
    text-wrap: balance;
    max-width: 22ch;
  }
  .sobre-hero h1 em {
    color: var(--orange);
    font-style: italic;
    font-weight: 300;
  }

  /* Narrative — long-form intro block (DARK + video bg) */
  .narrative {
    position: relative;
    padding-block: clamp(96px, 12vw, 160px);
    background: var(--ink);
    color: var(--paper);
    overflow: hidden;
    isolation: isolate;
  }
  .narrative .bg-video {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    z-index: -2;
    pointer-events: none;
  }
  .narrative .bg-video video,
  .narrative .bg-video img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
    opacity: 0.38;
    filter: grayscale(15%) contrast(1.05) brightness(0.85);
  }
  /* Vignette + bottom-up dim for legibility */
  .narrative::before {
    content: "";
    position: absolute;
    inset: 0;
    z-index: -1;
    background:
      radial-gradient(120% 80% at 70% 30%, transparent 0%, rgba(17,17,19,0.55) 60%, rgba(17,17,19,0.9) 100%),
      linear-gradient(180deg, rgba(17,17,19,0.6) 0%, rgba(17,17,19,0.3) 35%, rgba(17,17,19,0.7) 100%);
    pointer-events: none;
  }
  /* Marker tag on the video */
  .narrative .video-tag {
    position: absolute;
    top: clamp(20px, 3vw, 36px);
    right: clamp(20px, 3vw, 36px);
    z-index: 2;
    display: inline-flex; align-items: center; gap: 10px;
    padding: 8px 14px;
    border-radius: 999px;
    background: #ffffff14;
    backdrop-filter: blur(8px);
    border: 1px solid #ffffff22;
    font-family: var(--sans);
    font-size: 10px;
    letter-spacing: 0.22em;
    text-transform: uppercase;
    color: var(--gray-3);
  }
  .narrative .video-tag i {
    width: 6px; height: 6px; border-radius: 50%; background: var(--orange);
    animation: pulse 1.8s ease-in-out infinite;
  }
  @keyframes pulse {
    0%, 100% { opacity: 1; transform: scale(1); }
    50% { opacity: .4; transform: scale(.8); }
  }

  .narrative-grid {
    display: grid;
    grid-template-columns: minmax(0, 4fr) minmax(0, 7fr);
    gap: clamp(28px, 5vw, 80px);
    align-items: start;
    position: relative;
  }
  .narrative-grid aside { /* aligned to top with the content column */ }
  .narrative-grid .stamp {
    font-family: var(--serif);
    font-weight: 300;
    font-size: clamp(28px, 3.6vw, 56px);
    line-height: 1;
    letter-spacing: -0.025em;
    color: #fff;
  }
  .narrative-grid .stamp em { color: var(--orange); font-style: italic; font-weight: 300; }
  .narrative-grid .eyebrow { color: var(--gray-3); }
  .narrative-grid .eyebrow::before { background: var(--orange); }

  .narrative-grid p {
    font-family: var(--sans);
    font-size: clamp(16px, 1.25vw, 19px);
    line-height: 1.55;
    color: var(--gray-4);
    margin: 0 0 24px;
    max-width: 56ch;
  }
  .narrative-grid p:last-child { margin-bottom: 0; }
  .narrative-grid p.lead {
    font-family: var(--serif);
    font-weight: 300;
    font-size: clamp(24px, 2.6vw, 38px);
    line-height: 1.15;
    letter-spacing: -0.018em;
    color: #fff;
    text-wrap: balance;
    margin-bottom: 36px;
    max-width: 28ch;
  }
  .narrative-grid p.muted { color: var(--gray-2); }
  .narrative-grid p strong { font-weight: 500; color: #fff; }

  /* Quem somos */
  .who {
    padding-block: clamp(80px, 10vw, 140px);
    background: var(--paper-2);
  }
  .who-grid {
    display: grid;
    grid-template-columns: minmax(0, 5fr) minmax(0, 6fr);
    gap: clamp(28px, 5vw, 80px);
    align-items: start;
  }
  .who h2 {
    font-family: var(--serif);
    font-weight: 300;
    font-size: clamp(36px, 5vw, 76px);
    line-height: 1;
    letter-spacing: -0.03em;
    margin: 16px 0 0;
    max-width: 12ch;
  }
  .who h2 em { color: var(--orange); font-style: italic; font-weight: 300; }
  .who p {
    font-size: clamp(16px, 1.15vw, 18px);
    line-height: 1.6;
    color: var(--ink-soft);
    margin: 0 0 22px;
    max-width: 52ch;
  }
  .who p:last-child { margin-bottom: 0; }
  .who .pull {
    border-top: 1px solid var(--line-strong);
    padding-top: 26px;
    margin-top: 36px;
  }
  .who .pull q {
    font-family: var(--serif);
    font-weight: 300;
    font-size: clamp(26px, 2.8vw, 42px);
    line-height: 1.08;
    letter-spacing: -0.022em;
    color: var(--ink);
    quotes: none;
    display: block;
  }
  .who .pull q::before, .who .pull q::after { content: none; }
  .who .pull q em {
    color: var(--orange);
    font-style: italic;
    font-weight: 300;
  }

  /* Reach — segments served */
  .reach {
    padding-block: clamp(64px, 8vw, 100px);
  }
  .reach-head {
    display: flex; justify-content: space-between; align-items: end;
    gap: 24px;
    margin-bottom: 48px;
  }
  .reach-head h3 {
    font-family: var(--serif);
    font-weight: 300;
    font-size: clamp(26px, 2.6vw, 40px);
    line-height: 1.05;
    letter-spacing: -0.02em;
    max-width: 18ch;
  }
  .reach-list {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
    gap: 0;
    padding: 0;
    margin: 0;
    list-style: none;
    border-top: 1px solid var(--line-strong);
    border-left: 1px solid var(--line-strong);
  }
  .reach-list li {
    list-style: none;
    border-right: 1px solid var(--line-strong);
    border-bottom: 1px solid var(--line-strong);
    padding: 24px 22px 28px;
    min-height: 160px;
    display: flex; flex-direction: column; justify-content: flex-start;
    gap: 14px;
    transition: background .5s cubic-bezier(0.32, 0.72, 0, 1);
  }
  .reach-list li:hover { background: var(--paper-2); }
  .reach-list li:hover .ix { color: var(--orange); }
  .reach-list .ix {
    font-family: var(--sans);
    font-feature-settings: "tnum";
    font-size: 12px;
    letter-spacing: 0.22em;
    color: var(--ink-soft);
    transition: color .35s cubic-bezier(0.32, 0.72, 0, 1);
  }
  .reach-list .label {
    font-family: var(--serif);
    font-weight: 300;
    font-size: clamp(20px, 1.6vw, 24px);
    line-height: 1.1;
    letter-spacing: -0.012em;
    color: var(--ink);
  }

  /* Pillars — Propósito / Missão / Visão */
  .pillars {
    background: var(--ink);
    color: var(--paper);
    padding-block: clamp(96px, 12vw, 160px);
  }
  .pillars-head {
    margin-bottom: clamp(48px, 7vw, 88px);
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(0, 2.2fr);
    gap: clamp(24px, 4vw, 64px);
    align-items: end;
  }
  .pillars-head .eyebrow { color: var(--leaf); }
  .pillars-head .eyebrow::before { background: var(--orange); }
  .pillars-head h2 {
    font-family: var(--serif);
    font-weight: 300;
    font-size: clamp(36px, 5vw, 80px);
    line-height: 0.98;
    letter-spacing: -0.03em;
    color: #fff;
    max-width: 16ch;
  }
  .pillars-head h2 em { color: var(--orange); font-style: italic; font-weight: 300; }

  .pillars-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 0;
    border-top: 1px solid #ffffff1a;
  }
  .pillar {
    padding: 36px 28px 40px;
    border-right: 1px solid #ffffff1a;
    display: flex; flex-direction: column; gap: 22px;
    min-height: 340px;
    position: relative;
    transition: background .5s cubic-bezier(0.32, 0.72, 0, 1);
  }
  .pillar:last-child { border-right: 0; }
  .pillar:hover { background: #ffffff05; }
  .pillar .ix {
    font-family: var(--serif);
    font-weight: 300;
    font-size: clamp(48px, 5vw, 72px);
    line-height: 1;
    letter-spacing: -0.04em;
    color: var(--orange);
  }
  .pillar h3 {
    font-family: var(--sans);
    font-weight: 500;
    font-size: 12px;
    letter-spacing: 0.24em;
    text-transform: uppercase;
    color: var(--leaf);
    margin: 0;
  }
  .pillar p {
    font-family: var(--serif);
    font-weight: 300;
    font-size: clamp(20px, 1.7vw, 26px);
    line-height: 1.2;
    letter-spacing: -0.012em;
    color: #fff;
    margin: 0;
    text-wrap: balance;
  }
  .pillar p em { color: var(--orange); font-style: italic; font-weight: 300; }

  /* Principles + Values — editorial word grids */
  .creed {
    padding-block: clamp(96px, 12vw, 160px);
  }
  .creed-block + .creed-block { margin-top: clamp(64px, 8vw, 110px); }
  .creed-head {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(0, 2.6fr);
    gap: clamp(24px, 4vw, 64px);
    margin-bottom: clamp(28px, 4vw, 48px);
    align-items: baseline;
  }
  .creed-head h2 {
    font-family: var(--serif);
    font-weight: 300;
    font-size: clamp(28px, 3.4vw, 56px);
    letter-spacing: -0.025em;
    line-height: 1;
  }
  .creed-head .desc {
    font-size: clamp(16px, 1.15vw, 18px);
    color: var(--ink-soft);
    line-height: 1.55;
    max-width: 52ch;
    margin: 0;
  }
  /* Principles + Values — editorial typographic rows */
  .creed-words {
    list-style: none; padding: 0; margin: 0;
    border-top: 1px solid var(--line-strong);
  }
  .creed-words li {
    border-bottom: 1px solid var(--line-strong);
    padding: clamp(20px, 2.2vw, 32px) 0;
    display: grid;
    grid-template-columns: 80px minmax(0, 1fr) auto;
    align-items: center;
    gap: clamp(16px, 3vw, 40px);
    transition: padding .6s cubic-bezier(0.16, 1.08, 0.32, 1), color .5s cubic-bezier(0.32, 0.72, 0, 1);
    cursor: default;
    color: var(--ink);
  }
  .creed-words li:hover { padding-left: 18px; color: var(--orange); }
  .creed-words li:hover .num { color: var(--orange); }
  .creed-words li:hover .dash { background: var(--orange); transform: scaleX(1.4); }
  .creed-words li > span:nth-child(2) {
    font-family: var(--serif);
    font-weight: 300;
    font-size: clamp(34px, 5.4vw, 88px);
    line-height: 1;
    letter-spacing: -0.03em;
    min-width: 0;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: clip;
  }
  .creed-words .num {
    font-family: var(--sans);
    font-feature-settings: "tnum";
    font-weight: 500;
    font-size: 12px;
    letter-spacing: 0.24em;
    color: var(--ink-soft);
    transition: color .35s cubic-bezier(0.32, 0.72, 0, 1);
  }
  .creed-words .dash {
    display: block;
    width: clamp(24px, 4vw, 48px);
    height: 1px;
    background: var(--ink-soft);
    transform-origin: right center;
    transition: background .35s cubic-bezier(0.32, 0.72, 0, 1), transform .55s cubic-bezier(0.16, 1.08, 0.32, 1);
    justify-self: end;
  }

  /* Valores: two columns to keep page compact */
  .creed-words.cols-8 {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 0 clamp(40px, 6vw, 100px);
    border-top: 1px solid var(--line-strong);
  }
  .creed-words.cols-8 li {
    border-bottom: 1px solid var(--line-strong);
    grid-template-columns: 60px minmax(0, 1fr) auto;
  }
  .creed-words.cols-8 li > span:nth-child(2) {
    font-size: clamp(24px, 3vw, 44px);
    letter-spacing: -0.025em;
  }

  /* Closing */
  .close-cta {
    padding-block: clamp(96px, 13vw, 180px);
    text-align: left;
    border-top: 1px solid var(--line-strong);
  }
  .close-cta h2 {
    font-family: var(--serif);
    font-weight: 300;
    font-size: clamp(36px, 5.4vw, 92px);
    line-height: 0.95;
    letter-spacing: -0.032em;
    max-width: 18ch;
    margin: 0 0 32px;
    text-wrap: balance;
  }
  .close-cta h2 em { color: var(--orange); font-style: italic; font-weight: 300; }
  .close-cta .actions {
    display: flex; gap: 14px; flex-wrap: wrap;
    margin-top: 16px;
  }

  /* =========================================================
     SOBRE — Tema escuro (all black)
     ========================================================= */
  body.theme-dark { background: #000; color: var(--paper); }

  /* Nav */
  body.theme-dark .nav {
    background: color-mix(in oklab, #000 86%, transparent);
    border-bottom-color: transparent;
  }
  body.theme-dark .nav.is-scrolled {
    background: color-mix(in oklab, #000 96%, transparent);
    border-bottom-color: #ffffff1f;
  }
  body.theme-dark .brand img { filter: invert(1) brightness(1.05); }
  body.theme-dark .menu a { color: var(--paper); }
  body.theme-dark .nav-cta { background: var(--paper); color: var(--ink); }
  body.theme-dark .nav-cta:hover { background: var(--orange); color: #fff; }
  body.theme-dark .menu-toggle { border-color: #ffffff28; color: var(--paper); }
  body.theme-dark .menu-toggle:hover { background: var(--paper); color: var(--ink); border-color: var(--paper); }

  /* Tipografia geral */
  body.theme-dark h1,
  body.theme-dark h2,
  body.theme-dark h3,
  body.theme-dark h4 { color: var(--paper); }
  body.theme-dark .eyebrow { color: var(--leaf); }
  body.theme-dark .section-index { color: var(--leaf); }
  body.theme-dark .btn-ghost { color: var(--paper); border-color: #ffffff33; }
  body.theme-dark .btn-ghost:hover { background: var(--paper); color: var(--ink); border-color: var(--paper); }

  /* Sub-nav */
  body.theme-dark .sub-nav {
    border-bottom-color: #ffffff1f;
    color: var(--leaf);
  }

  /* Quem somos */
  body.theme-dark .who { background: #050506; }
  body.theme-dark .who p { color: var(--gray-2); }
  body.theme-dark .who p strong { color: var(--paper); }
  body.theme-dark .who .pull { border-top-color: #ffffff1f; }
  body.theme-dark .who .pull q { color: var(--paper); }

  /* Reach — segmentos */
  body.theme-dark .reach { background: #000; }
  body.theme-dark .reach-list {
    border-top-color: #ffffff1f;
    border-left-color: #ffffff1f;
  }
  body.theme-dark .reach-list li {
    border-right-color: #ffffff1f;
    border-bottom-color: #ffffff1f;
  }
  body.theme-dark .reach-list li:hover { background: #0a0a0c; }
  body.theme-dark .reach-list .ix { color: var(--leaf); }
  body.theme-dark .reach-list .label { color: var(--paper); }

  /* Pilares — fundo branco (invertido em relação ao resto da sobre) */
  body.theme-dark .pillars { background: #ffffff; color: var(--ink); }
  body.theme-dark .pillars .eyebrow { color: var(--ink-soft); }
  body.theme-dark .pillars-head h2 { color: var(--ink); }
  body.theme-dark .pillars-grid { border-top-color: var(--line-strong); }
  body.theme-dark .pillar {
    border-right-color: var(--line-strong);
  }
  body.theme-dark .pillar:hover { background: var(--paper-2); }
  body.theme-dark .pillar h3 { color: var(--ink-soft); }
  body.theme-dark .pillar p { color: var(--ink); }
  @media (max-width: 960px) {
    body.theme-dark .pillar { border-bottom-color: var(--line-strong); }
  }

  /* Princípios + Valores */
  body.theme-dark .creed { background: #1a1a1d; }
  body.theme-dark .creed-head .desc { color: var(--gray-2); }
  body.theme-dark .creed-words { border-top-color: #ffffff1f; }
  body.theme-dark .creed-words li {
    border-bottom-color: #ffffff1f;
    color: var(--paper);
  }
  body.theme-dark .creed-words.cols-8 { border-top-color: #ffffff1f; }
  body.theme-dark .creed-words.cols-8 li { border-bottom-color: #ffffff1f; }
  body.theme-dark .creed-words .num { color: var(--leaf); }
  body.theme-dark .creed-words .dash { background: var(--leaf); }

  /* Fechamento */
  body.theme-dark .close-cta { border-top-color: #ffffff1f; }

  @media (max-width: 960px) {
    .narrative-grid,
    .who-grid,
    .pillars-head,
    .creed-head { grid-template-columns: 1fr; }
    .narrative-grid aside { position: static; }
    .pillars-grid { grid-template-columns: 1fr; }
    .pillar { border-right: 0; border-bottom: 1px solid #ffffff1a; min-height: 0; }
    .pillar:last-child { border-bottom: 0; }
    .creed-words.cols-4, .creed-words.cols-8 { grid-template-columns: 1fr; }
    .creed-words.cols-8 li > span:nth-child(2) { font-size: clamp(22px, 5vw, 32px); }
  }
  @media (max-width: 540px) {
    .creed-words li { grid-template-columns: 44px minmax(0, 1fr) auto; gap: 14px; }
  }
