/* NOLI Agency — identidade aplicada sobre a estrutura de referência (Rabah).
   Cores, tipografia e detalhes vêm do material de marca da NOLI (deck 2026 e site atual). */
:root {
  --bg: #0a0a0a;          /* fundo principal */
  --bg-deep: #050505;     /* faixas e blocos mais escuros */
  --surface: #141413;     /* fundo de imagens carregando, espaços vazios */
  --fg: #f5f5f3;          /* texto principal */
  --soft: #b5b5b0;        /* texto corrido secundário */
  --muted: #8a8a86;       /* rótulos, metadados, cantoneiras */
  --line: #333331;        /* divisores */
  --line-strong: #5a5a57; /* divisores em destaque, bordas de botão */
  --display: "Red Hat Display", system-ui, sans-serif;
  --text: "Red Hat Text", "Red Hat Display", system-ui, sans-serif;
  --track-label: .3em;    /* rótulos em caixa alta */
  --track-title: .06em;   /* títulos em caixa alta */
  --gutter: clamp(16px, 2.5vw, 40px);
  --ease: cubic-bezier(.22, 1, .36, 1);
  --arrow: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 40 10'%3E%3Cpath d='M0 5h38M33 1l5 4-5 4' fill='none' stroke='%23000' stroke-width='1'/%3E%3C/svg%3E");
  --arrow-down: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 10 40'%3E%3Cpath d='M5 0v38M1 33l4 5 4-5' fill='none' stroke='%23000' stroke-width='1'/%3E%3C/svg%3E");
}
* { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body { background: var(--bg); color: var(--fg); font-family: var(--text); font-weight: 300; font-size: 15px; line-height: 1.7; -webkit-font-smoothing: antialiased; overflow-x: hidden; }
img { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
em { font-style: normal; color: var(--muted); }
::selection { background: var(--fg); color: var(--bg); }

/* ---------- Header ---------- */
.header { position: fixed; inset: 0 0 auto 0; z-index: 50; display: flex; justify-content: space-between; align-items: center; padding: 22px var(--gutter); mix-blend-mode: difference; }
.logo img { height: 24px; width: auto; }
.menu-btn { background: none; border: 0; cursor: pointer; width: 34px; height: 20px; position: relative; }
.menu-btn span { position: absolute; left: 0; right: 0; height: 1px; background: #fff; transition: transform .5s var(--ease), top .5s var(--ease); }
.menu-btn span:nth-child(1) { top: 6px; }
.menu-btn span:nth-child(2) { top: 13px; }
body.menu-open .menu-btn span:nth-child(1) { top: 10px; transform: rotate(45deg); }
body.menu-open .menu-btn span:nth-child(2) { top: 10px; transform: rotate(-45deg); }

.menu { position: fixed; inset: 0; z-index: 40; background: var(--bg-deep); display: flex; flex-direction: column; justify-content: center; padding: 0 var(--gutter); clip-path: inset(0 0 100% 0); transition: clip-path .8s var(--ease); }
body.menu-open .menu { clip-path: inset(0 0 0 0); }
.menu a { font-family: var(--display); font-weight: 300; text-transform: uppercase; letter-spacing: var(--track-title); font-size: clamp(44px, 8vw, 110px); line-height: 1.08; display: block; opacity: 0; transform: translateY(30px); transition: opacity .6s, transform .8s var(--ease), color .3s; }
.menu a:hover { color: var(--muted); }
body.menu-open .menu a { opacity: 1; transform: none; }
body.menu-open .menu a:nth-child(2) { transition-delay: .06s; }
body.menu-open .menu a:nth-child(3) { transition-delay: .12s; }
body.menu-open .menu a:nth-child(4) { transition-delay: .18s; }
.menu-mark { position: absolute; right: var(--gutter); top: 50%; transform: translateY(-50%); height: min(62vh, 520px); width: auto; opacity: .08; pointer-events: none; }
.menu-foot { position: absolute; bottom: 28px; left: var(--gutter); right: var(--gutter); display: flex; justify-content: space-between; color: var(--muted); font-size: 11px; letter-spacing: var(--track-label); text-transform: uppercase; }

/* ---------- Shared ---------- */
.display { font-family: var(--display); font-weight: 300; letter-spacing: .01em; }
.pill { display: inline-block; padding: 12px 28px; border: 1px solid var(--line-strong); font-family: var(--display); font-size: 12px; font-weight: 400; letter-spacing: .18em; text-transform: uppercase; transition: background .3s, color .3s, border-color .3s; }
.pill:hover { background: var(--fg); color: var(--bg); border-color: var(--fg); }
.ulink { font-family: var(--display); font-size: 12px; font-weight: 400; letter-spacing: .18em; text-transform: uppercase; display: inline-flex; align-items: center; gap: 14px; white-space: nowrap; }
.ulink::after { content: ""; width: 34px; height: 9px; background: currentColor; -webkit-mask: var(--arrow) no-repeat center / contain; mask: var(--arrow) no-repeat center / contain; transition: transform .5s var(--ease); }
.ulink:hover::after { transform: translateX(8px); }
.wrap { padding: 0 var(--gutter); }
.eyebrow { font-family: var(--display); font-size: 11px; font-weight: 400; color: var(--muted); letter-spacing: var(--track-label); text-transform: uppercase; }
/* Cantoneira fina acima do rótulo, como no material da marca */
.bracket { position: relative; padding: 18px 0 0 18px; }
.bracket::before { content: ""; position: absolute; left: 0; top: 0; width: 28px; height: 28px; border-top: 1px solid var(--muted); border-left: 1px solid var(--muted); }
/* Rótulo centralizado entre dois fios */
.ruled { display: inline-flex; align-items: center; gap: 18px; }
.ruled::before, .ruled::after { content: ""; width: 56px; height: 1px; background: var(--muted); }
/* Número dentro de um círculo fino */
.num { display: inline-grid; place-items: center; width: 44px; height: 44px; border: 1px solid var(--line-strong); border-radius: 50%; font-family: var(--display); font-size: 13px; font-weight: 400; letter-spacing: .04em; color: var(--fg); }

.reveal { opacity: 0; transform: translateY(40px); transition: opacity 1s var(--ease), transform 1.2s var(--ease); }
.reveal.in { opacity: 1; transform: none; }

/* ---------- Hero ---------- */
.hero { min-height: 100svh; display: grid; place-items: center; text-align: center; padding: 120px var(--gutter) 80px; position: relative; overflow: hidden; }
.hero::before { content: ""; position: absolute; inset: 0; z-index: 1; pointer-events: none; background: radial-gradient(ellipse 48% 38% at 50% 50%, rgba(10,10,10,.5), rgba(10,10,10,0) 100%); }
.hero-content { position: relative; z-index: 2; }
.hero-title { text-shadow: 0 2px 30px rgba(0,0,0,.45); }
.hero-meta { z-index: 2; }
.corner { position: absolute; z-index: 2; width: 44px; height: 44px; pointer-events: none; }
.corner.tl { left: var(--gutter); top: 84px; border-top: 1px solid var(--muted); border-left: 1px solid var(--muted); }
.corner.br { right: var(--gutter); bottom: 64px; border-bottom: 1px solid var(--muted); border-right: 1px solid var(--muted); }

/* Colagem de fotos da abertura */
.collage { position: absolute; inset: 0; }
.collage figure { position: absolute; overflow: hidden; width: var(--w); left: calc(5.5vw + var(--c) * 24vw + var(--ox)); top: calc(-24vh + var(--r) * 49.5vh + var(--oy)); }
.collage img { width: 100%; height: 100%; object-fit: cover; filter: brightness(.94); opacity: 0; transform: scale(1.15); transition: opacity 1.2s var(--ease), transform 1.6s var(--ease); transition-delay: calc(var(--i) * .08s); }
.collage.in img { opacity: 1; transform: none; }
.hero-title { font-size: clamp(30px, 5.4vw, 92px); line-height: 1.02; text-transform: uppercase; letter-spacing: var(--track-title); margin-bottom: 40px; }
.hero-title .line { display: block; }
.word { display: inline-block; white-space: nowrap; }
.ch { display: inline-block; opacity: 0; transform: translateY(.5em) rotate(8deg); filter: blur(8px); animation: drop 1.1s var(--ease) forwards; }
@keyframes drop { to { opacity: 1; transform: none; filter: blur(0); } }
.hero .pill { opacity: 0; animation: fade 1s 1.6s forwards; }
@keyframes fade { to { opacity: 1; } }
.hero-meta { position: absolute; bottom: 26px; left: var(--gutter); right: var(--gutter); display: flex; justify-content: space-between; align-items: flex-end; font-family: var(--display); font-size: 11px; color: var(--muted); letter-spacing: var(--track-label); text-transform: uppercase; }
.scroll-cue { display: inline-flex; align-items: flex-end; gap: 12px; }
.scroll-cue::after { content: ""; width: 9px; height: 34px; background: currentColor; -webkit-mask: var(--arrow-down) no-repeat center / contain; mask: var(--arrow-down) no-repeat center / contain; }

/* ---------- Statement ---------- */
.statement { text-align: center; padding: 120px var(--gutter) 140px; }
.statement p { font-size: clamp(26px, 3.6vw, 54px); line-height: 1.2; max-width: 1150px; margin: 0 auto 44px; }

/* ---------- Cases ---------- */
.case { border-top: 1px solid var(--line); padding: 28px 0 90px; display: flex; flex-direction: column; }
.case .shot { margin-top: auto; }
.case-head { display: flex; justify-content: space-between; align-items: baseline; gap: 24px; margin-bottom: 18px; }
.case-head h3 { font-size: clamp(26px, 2.6vw, 38px); line-height: 1.1; font-weight: 400; }
.case-cat { font-family: var(--display); font-size: 11px; font-weight: 400; letter-spacing: var(--track-label); text-transform: uppercase; color: var(--muted); margin-bottom: 12px; }
.case p { max-width: 460px; margin-bottom: 34px; color: var(--soft); }
.case-grid { display: grid; grid-template-columns: 1fr 1fr; column-gap: 14px; }
.shot { overflow: hidden; aspect-ratio: 4 / 3; background: var(--surface); }
.shot img { width: 100%; height: 100%; object-fit: cover; transform: scale(1.08); transition: transform 1.4s var(--ease); }
.shot.in img { transform: scale(1); }
.shot:hover img { transform: scale(1.03); }

/* ---------- Full image ---------- */
.full { height: 110vh; overflow: hidden; margin: 0 var(--gutter); position: relative; }
.full img { width: 100%; height: 130%; object-fit: cover; position: absolute; top: -15%; will-change: transform; }

/* ---------- About ---------- */
.about { display: grid; grid-template-columns: 1fr 1fr; gap: 40px; padding: 160px var(--gutter); }
.about h2 { font-size: clamp(40px, 5.4vw, 84px); line-height: 1; text-transform: uppercase; letter-spacing: var(--track-title); margin-top: 18px; }
.about-body p { font-family: var(--display); font-size: clamp(19px, 1.6vw, 24px); line-height: 1.45; margin-bottom: 22px; }
.about-body p.small { font-family: var(--text); font-size: 15px; line-height: 1.7; color: var(--soft); max-width: 520px; margin-bottom: 34px; }

/* ---------- Partners ---------- */
.partners { padding: 0 var(--gutter) 140px; }
.partners-head { display: flex; justify-content: space-between; align-items: baseline; border-top: 1px solid var(--line); padding-top: 28px; margin-bottom: 30px; }
.partners-head h2 { font-size: clamp(26px, 2.6vw, 38px); font-weight: 400; }
.partners img { width: 100%; filter: invert(1) grayscale(1) contrast(1.05); mix-blend-mode: lighten; opacity: .85; }

/* ---------- Rows (differentials / solutions) ---------- */
.section-title { text-align: center; padding: 0 var(--gutter) 70px; }
.section-title h2 { font-size: clamp(40px, 5.4vw, 84px); line-height: 1; text-transform: uppercase; letter-spacing: var(--track-title); margin: 22px 0 20px; }
.section-title p { color: var(--soft); max-width: 520px; margin: 0 auto; }
.rows { padding: 0 var(--gutter) 140px; }
.row { display: grid; grid-template-columns: 1.3fr .7fr 1.6fr; gap: 40px; border-top: 1px solid var(--line); padding: 34px 0 54px; }
.row-title { display: flex; flex-direction: column; align-items: flex-start; gap: 22px; }
.row h3 { font-size: clamp(24px, 2.2vw, 34px); line-height: 1.12; font-weight: 400; }
.row dt { font-family: var(--display); font-size: 11px; font-weight: 400; letter-spacing: var(--track-label); text-transform: uppercase; color: var(--muted); }
.row dd { margin: 4px 0 16px; color: var(--fg); }
.row .quote { font-size: 16px; max-width: 560px; color: var(--soft); }
.row ol { list-style: none; counter-reset: s; }
.row li { counter-increment: s; display: flex; gap: 20px; padding: 13px 0; border-bottom: 1px solid var(--line); font-family: var(--display); font-size: 12px; font-weight: 400; letter-spacing: .14em; text-transform: uppercase; color: var(--soft); }
.row li::before { content: counter(s, decimal-leading-zero); color: var(--muted); min-width: 22px; }

/* ---------- CTA + Footer ---------- */
.cta { text-align: center; padding: 40px var(--gutter) 120px; }
.cta .eyebrow { margin-bottom: 28px; }
.cta h2 { font-size: clamp(36px, 6.4vw, 100px); line-height: 1.04; text-transform: uppercase; letter-spacing: var(--track-title); margin-bottom: 40px; }
.footer-img { height: 70vh; margin: 0 var(--gutter); overflow: hidden; position: relative; }
.footer-img img { width: 100%; height: 130%; object-fit: cover; object-position: center 45%; position: absolute; top: -15%; will-change: transform; }
footer { padding: 60px var(--gutter) 30px; }
.foot-top { display: grid; grid-template-columns: 1.4fr 1fr 1fr; gap: 40px; }
.foot-top .logo img { height: 34px; margin-bottom: 22px; }
.foot-top p { color: var(--soft); max-width: 340px; margin-bottom: 30px; }
.foot-label { font-family: var(--display); font-size: 11px; font-weight: 400; letter-spacing: var(--track-label); text-transform: uppercase; color: var(--fg); margin-bottom: 6px; }
.foot-list a, .foot-list span { display: block; color: var(--muted); padding: 3px 0; transition: color .3s; }
.foot-list a:hover { color: var(--fg); }
.foot-bottom { margin-top: 60px; border-top: 1px solid var(--line); padding-top: 22px; display: flex; justify-content: space-between; gap: 20px; font-family: var(--display); font-size: 11px; color: var(--muted); letter-spacing: .2em; text-transform: uppercase; }
.big-word { display: block; width: 100%; height: auto; margin-top: 70px; opacity: .07; user-select: none; }

@media (max-width: 860px) {
  .case-grid, .about, .foot-top { grid-template-columns: 1fr; }
  .row { grid-template-columns: 1fr; gap: 16px; }
  .case-head { flex-direction: column; gap: 10px; }
  .about { padding: 110px var(--gutter); }
  .full { height: 70vh; }
  .foot-bottom { flex-direction: column; }
  .hero-meta span:nth-child(2) { display: none; }
  .corner { display: none; }
  .collage figure { width: 30vw; left: calc(-25vw + var(--c) * 39.5vw + var(--ox)); top: calc(-16vh + var(--r) * 52vh + var(--oy)); }
}
@media (prefers-reduced-motion: reduce) {
  .ch, .hero .pill { animation: none; opacity: 1; transform: none; filter: none; }
  .reveal { opacity: 1; transform: none; }
}

/* ---------- Case page ---------- */
a.shot { display: block; }
.case-head h3 a { transition: color .3s; }
.case-head h3 a:hover { color: var(--muted); }
.c-hero { height: 100svh; min-height: 560px; position: relative; overflow: hidden; }
.c-hero img { position: absolute; inset: -8% 0 auto 0; width: 100%; height: 116%; object-fit: cover; will-change: transform; }
.c-hero::after { content: ""; position: absolute; inset: 0; background: linear-gradient(to top, rgba(10,10,10,.88), rgba(10,10,10,0) 55%); }
.c-hero-text { position: absolute; z-index: 1; left: var(--gutter); right: var(--gutter); bottom: 34px; display: flex; justify-content: space-between; align-items: flex-end; gap: 24px; }
.c-hero h1 { font-size: clamp(40px, 7.4vw, 124px); line-height: .98; text-transform: uppercase; letter-spacing: var(--track-title); }
.c-hero .case-cat { margin: 0 0 12px; text-align: right; }
.c-intro { padding: 110px var(--gutter) 90px; }
.c-intro p { font-size: clamp(22px, 2.8vw, 40px); line-height: 1.25; max-width: 1100px; }
.c-body { display: grid; grid-template-columns: minmax(260px, 1fr) 2fr; gap: clamp(30px, 5vw, 80px); padding: 0 var(--gutter) 140px; align-items: start; }
.c-aside { position: sticky; top: 90px; }
.c-aside > div { border-top: 1px solid var(--line); padding: 14px 0 22px; }
.c-aside .h4 { font-family: var(--display); font-size: 11px; font-weight: 400; letter-spacing: var(--track-label); text-transform: uppercase; color: var(--muted); margin-bottom: 8px; }
.c-aside p, .c-aside li { color: var(--fg); list-style: none; }
.c-aside .syn { font-family: var(--display); font-size: 17px; line-height: 1.5; color: var(--soft); }
.c-aside .ulink { margin-top: 12px; }
.c-gallery { display: grid; gap: 14px; }
.c-gallery img { width: 100%; }
.c-next { display: block; border-top: 1px solid var(--line); margin: 0 var(--gutter); padding: 30px 0 0; }
.c-next-top { display: flex; justify-content: space-between; align-items: baseline; margin-bottom: 26px; }
.c-next h2 { font-size: clamp(40px, 7.4vw, 124px); line-height: .98; text-transform: uppercase; letter-spacing: var(--track-title); transition: color .3s; }
.c-next:hover h2 { color: var(--muted); }
.c-next .shot { aspect-ratio: 16 / 7; }
.c-more { padding: 140px var(--gutter) 60px; }
.c-more-head { display: flex; justify-content: space-between; align-items: baseline; margin-bottom: 30px; }
.c-more-head h2 { font-size: clamp(26px, 2.6vw, 38px); font-weight: 400; }
.c-more .case-grid { grid-template-columns: repeat(3, 1fr); }
.c-more .case { padding-bottom: 50px; }
.c-more .case h3 { font-size: 24px; font-weight: 400; margin-bottom: 18px; }

@media (max-width: 860px) {
  .c-body { grid-template-columns: 1fr; }
  .c-aside { position: static; }
  .c-hero-text { flex-direction: column; align-items: flex-start; }
  .c-hero .case-cat { text-align: left; }
  .c-more .case-grid { grid-template-columns: 1fr; }
  .c-next .shot { aspect-ratio: 4 / 3; }
}
/* Espaços abertos para fotos da galeria */
.slot { aspect-ratio: 4 / 5; border: 1px dashed var(--line-strong); display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 12px; color: var(--muted); text-align: center; padding: 20px; }
.slot-plus { font-family: var(--display); font-weight: 300; font-size: 48px; line-height: 1; color: var(--fg); }
.slot-label { font-family: var(--display); font-size: 11px; font-weight: 400; letter-spacing: var(--track-label); text-transform: uppercase; color: var(--fg); }
.slot code { font-size: 12px; background: var(--surface); padding: 4px 10px; word-break: break-all; }

.cta-sub { color: var(--soft); max-width: 460px; margin: -16px auto 32px; }
.quote.testimonial { font-style: italic; }

/* SEO: H1 descritivo acima do slogan; títulos só para leitores de tela */
.hero-kicker { font-family: var(--display); font-size: 11px; font-weight: 400; letter-spacing: var(--track-label); text-transform: uppercase; color: var(--soft); margin-bottom: 26px; opacity: 0; animation: fade 1s .2s forwards; }
.visually-hidden { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
:where(img[width]) { height: auto; }
/* Áreas de toque de pelo menos 44px no celular, sem mudar o visual:
   o espaço extra entra como padding e é compensado com margem negativa */
.menu-btn { width: 44px; height: 44px; margin: -12px -5px -12px 0; }
.menu-btn span { left: 5px; right: 5px; }
.menu-btn span:nth-child(1) { top: 18px; }
.menu-btn span:nth-child(2) { top: 25px; }
body.menu-open .menu-btn span:nth-child(1),
body.menu-open .menu-btn span:nth-child(2) { top: 22px; }
.logo { display: inline-block; padding: 10px 0; margin: -10px 0; }
.ulink { padding: 12px 0; margin: -12px 0; }
.foot-list a { padding: 10px 0; margin: -7px 0; }

/* Leitura da abertura: texto sobre a colagem com mais contraste */
.hero::before { background: radial-gradient(ellipse 64% 50% at 50% 50%, rgba(10,10,10,.85) 0%, rgba(10,10,10,.6) 50%, rgba(10,10,10,0) 100%); }
.collage img { filter: brightness(.8) saturate(.92); }
.hero-title { text-shadow: 0 2px 28px rgba(0,0,0,.85), 0 0 3px rgba(0,0,0,.5); }
.hero-kicker { font-size: 12px; line-height: 1.8; letter-spacing: .24em; color: var(--fg); max-width: 40ch; margin-left: auto; margin-right: auto; text-shadow: 0 1px 14px rgba(0,0,0,.95); }
.hero .pill { background: rgba(10,10,10,.6); -webkit-backdrop-filter: blur(8px); backdrop-filter: blur(8px); border-color: rgba(245,245,243,.55); }
.hero-meta { text-shadow: 0 1px 10px rgba(0,0,0,.95); }

/* Texto corrido: um pouco maior e menos fino no fundo preto */
.case p, .row .quote, .about-body p.small, .section-title p, .cta-sub, .c-aside p, .c-aside li { font-size: 16px; font-weight: 400; }
