  :root{
    --bg:#1a1a1a;
    --surface:#232323;
    --surface-2:#2b2825;
    --navy:#12213a;
    --gold:#c9a96e;
    --gold-light:#d4b483;
    --gold-dim: rgba(201,169,110,0.35);
    --ivory:#f6f3ec;
    --ivory-dim: rgba(246,243,236,0.68);
    --ivory-faint: rgba(246,243,236,0.42);
    --serif: Georgia, 'Iowan Old Style', 'Times New Roman', serif;
    --sans: 'Be Vietnam Pro', 'Inter', -apple-system, sans-serif;
    --eyebrow: 'Inter', var(--sans);
    --ease: cubic-bezier(.22,.61,.36,1);
  }
  *{margin:0;padding:0;box-sizing:border-box;}
  html{scroll-behavior:smooth;}
  body{
    background:var(--bg);
    color:var(--ivory);
    font-family:var(--sans);
    font-weight:400;
    line-height:1.6;
    overflow-x:hidden;
  }
  ::selection{background:var(--gold); color:#1a1a1a;}
  a{color:inherit; text-decoration:none;}
  img{display:block; max-width:100%;}

  /* ---------- LANGUAGE TOGGLE (pure CSS, no JS required) ---------- */
  .lang-check{ display:none; }
  .lang-en{ display:none; }
  .eyebrow.lang-en{ display:none; }
  .comp-tag.lang-en{ display:none; }
  #lang-check:checked ~ #page .lang-pt{ display:none; }
  #lang-check:checked ~ #page h1.lang-en,
  #lang-check:checked ~ #page h2.lang-en,
  #lang-check:checked ~ #page h3.lang-en,
  #lang-check:checked ~ #page h4.lang-en,
  #lang-check:checked ~ #page p.lang-en,
  #lang-check:checked ~ #page div.lang-en{ display:block; }
  #lang-check:checked ~ #page span.lang-en,
  #lang-check:checked ~ #page a.lang-en{ display:inline; }
  #lang-check:checked ~ #page li.lang-en{ display:list-item; }
  #lang-check:checked ~ #page .eyebrow.lang-en{ display:flex !important; }
  #lang-check:checked ~ #page span.comp-tag.lang-en{ display:block !important; }
  .lang-switch{
    cursor:pointer; display:flex; align-items:center; gap:5px;
    font-size:11px; letter-spacing:.1em; color:var(--ivory-faint); user-select:none;
  }
  .lang-switch .lang-opt{ transition:color .3s; }
  .lang-switch .lang-pt-label{ color:var(--gold); }
  .lang-switch .lang-en-label{ color:var(--ivory-faint); }
  #lang-check:checked ~ #page .lang-switch .lang-pt-label{ color:var(--ivory-faint); }
  #lang-check:checked ~ #page .lang-switch .lang-en-label{ color:var(--gold); }

  .container{
    width:100%;
    max-width:1240px;
    margin:0 auto;
    padding:0 40px;
  }
  @media(max-width:768px){ .container{padding:0 24px;} }

  h1,h2,h3{ font-family:var(--serif); font-weight:400; letter-spacing:.005em; }

  .eyebrow{
    font-family:var(--eyebrow);
    font-size:12.5px;
    letter-spacing:.22em;
    text-transform:uppercase;
    color:var(--gold);
    display:flex;
    align-items:center;
    gap:12px;
    margin-bottom:22px;
    font-weight:600;
  }
  .eyebrow::before{
    content:'';
    width:26px; height:1px;
    background:var(--gold);
    display:inline-block;
  }

  /* decorative background/overlay layers must never intercept clicks/taps */
  .bg, .scrim{ pointer-events:none; }

  /* ---------- NAV ---------- */
  #nav{
    position:fixed; top:0; left:0; right:0; z-index:1000;
    display:flex; align-items:center; justify-content:space-between;
    padding:20px 40px;
    transition:background .4s var(--ease), padding .4s var(--ease), border-color .4s var(--ease);
    border-bottom:1px solid transparent;
  }
  #nav.scrolled{
    background:rgba(20,20,20,0.86);
    backdrop-filter:blur(14px);
    -webkit-backdrop-filter:blur(14px);
    padding:13px 40px;
    border-bottom:1px solid var(--gold-dim);
  }
  #nav .logo-img{ height:36px; width:auto; transition:height .4s var(--ease), opacity .4s var(--ease); display:block; opacity:0; pointer-events:none; }
  #nav.scrolled .logo-img{ height:28px; opacity:1; pointer-events:auto; }
  #nav ul{
    list-style:none; display:flex; gap:38px;
  }
  #nav ul a{
    font-size:12.5px; letter-spacing:.12em; text-transform:uppercase;
    color:var(--ivory-dim); font-weight:500;
    position:relative; padding-bottom:4px;
    transition:color .3s;
  }
  #nav ul a::after{
    content:''; position:absolute; left:0; bottom:0; height:1px; width:0;
    background:var(--gold); transition:width .35s var(--ease);
  }
  #nav ul a:hover, #nav ul a.active{ color:var(--ivory); }
  #nav ul a:hover::after, #nav ul a.active::after{ width:100%; }
  #nav-toggle{ display:none; }
  .nav-check{ display:none; }

  @media(max-width:900px){
    #nav ul{
      position:fixed; top:0; right:0; height:100vh; width:78%; max-width:340px;
      background:#161616; flex-direction:column; justify-content:center;
      gap:30px; padding:40px; transform:translateX(100%);
      transition:transform .5s var(--ease);
      border-left:1px solid var(--gold-dim);
    }
    .nav-check:checked ~ #nav-list{ transform:translateX(0); }
    #nav-toggle{
      display:flex; flex-direction:column; gap:5px; z-index:1001;
      background:none; border:none; cursor:pointer; padding:8px;
    }
    #nav-toggle span{ width:22px; height:1px; background:var(--ivory); transition:.3s; pointer-events:none; }
    .nav-check:checked ~ #nav-toggle span:nth-child(1){ transform:translateY(6px) rotate(45deg); }
    .nav-check:checked ~ #nav-toggle span:nth-child(2){ opacity:0; }
    .nav-check:checked ~ #nav-toggle span:nth-child(3){ transform:translateY(-6px) rotate(-45deg); }
  }

  /* ---------- HERO ---------- */
  #hero{
    position:relative; height:100vh; min-height:640px;
    display:flex; flex-direction:column; align-items:center; justify-content:center;
    text-align:center; overflow:hidden;
  }
  #hero .bg{
    position:absolute; inset:0;
    background-size:cover; background-position:center 65%;
    transform:scale(1.08);
    animation:heroZoom 18s ease-out forwards;
  }
  @keyframes heroZoom{ to{ transform:scale(1); } }
  #hero .scrim{
    position:absolute; inset:0;
    background:
      linear-gradient(180deg, rgba(15,15,15,.55) 0%, rgba(18,17,15,.45) 40%, rgba(15,15,15,.88) 100%);
  }
  #hero .content{ position:relative; z-index:2; padding:0 24px; max-width:880px; }
  #hero .logo-mark{ width:min(360px, 62vw); height:auto; margin:0 auto 46px; opacity:0; animation:fadeUp 1s var(--ease) .2s forwards; }
  #hero h1{
    font-size:clamp(28px, 4.1vw, 50px);
    color:var(--ivory);
    line-height:1.28;
    font-weight:400;
    opacity:0; animation:fadeUp 1s var(--ease) .45s forwards;
  }
  #hero .credit{
    position:absolute; left:24px; bottom:22px; z-index:2;
    font-family:var(--eyebrow); font-size:8.5px; letter-spacing:.06em;
    color:var(--ivory-faint); opacity:0; animation:fadeUp 1s var(--ease) 1.2s forwards;
  }
  @keyframes fadeUp{ from{ opacity:0; transform:translateY(22px);} to{opacity:1; transform:translateY(0);} }
  #hero .scroll-cue{
    position:absolute; bottom:36px; left:50%; transform:translateX(-50%);
    z-index:2; display:flex; flex-direction:column; align-items:center; gap:10px;
    opacity:0; animation:fadeUp 1s var(--ease) 1.1s forwards;
  }
  #hero .scroll-cue .line{ width:1px; height:40px; background:linear-gradient(var(--gold), transparent); animation:scrollLine 2.2s ease-in-out infinite; }
  @keyframes scrollLine{ 0%{transform:scaleY(0); transform-origin:top;} 50%{transform:scaleY(1); transform-origin:top;} 51%{transform-origin:bottom;} 100%{transform:scaleY(0); transform-origin:bottom;} }
  #hero .scroll-cue span{ font-size:10.5px; letter-spacing:.2em; text-transform:uppercase; color:var(--ivory-faint); }

  /* ---------- reveal on scroll ---------- */
  .reveal{ opacity:1; transform:none; transition:opacity .9s var(--ease), transform .9s var(--ease); }
  .reveal.pre{ opacity:0; transform:translateY(36px); }
  .reveal.pre.in{ opacity:1; transform:translateY(0); }
  .reveal-delay-1.in{ transition-delay:.12s; }
  .reveal-delay-2.in{ transition-delay:.24s; }

  /* ---------- QUEM SOMOS ---------- */
  #quem-somos{ background:var(--bg); padding:150px 0; position:relative; }
  .split{
    display:grid; grid-template-columns:1fr 1fr; gap:80px; align-items:center;
  }
  .split.reverse .img-col{ order:2; }
  .split .text-col p{
    font-size:17px; font-family:var(--sans); color:var(--ivory-dim);
    line-height:1.75; margin-bottom:20px; font-style:normal; font-weight:400;
  }
  .split .text-col p:first-of-type{ color:var(--ivory); font-size:19px; font-weight:500; line-height:1.6; }
  .split .text-col p.lang-en:nth-of-type(2){ color:var(--ivory); font-size:19px; font-weight:500; line-height:1.6; }
  .img-frame{ position:relative; border-radius:2px; overflow:hidden; aspect-ratio:4/5; max-width:420px; margin-left:auto; box-shadow:0 24px 50px -20px rgba(0,0,0,.5); }
  .img-frame img{ width:100%; height:100%; object-fit:cover; transition:transform 1.2s var(--ease); }
  .img-frame:hover img{ transform:scale(1.045); }
  .img-frame::after{
    content:''; position:absolute; inset:0;
    box-shadow:inset 0 0 0 1px var(--gold-dim);
    pointer-events:none;
  }
  @media(max-width:860px){
    .split{ grid-template-columns:1fr; gap:40px; }
    .split.reverse .img-col{ order:0; }
    .img-frame{ aspect-ratio:16/10; max-width:100%; margin-left:0; }
  }

  /* ---------- 5 COMPETENCIAS INTRO ---------- */
  #competencias{ background:var(--surface); padding:150px 0 100px; }
  .comp-intro{ text-align:center; max-width:760px; margin:0 auto 70px; }
  .comp-intro h2{ font-size:clamp(30px,3.6vw,46px); color:var(--ivory); margin-bottom:20px; }
  .comp-intro .lead{ font-size:19px; font-style:italic; color:var(--gold-light); font-family:var(--serif); }
  .comp-hero-img{
    max-width:980px; margin:0 auto 56px; border-radius:3px; overflow:hidden;
    aspect-ratio:2.4878; background:linear-gradient(135deg,#3a332b,#211d18);
    box-shadow:0 24px 50px -20px rgba(0,0,0,.5); display:flex; align-items:center; justify-content:center;
    border:1px solid var(--gold-dim);
  }
  .comp-hero-img img{ width:100%; height:100%; object-fit:cover; object-position:center center; display:block; }

  .comp-nav{
    display:flex; flex-wrap:wrap; justify-content:center; gap:14px; margin-bottom:26px;
  }
  .comp-pill{
    display:flex; align-items:center; gap:10px;
    border:1px solid var(--gold-dim); border-radius:40px;
    padding:10px 22px 10px 14px; cursor:pointer;
    font-size:12.5px; letter-spacing:.06em; color:var(--ivory-dim);
    transition:all .35s var(--ease); background:transparent;
  }
  .comp-pill .num{
    font-family:var(--serif); color:var(--gold); font-size:13px;
    width:22px; height:22px; border:1px solid var(--gold-dim); border-radius:50%;
    display:flex; align-items:center; justify-content:center; flex-shrink:0;
    transition:all .35s var(--ease);
  }
  .comp-pill:hover, .comp-pill.active{ border-color:var(--gold); color:var(--ivory); background:rgba(201,169,110,.08); }
  .comp-pill.active .num{ background:var(--gold); color:#1a1a1a; border-color:var(--gold); }

  .comp-caption{
    max-width:640px; margin:0 auto; text-align:center;
    font-size:15px; color:var(--ivory-faint); line-height:1.75;
  }

  /* ---------- COMPETENCIA DETAIL SECTIONS ---------- */
  .comp-detail{
    padding:110px 0; border-top:1px solid var(--gold-dim);
    scroll-margin-top:90px;
  }
  .comp-detail:nth-of-type(odd){ background:var(--bg); }
  .comp-detail:nth-of-type(even){ background:var(--surface); }
  .comp-detail-grid{ display:grid; grid-template-columns:1.15fr .85fr; gap:70px; align-items:center; }
  .comp-detail.rev .comp-detail-grid{ direction:rtl; }
  .comp-detail.rev .comp-detail-grid > *{ direction:ltr; }
  .comp-num{
    font-family:var(--serif); font-size:15vw; line-height:.8; color:transparent;
    -webkit-text-stroke:1px var(--gold-dim); position:absolute; top:-46px; left:-6px;
    z-index:0; pointer-events:none; opacity:.5;
  }
  .comp-detail-text{ position:relative; z-index:1; }
  .comp-tag{ font-family:var(--serif); font-size:13px; color:var(--gold); letter-spacing:.06em; margin-bottom:14px; display:block; }
  .comp-detail h3{ font-size:clamp(26px,2.8vw,36px); color:var(--ivory); margin-bottom:26px; line-height:1.25; }
  .comp-detail-text p{ color:var(--ivory-dim); font-size:16px; margin-bottom:18px; max-width:480px; }
  .comp-detail-text p:last-child{ margin-bottom:0; }
  .comp-detail-img{ position:relative; border-radius:2px; overflow:hidden; aspect-ratio:4/5; max-width:440px; margin:0 auto; box-shadow:0 30px 60px -20px rgba(0,0,0,.55); }
  .comp-detail-img img{ width:100%; height:100%; object-fit:cover; object-position:center; }
  .comp-detail-img::after{ content:''; position:absolute; inset:0; box-shadow:inset 0 0 0 1px var(--gold-dim); }
  @media(max-width:860px){
    .comp-detail-grid, .comp-detail.rev .comp-detail-grid{ grid-template-columns:1fr; direction:ltr; gap:36px; }
    .comp-detail{ padding:80px 0; }
    .comp-detail-img{ max-width:220px; }
  }

  /* ---------- FRENTES ESTRATEGICAS ---------- */
  #frentes{
    position:relative; padding:170px 0 130px; text-align:center; overflow:hidden;
    background:var(--navy);
  }
  #frentes .bg{
    position:absolute; inset:0; background-size:cover; background-position:center; opacity:.32;
  }
  #frentes .scrim{ position:absolute; inset:0; background:linear-gradient(180deg, rgba(18,33,58,.55), rgba(16,16,16,.94)); }
  #frentes .content{ position:relative; z-index:1; max-width:720px; margin:0 auto; }
  #frentes .eyebrow{ justify-content:center; }
  #frentes h2{ font-size:clamp(30px,4vw,48px); color:var(--ivory); margin-bottom:20px; }
  #frentes .lead{ font-size:18px; color:var(--gold-light); font-family:var(--serif); font-style:italic; }

  .regions{ background:var(--bg); padding:0 0 150px; }
  .region-grid{
    display:grid; grid-template-columns:repeat(2,1fr); gap:2px;
    margin-top:-64px; position:relative; z-index:2;
    max-width:1240px; margin-left:auto; margin-right:auto; padding:0 40px;
  }
  @media(max-width:900px){ .region-grid{ grid-template-columns:1fr; gap:24px; margin-top:40px; } }
  .region-card{
    background:var(--surface); display:flex; flex-direction:row;
    border:1px solid var(--gold-dim);
  }
  .region-img{ aspect-ratio:4/5; overflow:hidden; width:42%; flex-shrink:0; }
  .region-img img{ width:100%; height:100%; object-fit:cover; transition:transform 1s var(--ease); }
  .region-card:hover .region-img img{ transform:scale(1.06); }
  .region-body{ padding:30px 26px; flex:1; display:flex; flex-direction:column; justify-content:flex-start; }
  @media(max-width:900px){
    .region-card{ flex-direction:column; }
    .region-img{ width:100%; aspect-ratio:5/4; }
  }
  .region-body h4{ font-family:var(--serif); font-size:21px; color:var(--ivory); margin-bottom:6px; line-height:1.3; }
  .region-body .sub{ font-size:12.5px; color:var(--gold); font-style:italic; font-family:var(--serif); margin-bottom:18px; }
  .region-body p{ font-size:14px; color:var(--ivory-faint); margin-bottom:12px; line-height:1.65; }
  .region-body p:last-child{ margin-bottom:0; }

  /* ---------- TIME ---------- */
  #time{ background:var(--surface); padding:150px 0; }
  .time-head{ text-align:center; max-width:640px; margin:0 auto 80px; }
  .time-head h2{ font-size:clamp(30px,3.6vw,46px); color:var(--ivory); margin-bottom:18px; }
  .time-head p{ font-family:var(--serif); font-style:italic; color:var(--gold-light); font-size:18px; }
  .team-grid{ display:grid; grid-template-columns:repeat(4,1fr); gap:36px; align-items:start; }
  @media(max-width:860px){
    .team-grid{ grid-template-columns:repeat(2,1fr); gap:36px 20px; }
    .team-card h4{ font-size:15px; white-space:normal; }
  }
  @media(max-width:400px){
    .team-card h4{ font-size:13.5px; }
  }
  .team-card{ text-align:center; min-width:0; display:flex; flex-direction:column; align-items:center; }
  .team-photo{
    aspect-ratio:1/1; border-radius:50%; overflow:hidden; margin:0 auto 22px;
    width:100%; max-width:180px; filter:grayscale(1) contrast(1.05);
    border:1px solid var(--gold-dim); transition:filter .5s var(--ease), border-color .5s;
    flex-shrink:0;
  }
  .team-card:hover .team-photo{ filter:grayscale(0) contrast(1); border-color:var(--gold); }
  .team-photo img{ width:100%; height:100%; object-fit:cover; }
  .team-card h4{
    font-family:var(--serif); font-size:clamp(14.5px,1.6vw,18px); color:var(--ivory);
    margin-bottom:6px; white-space:nowrap; min-height:2.6em; display:flex;
    align-items:center; justify-content:center; line-height:1.25;
  }
  .team-card .role{ font-size:11.5px; letter-spacing:.14em; text-transform:uppercase; color:var(--gold); margin-bottom:14px; min-height:2.6em; line-height:1.3; }
  .team-card .role:not(.lang-en){ display:flex; align-items:center; justify-content:center; }
  .team-social{
    width:32px; height:32px; border-radius:50%; border:1px solid var(--gold-dim);
    display:inline-flex; align-items:center; justify-content:center;
    color:var(--ivory-faint); transition:all .3s var(--ease);
  }
  .team-social:hover{ border-color:var(--gold); color:var(--gold); background:rgba(201,169,110,.08); }

  /* ---------- HISTORIA ---------- */
  #historia{ background:var(--bg); padding:150px 0; }
  .hist-grid{ display:grid; grid-template-columns:1.05fr 1fr; gap:90px; align-items:center; }
  .hist-text h2{ font-size:clamp(30px,3.6vw,46px); color:var(--ivory); margin-bottom:26px; }
  .hist-text p{ font-size:17px; color:var(--ivory-dim); line-height:1.8; max-width:460px; }
  .hist-collage{ position:relative; border-radius:2px; overflow:hidden; }
  .hist-collage img{ width:100%; height:auto; display:block; transition:transform 1s var(--ease); }
  .hist-collage:hover img{ transform:scale(1.03); }
  .hist-collage::after{ content:''; position:absolute; inset:0; box-shadow:inset 0 0 0 1px var(--gold-dim); pointer-events:none; }
  @media(max-width:860px){
    .hist-grid{ grid-template-columns:1fr; gap:44px; }
    .hist-text p{ max-width:100%; }
  }

  /* ---------- INSIGHTS ---------- */
  #insights{ background:var(--surface); padding:130px 0; }
  .insights-box{
    max-width:640px; margin:0 auto; text-align:center;
    border:1px solid var(--gold-dim); border-radius:3px; padding:64px 48px;
  }
  .insights-box h2{ font-size:clamp(28px,3.4vw,42px); color:var(--ivory); margin:6px 0 24px; }
  .insights-box p{ font-size:16px; color:var(--ivory-faint); line-height:1.8; max-width:480px; margin:0 auto; }

  /* ---------- FOOTER / CONTATO ---------- */
  #contato{ position:relative; padding:160px 0 0; overflow:hidden; }
  #contato .bg{ position:absolute; inset:0; background-size:cover; background-position:center; }
  #contato .scrim{ position:absolute; inset:0; background:linear-gradient(180deg, rgba(15,15,15,.75) 0%, rgba(15,15,15,.92) 55%, #141414 100%); }
  #contato .content{ position:relative; z-index:1; text-align:center; max-width:860px; margin:0 auto; padding-bottom:90px; }
  .contato-logo{ height:56px; width:auto; margin:0 auto 34px; opacity:.95; }
  #contato h2{ font-size:clamp(26px,3.2vw,38px); color:var(--ivory); line-height:1.4; margin-bottom:56px; font-style:italic; }
  .contact-grid{
    display:grid; grid-template-columns:1fr 1fr; gap:40px 32px;
    margin-bottom:10px; text-align:center; max-width:620px; margin-left:auto; margin-right:auto;
  }
  .contact-item{ text-align:center; }
  @media(max-width:520px){
    .contact-grid{ grid-template-columns:1fr; gap:32px; max-width:340px; }
  }
  .contact-item .eyebrow-sm{ font-size:10.5px; letter-spacing:.18em; text-transform:uppercase; color:var(--gold); margin-bottom:10px; }
  .contact-item .val{ font-size:15.5px; color:var(--ivory); min-height:3.2em; overflow-wrap:anywhere; word-break:break-word; }
  .contact-item .val:not(.lang-en){ display:block; }
  .contact-item a.val:hover{ color:var(--gold-light); }
  .contact-item .val-email{ white-space:nowrap; }
  .social-row{ display:flex; justify-content:center; gap:16px; margin-top:48px; }

  .foot-bar{
    position:relative; z-index:1;
    border-top:1px solid var(--gold-dim);
    padding:30px 0; display:flex; align-items:center; justify-content:space-between;
    flex-wrap:wrap; gap:16px;
  }
  .foot-bar .logo-img{ height:20px; }
  .foot-bar .copy{ font-size:12px; color:var(--ivory-faint); letter-spacing:.02em; }

  /* utility */
  .fade-line{ width:44px; height:1px; background:var(--gold); margin:0 auto 28px; }
