/* ========================================================
   Self-hosted brand fonts
   ======================================================== */
@font-face{
  font-family:"Big Shoulders Display";
  src:url("assets/fontes/Big_Shoulders/BigShoulders-VariableFont_opsz,wght.ttf") format("truetype");
  font-weight:100 900;
  font-style:normal;
  font-display:swap;
}
@font-face{
  font-family:"IBM Plex Mono";
  src:url("assets/fontes/IBM_Plex_Mono/IBMPlexMono-Regular.ttf") format("truetype");
  font-weight:400;
  font-style:normal;
  font-display:swap;
}
@font-face{
  font-family:"IBM Plex Mono";
  src:url("assets/fontes/IBM_Plex_Mono/IBMPlexMono-Medium.ttf") format("truetype");
  font-weight:500;
  font-style:normal;
  font-display:swap;
}
@font-face{
  font-family:"IBM Plex Mono";
  src:url("assets/fontes/IBM_Plex_Mono/IBMPlexMono-Bold.ttf") format("truetype");
  font-weight:700;
  font-style:normal;
  font-display:swap;
}

@font-face{
  font-family:"IBM Plex Sans";
  src:url("assets/fontes/IBM_Plex_Sans/IBMPlexSans-Variable-latin.woff2") format("woff2");
  font-weight:100 700;
  font-style:normal;
  font-display:swap;
}
@font-face{
  font-family:"Newsreader";
  src:url("assets/fontes/Newsreader/Newsreader-Italic-Variable-latin.woff2") format("woff2");
  font-weight:200 800;
  font-style:italic;
  font-display:swap;
}

/* ========================================================
   Moreira Prestes — design tokens
   ======================================================== */
:root{
  --ink:      #0A1F44;   /* navy — from the logo's dark tower */
  --steel:    #1E6FB8;   /* medium blue — logo's mid tower, primary accent */
  --sky:      #5BC6E8;   /* light cyan blue — logo's front tower */
  --paper:    #F5F3EF;   /* warm off-white background */
  --paper-2:  #ECE7DE;   /* slightly deeper warm cream, alternating sections */
  --concrete: #B8AF9F;   /* warm gray-beige — dividers, muted text */
  --charcoal: #1E1B17;   /* warm near-black — dark sections */
  --ok-line:  rgba(10,31,68,0.14);

  --display: "Big Shoulders Display", sans-serif;
  --body:    "IBM Plex Sans", sans-serif;
  --mono:    "IBM Plex Mono", monospace;
  --voice:   "Newsreader", serif;

  --wrap: 1180px;
  --gutter: clamp(1.25rem, 4vw, 3.5rem);
  --radius: 10px;
}

*,*::before,*::after{ box-sizing:border-box; }
html{ scroll-behavior:smooth; }
#quemsomos, #gestaodaobra, #projetos, #investimento, #contato{ scroll-margin-top:84px; }
@media (prefers-reduced-motion: reduce){
  html{ scroll-behavior:auto; }
  *,*::before,*::after{ animation-duration:0.001ms !important; animation-iteration-count:1 !important; transition-duration:0.001ms !important; scroll-behavior:auto !important; }
}

body{
  margin:0;
  background:var(--paper);
  color:var(--ink);
  font-family:var(--body);
  font-size:16px;
  line-height:1.6;
  -webkit-font-smoothing:antialiased;
}

img{ max-width:100%; display:block; }

a{ color:inherit; }

.skip-link{
  position:absolute; left:-9999px; top:0;
  background:var(--ink); color:#fff; padding:0.75rem 1.25rem; z-index:200;
  border-radius:0 0 8px 0;
}
.skip-link:focus{ left:0; }

:focus-visible{
  outline:3px solid var(--sky);
  outline-offset:3px;
}

.kicker{
  font-family:var(--mono);
  font-size:0.78rem;
  letter-spacing:0.14em;
  text-transform:uppercase;
  color:var(--steel);
  margin:0 0 0.9rem;
  font-weight:500;
}
.kicker--light{ color:var(--sky); }

.h2{
  font-family:var(--display);
  font-weight:800;
  text-transform:uppercase;
  letter-spacing:0.01em;
  font-size:clamp(1.9rem, 4vw, 3rem);
  line-height:1.05;
  margin:0 0 1.1rem;
  color:var(--ink);
}
.h2--light{ color:#fff; }

.btn{
  display:inline-flex;
  align-items:center;
  justify-content:center;
  gap:0.5rem;
  font-family:var(--body);
  font-weight:600;
  font-size:0.95rem;
  padding:0.9rem 1.6rem;
  border-radius:999px;
  text-decoration:none;
  transition:transform 0.18s ease, background 0.18s ease, color 0.18s ease, box-shadow .18s ease;
  border:1.5px solid transparent;
  cursor:pointer;
}
.btn--primary{
  background:var(--steel);
  color:#fff;
  box-shadow:0 8px 20px -8px rgba(30,111,184,0.55);
}
.btn--primary:hover{ background:var(--ink); transform:translateY(-2px); }
.btn--ghost{
  background:transparent;
  border-color:var(--ok-line);
  color:var(--ink);
}
.btn--ghost:hover{ border-color:var(--steel); color:var(--steel); transform:translateY(-2px); }
.btn--lg{ padding:1.1rem 2.2rem; font-size:1.05rem; }

/* ========================================================
   Nav
   ======================================================== */
.nav{
  position:fixed; inset:0 0 auto 0; z-index:100;
  background:transparent;
  transition:background 0.3s ease, box-shadow 0.3s ease;
}
.nav.is-scrolled{
  background:var(--paper);
  box-shadow:0 1px 0 var(--ok-line);
}
.nav__inner{
  max-width:var(--wrap); margin:0 auto;
  display:flex; align-items:center; gap:1.5rem;
  padding:0.9rem calc(var(--gutter) - 1rem) 0.9rem var(--gutter);
}
.nav__brand{ display:flex; align-items:center; gap:0.6rem; text-decoration:none; margin-right:auto; }
.nav__mark{
  width:35px; height:auto;
  filter:brightness(0) invert(1);
  transition:filter 0.3s ease;
}
.nav.is-scrolled .nav__mark{ filter:none; }
.nav__word{
  font-family:var(--display); font-weight:800; text-transform:uppercase;
  letter-spacing:0.02em; font-size:1.36rem; color:#fff;
  transition:color 0.3s ease;
}
.nav.is-scrolled .nav__word{ color:var(--ink); }
.nav__links{ display:flex; gap:1.7rem; font-size:1rem; font-weight:500; white-space:nowrap; }
.nav__links a{ text-decoration:none; color:#fff; opacity:0.88; transition:color 0.3s ease; }
.nav__links a:hover{ opacity:1; color:var(--sky); }
.nav.is-scrolled .nav__links a{ color:var(--ink); }
.nav.is-scrolled .nav__links a:hover{ color:var(--steel); }
.nav__cta{
  font-family:var(--display); font-weight:700; text-transform:uppercase; letter-spacing:0.02em;
  font-size:0.92rem;
  text-decoration:none; color:#fff;
  border:1.5px solid rgba(255,255,255,0.55); border-radius:999px;
  padding:0.55rem 1.3rem; white-space:nowrap;
  transition:color 0.3s ease, border-color 0.3s ease, background 0.3s ease;
}
.nav__cta:hover{ border-color:#fff; }
.nav.is-scrolled .nav__cta{ color:var(--ink); border-color:var(--ok-line); }
.nav.is-scrolled .nav__cta:hover{ border-color:var(--steel); color:var(--steel); }
.nav__toggle{ display:none; }

.nav__mobile{
  display:none;
  flex-direction:column;
  background:var(--paper);
  border-top:1px solid var(--ok-line);
  padding:0.5rem var(--gutter) 1.2rem;
}
.nav__mobile a{
  padding:0.85rem 0; text-decoration:none; color:var(--ink);
  border-bottom:1px solid var(--ok-line); font-weight:500;
}
.nav__mobile.is-open{ display:flex; }

@media (max-width:1220px){
  .nav__links, .nav__cta{ display:none; }
  .nav__toggle{
    display:flex; flex-direction:column; justify-content:center; gap:5px;
    width:34px; height:34px; background:none; border:none; cursor:pointer; padding:0;
  }
  .nav__toggle span{ display:block; height:2px; width:100%; background:#fff; transition:background 0.3s ease; border-radius:2px; }
  .nav.is-scrolled .nav__toggle span{ background:var(--ink); }
}

/* ========================================================
   Hero
   ======================================================== */
.hero{
  position:relative;
  min-height:100vh;
  display:flex;
  overflow:hidden;
}
.hero__inner{
  position:relative; z-index:1;
  width:100%; max-width:var(--wrap); margin:0 auto;
  display:flex; align-items:center; justify-content:flex-end;
  padding:7rem calc(var(--gutter) - 1rem) 5rem var(--gutter);
}
.hero__media{ position:absolute; inset:0; z-index:0; }
.hero__slide{
  position:absolute; inset:0;
  width:100%; height:100%; object-fit:cover; object-position:38% 50%;
  opacity:0;
  transition:opacity 1.4s ease;
}
.hero__slide.is-active{ opacity:1; }
.hero__slide:nth-child(2){ object-position:50% 60%; }
.hero__slide:nth-child(3){ object-position:42% 55%; }
.hero__scrim{
  position:absolute; inset:0;
  background:linear-gradient(100deg,
    rgba(0,16,52,0.08) 0%,
    rgba(0,16,52,0.32) 32%,
    rgba(0,16,52,0.7) 58%,
    rgba(0,16,52,0.88) 78%,
    rgba(0,16,52,0.92) 100%);
}
.hero__content{
  max-width:640px; text-align:right;
}
.hero__title{
  font-family:var(--display);
  font-weight:900;
  text-transform:uppercase;
  font-size:clamp(2.6rem, 4.6vw, 4rem);
  line-height:0.98;
  letter-spacing:0.005em;
  margin:0 0 1.5rem;
  color:#fff;
}
.hero__lead{
  font-family:var(--mono);
  font-size:0.98rem; line-height:1.6;
  max-width:42ch; margin:0 0 2.2rem auto;
  color:rgba(255,255,255,0.82);
}
.btn--sky{
  background:var(--sky); color:var(--ink);
  font-family:var(--display); font-weight:700; text-transform:uppercase; letter-spacing:0.02em;
  font-size:1.25rem;
  padding:1.17rem 2.1rem;
  box-shadow:0 8px 20px -8px rgba(91,198,232,0.5);
}
.btn--sky:hover{ background:#fff; transform:translateY(-2px); }

.hero__dots{
  position:absolute; z-index:1; bottom:2.2rem; left:50%; transform:translateX(-50%);
  display:flex; gap:0.55rem;
}
.hero__dot{
  width:9px; height:9px; border-radius:50%; padding:0;
  background:transparent; border:1.5px solid rgba(255,255,255,0.7);
  cursor:pointer; transition:background 0.2s ease, border-color 0.2s ease, transform 0.2s ease;
}
.hero__dot:hover{ transform:scale(1.15); }
.hero__dot.is-active{ background:var(--sky); border-color:var(--sky); }

@media (max-width:900px){
  .hero__inner{ justify-content:center; padding:6.5rem var(--gutter) 4rem; text-align:center; }
  .hero__content{ text-align:center; }
  .hero__lead{ margin:0 auto 2rem; }
  .hero__slide{ object-position:65% 50% !important; }
}

/* ========================================================
   Dimension-line divider (signature motif)
   ======================================================== */
.dim{
  display:flex; align-items:center; gap:0.4rem;
  max-width:var(--wrap); margin:0 auto; padding:0 var(--gutter);
  height:56px;
}
.dim__line{ flex:1; height:1px; background:var(--ok-line); }
.dim__tick{ width:1px; height:14px; background:var(--concrete); }

/* ========================================================
   Quem somos
   ======================================================== */
.quemsomos{
  max-width:var(--wrap); margin:0 auto;
  padding:2rem var(--gutter) 6rem;
  display:grid; grid-template-columns:minmax(220px,320px) 1fr; gap:clamp(2rem,5vw,4.5rem);
  align-items:start;
}
.quemsomos__figure{
  margin:0; width:100%;
  align-self:center;
  aspect-ratio:3/4;
  border-radius:16px; overflow:hidden;
  box-shadow:0 24px 48px -24px rgba(10,31,68,0.35);
}
.quemsomos__figure img{ width:100%; height:100%; object-fit:cover; object-position:center 20%; }
.quemsomos__copy{ padding-top:0.4rem; }
.quemsomos__copy .h2{ margin-bottom:1.6rem; }
.quemsomos__copy p{
  font-family:var(--mono); font-size:0.98rem; line-height:1.65;
  color:#3a3a38; max-width:56ch; margin:0 0 1.3rem;
}
.quemsomos__copy p:last-child{ margin-bottom:0; }
.quemsomos__copy strong{ color:var(--ink); font-weight:700; }

@media (max-width:700px){
  .quemsomos{ grid-template-columns:1fr; }
  .quemsomos__figure{ max-width:280px; margin:0 auto; }
  .quemsomos__copy{ padding-top:0; }
}

/* ========================================================
   Projetos
   ======================================================== */
.projetos{
  max-width:var(--wrap); margin:0 auto;
  padding:2rem var(--gutter) 6rem;
}
.projetos__head{ margin:0 0 2.5rem; }
.projetos__head .h2{ margin:0; }

.projetos__grid{
  display:grid; grid-template-columns:repeat(3,1fr); gap:clamp(1rem,2vw,1.75rem);
}
.projetos__card{
  position:relative; overflow:hidden;
  aspect-ratio:570/585;
  background:var(--sky);
  cursor:pointer;
}
.projetos__card img{
  position:absolute; inset:0; width:100%; height:100%; object-fit:cover;
}
.projetos__overlay{
  position:absolute; left:0; right:0; bottom:0; height:48%;
  overflow:hidden;
  background:rgba(10,31,68,0.82); color:#fff;
  padding:1.25rem 1.5rem;
  display:flex; flex-direction:column; justify-content:flex-end; gap:0.7rem;
  transform:translateY(100%);
  transition:transform 0.35s ease;
}
@media (hover:hover){
  .projetos__card:hover .projetos__overlay,
  .projetos__card:focus-within .projetos__overlay{ transform:translateY(0); }
}
@media (hover:none){
  .projetos__overlay{ transform:translateY(0); }
}
.projetos__title{
  font-family:var(--display); font-weight:800; text-transform:uppercase;
  letter-spacing:0.01em; font-size:clamp(1.25rem,1.8vw,1.5rem); margin:0;
}
.projetos__footer{ display:flex; align-items:flex-end; justify-content:space-between; gap:1rem; }
.projetos__meta{
  display:flex; flex-direction:column; gap:0.15rem;
  font-family:var(--mono); font-size:0.8rem; line-height:1.4; color:rgba(255,255,255,0.8);
}
.projetos__link{
  font-family:var(--mono); font-weight:700; font-size:0.82rem; color:#fff; white-space:nowrap;
  background:none; border:0; padding:0; margin:0; cursor:pointer; text-decoration:underline; text-underline-offset:3px;
}

@media (max-width:820px){
  .projetos__grid{ grid-template-columns:repeat(2,1fr); }
}
@media (max-width:560px){
  .projetos__grid{ grid-template-columns:1fr; }
}

/* ========================================================
   Gestão de obra
   ======================================================== */
.obra{ background:var(--ink); color:#fff; padding:6rem 0; overflow:hidden; }
.obra__head{ max-width:var(--wrap); margin:0 auto 3rem; padding:0 var(--gutter); }
.obra__head .h2{
  margin:0; max-width:none;
  font-size:clamp(1.6rem, 3.1vw, 2.7rem);
  white-space:nowrap;
}

.obra__carousel{
  position:relative;
  -webkit-mask-image:linear-gradient(90deg, transparent 0, #000 var(--gutter), #000 calc(100% - var(--gutter)), transparent 100%);
  mask-image:linear-gradient(90deg, transparent 0, #000 var(--gutter), #000 calc(100% - var(--gutter)), transparent 100%);
}
.obra__track{
  display:flex; gap:1.75rem;
  list-style:none; margin:0;
  padding:0 var(--gutter) 0.5rem;
  overflow-x:auto;
  scroll-snap-type:x mandatory;
  scroll-padding-left:var(--gutter);
  -webkit-overflow-scrolling:touch;
  scrollbar-width:none;
  cursor:grab;
  user-select:none;
}
.obra__track::-webkit-scrollbar{ display:none; }
.obra__track:active,
.obra__track.is-dragging{ cursor:grabbing; scroll-snap-type:none; }
.obra__track:focus-visible{ outline:2px solid var(--sky); outline-offset:4px; border-radius:8px; }

.obra__card{
  flex:0 0 auto;
  width:min(320px, 74vw);
  min-height:360px;
  scroll-snap-align:start;
  background:var(--sky);
  color:var(--ink);
  border-radius:18px;
  padding:2rem 1.75rem;
  display:flex; flex-direction:column;
  pointer-events:none;
}
.obra__card h3{
  font-family:var(--body); font-weight:700;
  font-size:1.1rem; line-height:1.35;
  margin:0 0 1.5rem;
}
.obra__card p{
  font-family:var(--mono); font-size:0.9rem; line-height:1.6;
  margin:0; color:rgba(10,31,68,0.82);
}

.obra__nav{ display:flex; align-items:center; gap:1.2rem; justify-content:center; margin-top:2.75rem; padding:0 var(--gutter); }
.obra__arrow{
  flex:none;
  width:52px; height:46px; border-radius:999px;
  border:1.5px solid rgba(255,255,255,0.5);
  background:transparent; color:#fff;
  display:flex; align-items:center; justify-content:center;
  cursor:pointer;
  transition:border-color 0.18s ease, background 0.18s ease, transform 0.18s ease, opacity 0.18s ease;
}
.obra__arrow svg{ width:20px; height:20px; }
.obra__arrow:hover{ border-color:#fff; background:rgba(255,255,255,0.08); }
.obra__arrow:active{ transform:scale(0.94); }
.obra__arrow:disabled{ opacity:0.35; cursor:default; }
.obra__arrow:disabled:hover{ border-color:rgba(255,255,255,0.5); background:transparent; }

.obra__progress{
  width:100%; max-width:220px; height:3px; border-radius:999px;
  background:rgba(255,255,255,0.16); overflow:hidden;
}
.obra__progress-fill{
  display:block; height:100%; border-radius:999px;
  background:var(--sky);
  transition:width 0.15s ease;
}

@media (max-width:560px){
  .obra{ padding:4.5rem 0; }
  .obra__card{ min-height:320px; }
  .obra__head .h2{ white-space:normal; font-size:clamp(1.6rem, 6vw, 2.2rem); }
  .obra__progress{ max-width:120px; }
}

/* ========================================================
   Investment
   ======================================================== */
.invest{ background:var(--ink); color:#fff; padding:6rem var(--gutter); }
.invest__head{ max-width:var(--wrap); margin:0 auto 3rem; }
.invest__head .kicker{ color:#fff; }
.invest__head .h2{ color:#fff; max-width:22ch; }
.invest__lead{
  max-width:58ch; margin:0;
  font-family:var(--mono); color:var(--sky);
}
.invest__grid{
  max-width:var(--wrap); margin:3rem auto 0; padding:0;
  display:grid; grid-template-columns:repeat(4,1fr); gap:1px;
  background:rgba(255,255,255,0.14);
  border-radius:var(--radius); overflow:hidden;
}
.invest__item{ background:var(--ink); padding:2rem 1.6rem; }
.invest__item dt{
  font-family:var(--mono); font-size:0.85rem; color:var(--sky);
  letter-spacing:0.03em; margin-bottom:0.8rem; font-weight:500;
}
.invest__item dd{ margin:0; font-family:var(--mono); color:#fff; font-size:0.95rem; }

@media (max-width:900px){
  .invest__grid{ grid-template-columns:1fr 1fr; }
}
@media (max-width:560px){
  .invest__grid{ grid-template-columns:1fr; }
}

/* ========================================================
   CTA / contact
   ======================================================== */
.cta{
  position:relative; overflow:hidden;
  padding:7rem var(--gutter);
  background:var(--charcoal);
  display:flex; align-items:center; justify-content:center; text-align:center;
  min-height:60vh;
}
.cta__media{ position:absolute; inset:0; }
.cta__media img{ width:100%; height:100%; object-fit:cover; opacity:0.55; }
.cta__scrim{
  position:absolute; inset:0;
  background:radial-gradient(120% 140% at 50% 20%, rgba(10,31,68,0.35), rgba(20,18,15,0.88));
}
.cta__content{ position:relative; max-width:640px; }
.cta__lead{ color:rgba(255,255,255,0.78); font-size:1.1rem; margin:0 0 2.2rem; }
.cta__links{
  display:flex; flex-direction:column; align-items:center; gap:1.1rem;
}
.cta__link{
  display:inline-flex; align-items:center; gap:0.55rem;
  text-decoration:none; font-family:var(--mono);
  color:var(--sky); font-size:0.95rem;
  transition:color 0.18s ease;
}
.cta__link:hover{ color:#fff; }
.cta__link .icon{ width:18px; height:18px; flex:none; }
.cta__link--primary{ color:#fff; font-size:1.15rem; font-weight:500; }
.cta__link--primary .icon{ width:21px; height:21px; }
.cta__link--primary:hover{ color:var(--sky); }

/* ========================================================
   Footer
   ======================================================== */
.footer{
  background:var(--charcoal); color:rgba(255,255,255,0.6);
  padding:2.2rem var(--gutter); text-align:center;
  display:flex; flex-direction:column; align-items:center; gap:0.6rem;
  font-size:0.85rem;
}
.footer__mark{ width:26px; height:auto; opacity:0.9; margin-bottom:0.4rem; }
.footer p{ margin:0; }
.footer__links{ display:flex; flex-wrap:wrap; justify-content:center; gap:0.5rem 1.2rem; }
.footer__links a{ text-decoration:none; color:rgba(255,255,255,0.7); }
.footer__links a:hover{ color:var(--sky); }
.footer__links--legal{ font-size:0.78rem; }
.footer__links--legal a{ color:rgba(255,255,255,0.5); }
.footer__linkbtn{
  background:none; border:0; padding:0; cursor:pointer;
  font:inherit; color:rgba(255,255,255,0.5);
}
.footer__linkbtn:hover{ color:var(--sky); }
.footer__linkbtn[hidden]{ display:none; }

/* ========================================================
   Página de Política de Privacidade
   ======================================================== */
.legal-top{
  background:var(--ink);
  display:flex; align-items:center; gap:1rem;
  padding:1rem var(--gutter);
}
.legal-top__back{ color:rgba(255,255,255,0.8); text-decoration:none; font-size:0.9rem; white-space:nowrap; }
.legal-top__back:hover{ color:var(--sky); }
.legal{
  max-width:760px; margin:0 auto;
  padding:clamp(2.5rem, 6vw, 4.5rem) var(--gutter) clamp(3rem, 8vw, 6rem);
}
.legal__eyebrow{ font-family:var(--mono); font-size:0.8rem; color:var(--steel); letter-spacing:0.04em; margin:0 0 0.6rem; }
.legal__title{
  font-family:var(--display); font-weight:800; text-transform:uppercase;
  font-size:clamp(2.2rem, 6vw, 3.4rem); line-height:1; margin:0 0 0.8rem;
}
.legal__updated{ font-family:var(--mono); font-size:0.82rem; color:#6b6457; margin:0 0 2rem; }
.legal h2{
  font-family:var(--display); font-weight:700; text-transform:uppercase; letter-spacing:0.02em;
  font-size:1.45rem; margin:2.4rem 0 0.6rem; color:var(--ink);
}
.legal p, .legal li{ color:#2b3550; }
.legal ul{ padding-left:1.2rem; }
.legal li{ margin-bottom:0.45rem; }
.legal a{ color:var(--steel); }
.legal code{ font-family:var(--mono); font-size:0.85em; background:var(--paper-2); padding:0.1em 0.35em; border-radius:4px; }
.legal__table-wrap{ overflow-x:auto; margin:1.2rem 0; border:1px solid var(--ok-line); border-radius:var(--radius); }
.legal__table{ width:100%; border-collapse:collapse; font-size:0.88rem; min-width:560px; }
.legal__table th, .legal__table td{ text-align:left; vertical-align:top; padding:0.8rem 0.9rem; border-bottom:1px solid var(--ok-line); }
.legal__table tr:last-child td{ border-bottom:0; }
.legal__table th{ background:var(--paper-2); font-weight:600; }
.legal__table td span{ font-family:var(--mono); font-size:0.75rem; color:#6b6457; }
.notfound{ min-height:60vh; }
.notfound__actions{ display:flex; flex-wrap:wrap; gap:0.8rem; margin-top:1.8rem; }
.notfound .btn--primary{ color:#fff; }
.notfound .btn--ghost{ color:var(--ink); }

/* ========================================================
   Banner de cookies (LGPD) — ver cookies.js
   ======================================================== */
.cookie{
  position:fixed; z-index:400;
  left:1rem; right:1rem; bottom:1rem;
  margin:0 auto; max-width:760px;
  background:var(--ink); color:rgba(255,255,255,0.82);
  border:1px solid rgba(91,198,232,0.22);
  border-radius:var(--radius);
  box-shadow:0 24px 60px -20px rgba(10,31,68,0.6);
  font-size:0.88rem; line-height:1.55;
  animation:cookieIn .35s ease both;
}
.cookie[hidden]{ display:none; }
.cookie:focus{ outline:2px solid var(--sky); outline-offset:3px; }
@keyframes cookieIn{ from{ opacity:0; transform:translateY(16px); } to{ opacity:1; transform:none; } }
.cookie__inner{ padding:1.25rem 1.4rem; display:grid; gap:1rem; }
.cookie__title{
  margin:0 0 0.25rem;
  font-family:var(--display); font-weight:800; text-transform:uppercase;
  letter-spacing:0.03em; font-size:1.15rem; color:#fff;
}
.cookie__text p{ margin:0; }
.cookie__text a{ color:var(--sky); }
.cookie__panel{ display:grid; gap:0.5rem; max-height:45vh; overflow:auto; }
.cookie__panel[hidden]{ display:none; }
.cookie__opt{
  display:flex; align-items:center; justify-content:space-between; gap:1rem;
  padding:0.7rem 0.9rem; border-radius:8px;
  background:rgba(255,255,255,0.05); cursor:pointer;
}
.cookie__opt-text{ display:grid; gap:0.1rem; }
.cookie__opt-text strong{ color:#fff; font-weight:600; }
.cookie__opt-text span{ font-family:var(--mono); font-size:0.76rem; color:rgba(255,255,255,0.65); }
.cookie__switch{
  appearance:none; -webkit-appearance:none; flex:none;
  width:42px; height:24px; margin:0; border-radius:999px; cursor:pointer;
  background:rgba(255,255,255,0.2); position:relative; transition:background .18s ease;
}
.cookie__switch::after{
  content:""; position:absolute; top:3px; left:3px; width:18px; height:18px;
  border-radius:50%; background:#fff; transition:transform .18s ease;
}
.cookie__switch:checked{ background:var(--steel); }
.cookie__switch:checked::after{ transform:translateX(18px); }
.cookie__switch:disabled{ opacity:0.55; cursor:not-allowed; }
.cookie__switch:focus-visible{ outline:2px solid var(--sky); outline-offset:2px; }
.cookie__actions{ display:flex; flex-wrap:wrap; align-items:center; justify-content:flex-end; gap:0.6rem; }
.cookie__more{
  margin-right:auto; background:none; border:0; padding:0.4rem 0; cursor:pointer;
  font:inherit; font-weight:600; color:rgba(255,255,255,0.8);
  text-decoration:underline; text-underline-offset:3px;
}
.cookie__more:hover{ color:var(--sky); }
.cookie__btn{
  font-family:var(--body); font-weight:600; font-size:0.88rem;
  padding:0.7rem 1.3rem; border-radius:999px; cursor:pointer;
  background:transparent; color:#fff; border:1.5px solid rgba(255,255,255,0.45);
  transition:background .18s ease, color .18s ease, border-color .18s ease;
}
.cookie__btn:hover{ border-color:#fff; background:rgba(255,255,255,0.08); }
.cookie__btn--accept{ background:var(--sky); border-color:var(--sky); color:var(--ink); }
.cookie__btn--accept:hover{ background:#fff; border-color:#fff; }
.cookie__btn[hidden]{ display:none; }
.cookie__more:focus-visible, .cookie__btn:focus-visible{ outline:2px solid var(--sky); outline-offset:2px; }
@media (max-width:560px){
  .cookie{ left:0.6rem; right:0.6rem; bottom:0.6rem; }
  .cookie__inner{ padding:1.1rem; }
  .cookie__more{ width:100%; text-align:left; }
  .cookie__btn{ flex:1 1 0; padding:0.75rem 0.8rem; }
  .cookie__btn--save{ flex-basis:100%; order:3; }
}

/* ========================================================
   Lightbox (galeria de fotos do projeto)
   ======================================================== */
.lightbox{
  position:fixed; inset:0; z-index:500;
  display:flex; align-items:center; justify-content:center;
  padding:clamp(1rem,4vw,3rem);
}
.lightbox[hidden]{ display:none; }
.lightbox__backdrop{
  position:absolute; inset:0;
  background:rgba(10,31,68,0.92);
}
.lightbox__panel{
  position:relative;
  width:min(720px, 100%);
  max-height:100%;
  background:var(--ink); color:#fff;
  border-radius:18px;
  padding:2rem clamp(1.25rem,4vw,2.5rem) 2.25rem;
  display:flex; flex-direction:column; align-items:center;
}
.lightbox__close{
  position:absolute; top:1rem; right:1rem;
  width:40px; height:40px; border-radius:999px;
  border:1.5px solid rgba(255,255,255,0.5);
  background:transparent; color:#fff;
  display:flex; align-items:center; justify-content:center;
  cursor:pointer;
  transition:border-color 0.18s ease, background 0.18s ease;
}
.lightbox__close svg{ width:18px; height:18px; }
.lightbox__close:hover{ border-color:#fff; background:rgba(255,255,255,0.08); }
.lightbox__title{
  font-family:var(--display); font-weight:800; text-transform:uppercase;
  letter-spacing:0.01em; font-size:clamp(1.1rem,2.4vw,1.4rem);
  margin:0 2.5rem 1.25rem 0; align-self:flex-start;
}
.lightbox__stage{
  width:100%; aspect-ratio:4/3; border-radius:12px; overflow:hidden;
  background:rgba(255,255,255,0.06);
}
.lightbox__image{ width:100%; height:100%; object-fit:contain; display:block; }
.lightbox__nav{ display:flex; align-items:center; gap:1.2rem; justify-content:center; margin-top:1.5rem; }
.lightbox__arrow{ position:static; }
.lightbox__counter{
  font-family:var(--mono); font-size:0.85rem; color:rgba(255,255,255,0.75);
  min-width:3.5rem; text-align:center;
}

@media (max-width:560px){
  .lightbox__panel{ padding:1.5rem 1.25rem 1.75rem; }
  .lightbox__stage{ aspect-ratio:1/1; }
}

/* ========================================================
   Scroll reveal
   ======================================================== */
[data-reveal]{
  opacity:0; transform:translateY(18px);
  transition:opacity 0.7s ease, transform 0.7s ease;
}
[data-reveal].is-visible{ opacity:1; transform:translateY(0); }
@media (prefers-reduced-motion: reduce){
  [data-reveal]{ opacity:1; transform:none; }
}
