/* =========================================================
   LUMINA — v4 · editorial, claro, com troca de cor por seção
   Paleta oficial: 60% claros · 30% marrom · 10% azul
   A cor do fundo muda conforme a seção (data-tone), como na Collins.
   ========================================================= */

/* Cores que mudam de tom com transição suave */
@property --bg     { syntax: "<color>"; inherits: true; initial-value: #F7F5F2; }
@property --texto  { syntax: "<color>"; inherits: true; initial-value: #2A1E18; }
@property --texto-suave { syntax: "<color>"; inherits: true; initial-value: #6E6158; }
@property --tinta  { syntax: "<color>"; inherits: true; initial-value: #3B2A22; }
@property --papel  { syntax: "<color>"; inherits: true; initial-value: #F7F5F2; }
@property --linha  { syntax: "<color>"; inherits: true; initial-value: rgba(59, 42, 34, .14); }
@property --acento { syntax: "<color>"; inherits: true; initial-value: #B08D62; }
@property --quadro { syntax: "<color>"; inherits: true; initial-value: #E4DAD0; }

:root {
  --off: #F7F5F2;
  --bege: #EDE7DF;
  --areia: #E4DAD0;
  --marrom: #3B2A22;
  --escuro: #1F1612;
  --cinza: #AFA79F;
  --azul: #A9BFCB;
  --ouro: #B08D62;

  --f-display: "Newsreader", "Iowan Old Style", Georgia, serif;
  --f-body: "Inter", system-ui, -apple-system, "Segoe UI", sans-serif;

  --gutter: clamp(20px, 5vw, 80px);
  --max: 1320px;
  --sec: clamp(112px, 15vw, 220px);
  --ease-out: cubic-bezier(.23, 1, .32, 1);
  --ease-io: cubic-bezier(.77, 0, .175, 1);
}

/* Tons das seções */
body {
  --bg: #F7F5F2; --texto: #2A1E18; --texto-suave: #6E6158; --tinta: #3B2A22; --papel: #F7F5F2;
  --linha: rgba(59, 42, 34, .14); --acento: #B08D62; --quadro: #E4DAD0;
}
body[data-tone="bege"] { --bg: #EDE7DF; --quadro: #E2D8CC; }
body[data-tone="escuro"] {
  --bg: #1F1612; --texto: #F2EDE6; --texto-suave: #AFA79F; --tinta: #F2EDE6; --papel: #1F1612;
  --linha: rgba(247, 245, 242, .16); --acento: #C9AA80; --quadro: #2C211B;
}
body[data-tone="marrom"] {
  --bg: #3B2A22; --texto: #F7F5F2; --texto-suave: #C4BAB0; --tinta: #F7F5F2; --papel: #3B2A22;
  --linha: rgba(247, 245, 242, .18); --acento: #A9BFCB; --quadro: #47342A;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  margin: 0; background: var(--bg); color: var(--texto);
  font-family: var(--f-body); font-size: 16px; line-height: 1.65;
  -webkit-font-smoothing: antialiased; overflow-x: hidden;
  transition: --bg .8s ease, --texto .8s ease, --texto-suave .8s ease, --tinta .8s ease, --papel .8s ease, --linha .8s ease, --acento .8s ease, --quadro .8s ease;
}
img, video { display: block; max-width: 100%; height: auto; }
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; cursor: pointer; }
::selection { background: var(--azul); color: var(--escuro); }
:focus-visible { outline: 2px solid var(--ouro); outline-offset: 4px; border-radius: 2px; }
.skip { position: absolute; left: -9999px; top: 8px; z-index: 100; background: var(--marrom); color: var(--off); padding: 10px 16px; }
.skip:focus { left: 8px; }
.wrap { width: 100%; max-width: var(--max); margin: 0 auto; padding: 0 var(--gutter); }

/* ---------- Tipografia ---------- */
.eyebrow { font-size: 12px; letter-spacing: .02em; color: var(--texto-suave); font-weight: 500; display: inline-block; }
.display { font-family: var(--f-display); font-weight: 400; letter-spacing: -.012em; line-height: 1.08; margin: 0; font-optical-sizing: auto; }
.display em, .serif-it { font-style: italic; color: var(--acento); }
h2.display { font-size: clamp(32px, 3.6vw, 54px); }
h3 { font-family: var(--f-display); font-weight: 400; margin: 0; }
.lead { font-size: clamp(16px, 1.2vw, 18px); color: var(--texto-suave); max-width: 44ch; margin: 0; }
strong { font-weight: 600; color: var(--tinta); }

/* ---------- Botões (editoriais, leves) ---------- */
.btn {
  display: inline-flex; align-items: center; gap: 10px;
  padding: 11px 20px; border-radius: 999px;
  font-size: 13px; font-weight: 500; letter-spacing: .01em; line-height: 1;
  border: 1px solid color-mix(in srgb, var(--tinta) 38%, transparent); background: transparent; color: var(--tinta);
  transition: background-color .25s ease, color .25s ease, border-color .25s ease, transform .16s var(--ease-out);
}
.btn:active { transform: scale(.97); }
.btn .arr { display: inline-block; transition: transform .25s var(--ease-out); }
.btn.solid { background: var(--tinta); border-color: var(--tinta); color: var(--papel); }
.btn.light { border-color: rgba(247, 245, 242, .5); color: var(--off); }
@media (hover: hover) and (pointer: fine) {
  .btn:hover { background: var(--tinta); border-color: var(--tinta); color: var(--papel); }
  .btn.solid:hover { background: color-mix(in srgb, var(--tinta) 85%, var(--bg)); }
  .btn.light:hover { background: var(--off); color: var(--escuro); border-color: var(--off); }
  .btn:hover .arr { transform: translateX(3px); }
}
.link-line { position: relative; display: inline-flex; gap: 8px; align-items: center; font-size: 13px; font-weight: 500; padding-bottom: 3px; }
.link-line::after { content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 1px; background: currentColor; transform-origin: left; transition: transform .3s var(--ease-out); }
@media (hover: hover) and (pointer: fine) { .link-line:hover::after { transform: scaleX(.3); } }

/* ---------- Header ---------- */
.header { position: fixed; inset: 0 0 auto 0; z-index: 50; transition: transform .5s var(--ease-out), background-color .3s ease; }
.header .wrap { display: flex; align-items: center; justify-content: space-between; height: 76px; }
.header.scrolled { background: color-mix(in srgb, var(--bg) 88%, transparent); backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px); }
.header.hide { transform: translateY(-100%); }
.logo { position: relative; z-index: 60; display: block; }
.logo img { height: 26px; width: auto; transition: opacity .5s ease; }
.logo .logo-claro { position: absolute; inset: 0; opacity: 0; }
body[data-tone="escuro"] .logo .logo-claro, body[data-tone="marrom"] .logo .logo-claro { opacity: 1; }
body[data-tone="escuro"] .logo .logo-escuro, body[data-tone="marrom"] .logo .logo-escuro { opacity: 0; }
.nav { display: flex; align-items: center; gap: clamp(20px, 2.6vw, 36px); }
.nav-list { display: flex; align-items: center; gap: clamp(20px, 2.6vw, 36px); list-style: none; margin: 0; padding: 0; }
.nav-list a { font-size: 13px; position: relative; padding: 6px 0; color: var(--texto); display: inline-block; }
.nav-list a::after { content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 1px; background: currentColor; transform: scaleX(0); transform-origin: left; transition: transform .3s var(--ease-out); }
.nav-list a[aria-current="page"]::after { transform: scaleX(1); }
@media (hover: hover) and (pointer: fine) { .nav-list a:hover::after { transform: scaleX(1); } }
.nav-list .n, .nav-list .go, .nav-foot, .nav-top { display: none; }
.menu-btn { display: none; background: none; border: 0; padding: 10px; margin-right: -10px; }
.menu-btn .bars span { display: block; width: 22px; height: 1.5px; background: var(--tinta); transition: transform .35s var(--ease-out); }
.menu-btn .bars span + span { margin-top: 6px; }

/* Menu mobile: painel com cara de menu (numerado, com linhas e contatos) */
@media (max-width: 860px) {
  .menu-btn { display: inline-flex; align-items: center; gap: 10px; position: relative; z-index: 60; font-size: 12px; font-weight: 500; color: var(--tinta); }
  .menu-btn .lbl { letter-spacing: .02em; }
  .nav {
    position: fixed; inset: 0; z-index: 55; display: flex; flex-direction: column; align-items: stretch; gap: 0;
    background: var(--off); color: #2A1E18; padding: 96px var(--gutter) 28px; overflow-y: auto;
    clip-path: inset(0 0 100% 0); visibility: hidden;
    transition: clip-path .6s var(--ease-io), visibility 0s linear .6s;
  }
  body.menu-open .nav { clip-path: inset(0 0 0 0); visibility: visible; transition: clip-path .6s var(--ease-io), visibility 0s; }
  .nav-top { display: block; font-size: 12px; color: #6E6158; padding-bottom: 14px; border-bottom: 1px solid rgba(59, 42, 34, .14); }
  .nav-list { flex-direction: column; align-items: stretch; gap: 0; }
  .nav-list li { border-bottom: 1px solid rgba(59, 42, 34, .14); opacity: 0; transform: translateY(14px); transition: opacity .5s ease, transform .6s var(--ease-out); }
  body.menu-open .nav-list li { opacity: 1; transform: none; transition-delay: calc(.18s + var(--i, 0) * .06s); }
  .nav-list a { display: flex; align-items: baseline; gap: 16px; padding: 20px 0; font-family: var(--f-display); font-size: clamp(30px, 8vw, 40px); line-height: 1; color: #2A1E18; }
  .nav-list a::after { display: none; }
  .nav-list .n { display: inline; font-family: var(--f-body); font-size: 11px; color: #6E6158; font-variant-numeric: tabular-nums; width: 20px; }
  .nav-list .go { display: inline; margin-left: auto; font-family: var(--f-body); font-size: 16px; color: var(--ouro); transition: transform .25s var(--ease-out); }
  .nav-list a:active .go { transform: translateX(4px); }
  .nav-list a[aria-current="page"] { color: var(--ouro); }
  .nav > .btn { display: none; }
  .nav-foot { display: grid; gap: 22px; margin-top: auto; padding-top: 40px; opacity: 0; transition: opacity .5s ease; }
  body.menu-open .nav-foot { opacity: 1; transition-delay: .45s; }
  .nav-foot .btn { justify-self: start; background: #3B2A22; border-color: #3B2A22; color: #F7F5F2; padding: 14px 22px; }
  .nav-foot dl { margin: 0; display: grid; grid-template-columns: auto 1fr; gap: 8px 18px; font-size: 13px; }
  .nav-foot dt { color: #6E6158; }
  .nav-foot dd { margin: 0; color: #2A1E18; }
  body.menu-open { overflow: hidden; }
  body.menu-open .header { transform: none; background: transparent; backdrop-filter: none; -webkit-backdrop-filter: none; }
  body.menu-open .logo .logo-escuro { opacity: 1; }
  body.menu-open .logo .logo-claro { opacity: 0; }
  body.menu-open .menu-btn { color: #3B2A22; }
  body.menu-open .menu-btn .bars span { background: #3B2A22; }
  body.menu-open .menu-btn .bars span:first-child { transform: translateY(3.75px) rotate(45deg); }
  body.menu-open .menu-btn .bars span:last-child { transform: translateY(-3.75px) rotate(-45deg); }
}

/* ---------- Abertura ---------- */
.hero { padding: clamp(150px, 22vh, 230px) 0 0; text-align: center; }
.hero .eyebrow { margin-bottom: 28px; }
.hero h1 { font-size: clamp(34px, 4.6vw, 70px); max-width: 24ch; margin: 0 auto; text-wrap: balance; }
.hero h1 .ln { display: block; overflow: hidden; padding-bottom: .08em; }
.hero h1 .ln > span { display: inline-block; transform: translateY(100%); opacity: 0; transition: transform 1s var(--ease-out), opacity 1s ease; }
.is-loaded .hero h1 .ln > span { transform: none; opacity: 1; }
.hero h1 .ln:nth-child(2) > span { transition-delay: .08s; }
.hero h1 .ln:nth-child(3) > span { transition-delay: .16s; }
.hero p.lead { margin: 30px auto 0; max-width: 46ch; }
.hero .btn { margin-top: 36px; }
.fade-in { opacity: 0; transform: translateY(10px); transition: opacity .9s ease, transform .9s var(--ease-out); }
.is-loaded .fade-in { opacity: 1; transform: none; transition-delay: .45s; }

/* mídia que se abre com a rolagem (inspirada na Collins) */
.hero-media { margin-top: clamp(80px, 12vh, 140px); padding: 0 var(--gutter); }
.hero-media .frame {
  max-width: 1600px; margin: 0 auto; border-radius: 6px; overflow: hidden;
  clip-path: inset(0 calc(var(--open, 0) * 1%) round 6px);
}
.hero-media img, .hero-media video { width: 100%; aspect-ratio: 16 / 9; object-fit: cover; transform: scale(calc(1.08 - var(--zoom, 0) * .08)); }
@media (max-width: 760px) { .hero-media img, .hero-media video { aspect-ratio: 3 / 2; } }

/* ---------- Manifesto + valores ---------- */
.manifesto { padding: var(--sec) 0; }
.manifesto .grid { display: grid; grid-template-columns: 1fr 2.4fr; gap: 40px; align-items: start; }
.manifesto .eyebrow { padding-top: .7em; }
.manifesto-text { font-family: var(--f-display); font-size: clamp(26px, 2.9vw, 44px); line-height: 1.28; letter-spacing: -.01em; margin: 0; max-width: 30ch; }
.manifesto-text em { font-style: italic; color: var(--acento); }
.values { margin-top: clamp(80px, 10vw, 140px); display: grid; grid-template-columns: repeat(5, 1fr); gap: 24px; }
.value { border-top: 1px solid var(--linha); padding-top: 22px; }
.value .sym { width: 38px; height: 38px; color: var(--acento); margin-bottom: 18px; overflow: visible; }
.value .sym * { fill: none; stroke: currentColor; stroke-width: 1.1; stroke-linecap: round; stroke-linejoin: round; vector-effect: non-scaling-stroke; }
.value .sym .dot { fill: currentColor; stroke: none; }
/* o traço se desenha quando o valor aparece */
.value .sym .draw { stroke-dasharray: 1; stroke-dashoffset: 1; transition: stroke-dashoffset 1.6s var(--ease-out); transition-delay: calc(var(--d, 0s) + .2s); }
.value.in .sym .draw { stroke-dashoffset: 0; }
.value .sym .dot { opacity: 0; transition: opacity .8s ease; transition-delay: calc(var(--d, 0s) + .9s); }
.value.in .sym .dot { opacity: 1; }
.value h4 { margin: 0 0 6px; font-family: var(--f-display); font-weight: 400; font-size: 21px; }
.value p { margin: 0; font-size: 14px; color: var(--texto-suave); line-height: 1.5; }
@media (max-width: 860px) {
  .manifesto .grid { grid-template-columns: 1fr; gap: 20px; }
  .values { grid-template-columns: 1fr 1fr; row-gap: 40px; }
  .value:last-child { grid-column: 1 / -1; }
}

/* ---------- Soluções (linhas editoriais) ---------- */
.solucoes { padding: 0 0 var(--sec); }
.sec-head { display: flex; justify-content: space-between; align-items: end; gap: 32px; flex-wrap: wrap; margin-bottom: clamp(56px, 7vw, 96px); }
.sec-head .eyebrow { display: block; margin-bottom: 16px; }
.sec-head h2 { max-width: 18ch; }
.service { border-top: 1px solid var(--linha); padding: clamp(40px, 5vw, 64px) 0 clamp(64px, 8vw, 110px); display: grid; grid-template-columns: 5fr 7fr; gap: clamp(28px, 5vw, 80px); }
.service:last-of-type { border-bottom: 1px solid var(--linha); }
.service-title { position: sticky; top: 110px; align-self: start; }
.service-title .num { display: block; font-size: 13px; color: var(--texto-suave); margin-bottom: 18px; font-variant-numeric: tabular-nums; }
.service-title h3 { font-size: clamp(38px, 4.4vw, 66px); line-height: 1.02; letter-spacing: -.02em; font-weight: 400; }
.service-title p { margin: 22px 0 0; color: var(--texto-suave); max-width: 34ch; }
.service .frame { border-radius: 6px; overflow: hidden; background: var(--quadro); }
.service .frame img { width: 100%; aspect-ratio: 3 / 2; object-fit: cover; }
.svc-items { list-style: none; margin: 40px 0 0; padding: 0; display: grid; grid-template-columns: 1fr 1fr; gap: 28px 40px; }
.svc-items li b { display: block; font-weight: 500; font-size: 15px; color: var(--texto); margin-bottom: 4px; }
.svc-items li span { display: block; font-size: 14px; color: var(--texto-suave); line-height: 1.55; }
.service .note { margin: 32px 0 0; font-size: 14px; color: var(--texto-suave); }
.service .note b { color: var(--texto); font-weight: 500; }
.service .link-line { margin-top: 32px; }
@media (max-width: 900px) {
  .service { grid-template-columns: 1fr; }
  .service-title { position: static; }
  .svc-items { grid-template-columns: 1fr; gap: 20px; }
}

/* ---------- Microsite Lumina (seção escura com vídeo) ---------- */
.microsite { padding: var(--sec) 0; }
.ms-grid { display: grid; grid-template-columns: 1.15fr .85fr; gap: clamp(48px, 7vw, 120px); align-items: center; }
.microsite .eyebrow { display: block; margin-bottom: 16px; }
.microsite h2 { max-width: 15ch; }
.microsite .lead { margin-top: 26px; max-width: 46ch; }
.ms-feats { list-style: none; margin: clamp(40px, 5vw, 56px) 0 0; padding: 0; border-top: 1px solid var(--linha); }
.ms-feats li { display: grid; grid-template-columns: 34px 1fr; gap: 14px; align-items: baseline; padding: 16px 0; border-bottom: 1px solid var(--linha); }
.ms-feats .n { font-size: 11px; color: var(--texto-suave); font-variant-numeric: tabular-nums; }
.ms-feats b { font-weight: 500; font-size: 15px; display: block; }
.ms-feats span { font-size: 14px; color: var(--texto-suave); }
.ms-close { margin: 36px 0 0; font-family: var(--f-display); font-size: clamp(20px, 1.8vw, 24px); line-height: 1.35; max-width: 34ch; }
.ms-close em { color: var(--acento); }
.microsite .btn { margin-top: 32px; }
.ms-media { position: relative; justify-self: center; width: min(100%, 380px); }
.ms-media .frame { border-radius: 10px; overflow: hidden; background: var(--quadro); aspect-ratio: 9 / 16; }
.ms-media video, .ms-media img { width: 100%; height: 100%; object-fit: cover; }
.ms-media figcaption { margin-top: 14px; font-size: 12px; color: var(--texto-suave); display: flex; justify-content: space-between; gap: 12px; }
.ms-play { position: absolute; right: 14px; top: 14px; width: 36px; height: 36px; border-radius: 50%; border: 1px solid rgba(247, 245, 242, .45); background: rgba(31, 22, 18, .35); color: #F7F5F2; display: grid; place-items: center; font-size: 11px; backdrop-filter: blur(6px); -webkit-backdrop-filter: blur(6px); }
@media (max-width: 900px) {
  .ms-grid { grid-template-columns: 1fr; }
  .ms-media { width: min(100%, 340px); }
}

/* ---------- Projetos em destaque ---------- */
.projetos { padding: var(--sec) 0; overflow: hidden; }
.proj-head { display: flex; justify-content: space-between; align-items: end; gap: 32px; flex-wrap: wrap; margin-bottom: 56px; }
.proj-head .eyebrow { display: block; margin-bottom: 16px; }
.proj-head .lead { margin-top: 18px; }
.proj-actions { display: flex; align-items: center; gap: 18px; }
.arrows { display: flex; gap: 8px; }
.arrows button { width: 44px; height: 44px; border-radius: 50%; border: 1px solid color-mix(in srgb, var(--tinta) 32%, transparent); background: transparent; color: var(--tinta); display: grid; place-items: center; transition: background-color .2s ease, color .2s ease, opacity .2s ease, transform .16s var(--ease-out); }
.arrows svg { width: 16px; height: 16px; fill: none; stroke: currentColor; stroke-width: 1.3; stroke-linecap: round; stroke-linejoin: round; }
.arrows button:active:not(:disabled) { transform: scale(.94); }
.arrows button:disabled { opacity: .3; cursor: default; }
@media (hover: hover) and (pointer: fine) { .arrows button:hover:not(:disabled) { background: var(--tinta); color: var(--papel); } }
.carousel { display: flex; gap: clamp(16px, 1.8vw, 24px); overflow-x: auto; scroll-snap-type: x mandatory; padding: 0 var(--gutter); scroll-padding-inline: var(--gutter); scrollbar-width: none; cursor: grab; overscroll-behavior-x: contain; }
.carousel::-webkit-scrollbar { display: none; }
.carousel.dragging { cursor: grabbing; scroll-snap-type: none; }
.slide { flex: none; width: min(80vw, 560px); scroll-snap-align: start; margin: 0; }
.slide .frame { border-radius: 6px; overflow: hidden; background: var(--quadro); }
.slide .frame img { width: 100%; aspect-ratio: 3 / 2; object-fit: cover; transition: transform .6s var(--ease-out); }
@media (hover: hover) and (pointer: fine) { .slide:hover .frame img { transform: scale(1.03); } }
.slide figcaption { display: flex; justify-content: space-between; gap: 16px; margin-top: 16px; align-items: baseline; }
.slide figcaption b { font-family: var(--f-display); font-weight: 400; font-size: 22px; }
.slide figcaption span { font-size: 12px; color: var(--texto-suave); text-align: right; }
@media (max-width: 640px) { .slide { width: 84vw; } .proj-actions .arrows { display: none; } }

/* ---------- Método ---------- */
.metodo { padding: var(--sec) 0; }
.metodo .eyebrow { display: block; margin-bottom: 16px; }
.metodo h2 { max-width: 20ch; }
.metodo .lead { margin-top: 22px; }
.steps { list-style: none; padding: 0; margin: clamp(72px, 9vw, 120px) 0 0; display: grid; grid-template-columns: repeat(4, 1fr); gap: 32px; }
.steps li { border-top: 1px solid var(--linha); padding-top: 22px; position: relative; }
.steps li::before { content: ""; position: absolute; left: 0; top: -1px; height: 1px; width: 100%; background: var(--acento); transform: scaleX(0); transform-origin: left; transition: transform 1.2s var(--ease-out); transition-delay: calc(var(--i, 0) * .15s); }
.steps.in li::before { transform: scaleX(1); }
.steps .n { font-size: 13px; color: var(--texto-suave); font-variant-numeric: tabular-nums; }
.steps h3 { font-size: clamp(24px, 2.2vw, 32px); margin: 10px 0 10px; }
.steps p { margin: 0; color: var(--texto-suave); font-size: 15px; max-width: 28ch; }
@media (max-width: 860px) { .steps { grid-template-columns: 1fr 1fr; row-gap: 48px; } }
@media (max-width: 520px) { .steps { grid-template-columns: 1fr; } }

/* ---------- Contato ---------- */
.contato { padding: var(--sec) 0; text-align: center; }
.contato h2 { max-width: 18ch; margin: 0 auto; }
.contato .lead { margin: 22px auto 0; }
.ct-direct { display: flex; justify-content: center; gap: 12px 36px; flex-wrap: wrap; margin-top: 32px; }
.ct-direct a { font-size: 14px; }
.ct-direct small { display: block; font-size: 11px; color: var(--texto-suave); margin-bottom: 2px; }
.form { max-width: 760px; margin: clamp(56px, 7vw, 88px) auto 0; text-align: left; display: grid; grid-template-columns: 1fr 1fr; gap: 28px 32px; }
.form .full { grid-column: 1 / -1; }
.field { display: grid; gap: 6px; }
.field label, .field legend { font-size: 12px; color: var(--texto-suave); font-weight: 500; padding: 0; }
.field input, .field textarea { width: 100%; background: transparent; border: 0; border-bottom: 1px solid color-mix(in srgb, var(--tinta) 28%, transparent); padding: 10px 0; font: inherit; font-size: 16px; color: var(--texto); border-radius: 0; transition: border-color .2s ease; }
.field textarea { resize: vertical; min-height: 84px; }
.field input:focus, .field textarea:focus { outline: none; border-color: var(--tinta); }
fieldset.field { border: 0; margin: 0; padding: 0; }
.chips { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 8px; }
.chip { position: relative; }
.chip input { position: absolute; opacity: 0; pointer-events: none; }
.chip span { display: inline-block; padding: 8px 15px; border-radius: 999px; border: 1px solid color-mix(in srgb, var(--tinta) 22%, transparent); font-size: 13px; cursor: pointer; user-select: none; transition: background-color .2s ease, color .2s ease, border-color .2s ease, transform .16s var(--ease-out); }
.chip span:active { transform: scale(.96); }
.chip input:checked + span { background: var(--tinta); color: var(--papel); border-color: var(--tinta); }
.chip input:focus-visible + span { outline: 2px solid var(--ouro); outline-offset: 3px; }
.form-actions { grid-column: 1 / -1; display: flex; justify-content: center; margin-top: 8px; }
.form-ok { display: none; grid-column: 1 / -1; text-align: center; padding: 40px 0; }
.form-ok h3 { font-size: 30px; margin-bottom: 8px; }
.form-ok p { margin: 0; color: var(--texto-suave); }
.form.sent > :not(.form-ok) { display: none; }
.form.sent .form-ok { display: block; animation: fadeUp .6s var(--ease-out); }
@keyframes fadeUp { from { opacity: 0; transform: translateY(10px); } }
@media (max-width: 640px) { .form { grid-template-columns: 1fr; } }

/* ---------- Rodapé (centrado, sem menu) ---------- */
.footer { background: var(--escuro); color: var(--cinza); padding: clamp(110px, 14vw, 180px) 0 36px; text-align: center; }
.footer-logo img { height: 34px; width: auto; margin: 0 auto; }
.footer-tag { margin: 18px 0 0; font-size: 12px; color: var(--cinza); }
.footer-contact { margin: clamp(48px, 6vw, 72px) 0 0; display: flex; justify-content: center; gap: 10px 36px; flex-wrap: wrap; font-size: 14px; }
.footer-contact a { color: var(--off); transition: color .2s ease; }
@media (hover: hover) and (pointer: fine) { .footer-contact a:hover { color: var(--ouro); } }
.footer .btn { margin-top: 40px; }
.footer-bottom { margin-top: clamp(80px, 10vw, 140px); display: flex; justify-content: space-between; gap: 16px; font-size: 12px; flex-wrap: wrap; text-align: left; }
.footer-bottom a:hover { color: var(--off); }

/* ---------- Página Projetos ---------- */
.page-hero { padding: clamp(150px, 22vh, 220px) 0 clamp(72px, 9vw, 120px); }
.page-hero .wrap { display: grid; grid-template-columns: 1.3fr 1fr; gap: 40px; align-items: end; }
.page-hero h1 { font-size: clamp(44px, 7vw, 112px); line-height: .98; letter-spacing: -.025em; margin-top: 22px; }
.page-hero h1 .ln { display: block; overflow: hidden; padding-bottom: .08em; }
.page-hero h1 .ln > span { display: inline-block; transform: translateY(100%); opacity: 0; transition: transform 1s var(--ease-out), opacity 1s ease; }
.page-hero h1 .ln + .ln > span { transition-delay: .08s; }
.is-loaded .page-hero h1 .ln > span { transform: none; opacity: 1; }
.page-hero .lead { max-width: 40ch; }
.page-hero .stats { display: flex; gap: 36px; margin-top: 32px; }
.page-hero .stats b { display: block; font-family: var(--f-display); font-weight: 400; font-size: 36px; line-height: 1; color: var(--texto); }
.page-hero .stats span { font-size: 12px; color: var(--texto-suave); }
@media (max-width: 860px) { .page-hero .wrap { grid-template-columns: 1fr; } }

/* Abas */
.tabs-bar { position: sticky; top: 0; z-index: 20; background: color-mix(in srgb, var(--bg) 92%, transparent); backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px); border-bottom: 1px solid var(--linha); transition: top .5s var(--ease-out); }
body:has(.header:not(.hide)) .tabs-bar { top: 76px; }
.tabs { display: flex; gap: clamp(20px, 3vw, 44px); overflow-x: auto; scrollbar-width: none; }
.tabs::-webkit-scrollbar { display: none; }
.tab { flex: none; background: none; border: 0; padding: 20px 0 18px; font-size: 14px; color: var(--texto-suave); position: relative; transition: color .25s ease; }
.tab sup { font-size: 10px; margin-left: 4px; }
.tab::after { content: ""; position: absolute; left: 0; right: 0; bottom: -1px; height: 1px; background: var(--tinta); transform: scaleX(0); transform-origin: left; transition: transform .45s var(--ease-out); }
.tab[aria-selected="true"] { color: var(--texto); }
.tab[aria-selected="true"]::after { transform: scaleX(1); }
@media (hover: hover) and (pointer: fine) { .tab:hover { color: var(--texto); } }

.portfolio { padding: clamp(56px, 7vw, 96px) 0 var(--sec); }
.panel-intro { display: flex; justify-content: space-between; align-items: end; gap: 24px; flex-wrap: wrap; margin-bottom: clamp(36px, 4vw, 56px); }
.panel-intro h2 { font-size: clamp(32px, 3.6vw, 54px); }
.panel-intro p { margin: 10px 0 0; color: var(--texto-suave); max-width: 52ch; }

/* Um projeto por vez, com setas */
.viewer { position: relative; }
.case { display: grid; grid-template-columns: 1.55fr 1fr; gap: clamp(28px, 4.5vw, 72px); align-items: center; margin: 0; }
.js .viewer .case { display: none; }
.js .viewer .case.on { display: grid; animation: caseIn .7s var(--ease-out); }
.js .viewer .case.on.back { animation-name: caseInBack; }
@keyframes caseIn { from { opacity: 0; transform: translateX(18px); } }
@keyframes caseInBack { from { opacity: 0; transform: translateX(-18px); } }
.case + .case { margin-top: 80px; }
.js .viewer .case + .case { margin-top: 0; }
.case .frame { border-radius: 8px; overflow: hidden; background: var(--quadro); cursor: zoom-in; }
.case .frame img { width: 100%; aspect-ratio: 3 / 2; object-fit: cover; }
.case-txt .count { font-size: 12px; color: var(--texto-suave); font-variant-numeric: tabular-nums; }
.case-txt h3 { font-size: clamp(32px, 3.2vw, 48px); line-height: 1.04; letter-spacing: -.015em; margin: 14px 0 0; }
.case-txt .kind { margin: 10px 0 0; font-size: 13px; color: var(--acento); }
.case-txt p.story { margin: 24px 0 0; color: var(--texto-suave); max-width: 44ch; }
.case-txt ul { list-style: none; padding: 0; margin: 24px 0 0; display: flex; flex-wrap: wrap; gap: 8px; }
.case-txt li { font-size: 12px; padding: 6px 12px; border-radius: 999px; border: 1px solid var(--linha); }
.viewer-nav { display: flex; align-items: center; justify-content: space-between; gap: 20px; margin-top: clamp(32px, 4vw, 48px); padding-top: 22px; border-top: 1px solid var(--linha); }
.viewer-nav .progress { flex: 1; max-width: 360px; height: 1px; background: var(--linha); position: relative; }
.viewer-nav .progress i { position: absolute; left: 0; top: 0; bottom: 0; background: var(--tinta); width: 100%; transform-origin: left; transform: scaleX(var(--p, 0)); transition: transform .6s var(--ease-out); }
.viewer-nav .label { font-size: 12px; color: var(--texto-suave); }
.no-js-only { display: none; }
@media (max-width: 860px) {
  .case { grid-template-columns: 1fr; gap: 24px; }
  .viewer-nav .progress { display: none; }
}

.page-cta { padding: var(--sec) 0; text-align: center; }
.page-cta h2 { max-width: 16ch; margin: 0 auto 36px; }

/* Lightbox */
.lightbox { position: fixed; inset: 0; z-index: 90; background: rgba(31, 22, 18, .95); display: grid; place-items: center; padding: 24px; opacity: 0; pointer-events: none; transition: opacity .3s ease; }
.lightbox.open { opacity: 1; pointer-events: auto; }
.lightbox figure { margin: 0; max-width: min(1400px, 100%); transform: scale(.97); transition: transform .3s var(--ease-out); }
.lightbox.open figure { transform: none; }
.lightbox img { max-height: 84vh; width: auto; margin: 0 auto; border-radius: 6px; }
.lightbox .lb-close { position: absolute; top: 20px; right: 20px; background: transparent; border: 1px solid rgba(247, 245, 242, .3); color: var(--off); width: 44px; height: 44px; border-radius: 50%; font-size: 16px; display: grid; place-items: center; }

/* ---------- Revelações suaves ---------- */
[data-reveal] { opacity: 0; transform: translateY(12px); transition: opacity 1s ease, transform 1s var(--ease-out); transition-delay: var(--d, 0s); }
[data-reveal].in { opacity: 1; transform: none; }
.reveal-img { opacity: 0; transition: opacity 1.2s ease; }
.reveal-img img { transform: scale(1.04); transition: transform 1.6s var(--ease-out); }
.reveal-img.in { opacity: 1; }
.reveal-img.in img { transform: none; }

/* ---------- Movimento reduzido ---------- */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { transition-duration: .2s !important; animation-duration: .2s !important; transition-delay: 0s !important; }
  [data-reveal], .fade-in, .hero h1 .ln > span, .page-hero h1 .ln > span { transform: none !important; }
  .reveal-img img, .hero-media img { transform: none !important; }
  .hero-media .frame { clip-path: none; }
  .value .sym .draw { stroke-dashoffset: 0; }
  .btn:active, .arrows button:active, .chip span:active { transform: none; }
}

/* botão-imagem dos projetos */
button.frame { display: block; width: 100%; border: 0; padding: 0; font: inherit; color: inherit; }
.panel[hidden] { display: none; }
@media (max-width: 860px) {
  /* setas sempre ao alcance do polegar */
  .viewer-nav { position: sticky; bottom: 0; z-index: 5; margin-top: 24px; padding: 12px 0 calc(12px + env(safe-area-inset-bottom)); background: color-mix(in srgb, var(--bg) 94%, transparent); backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px); }
}

/* ===== v4.1 — abertura no estilo Collins: frase, vídeo, texto ===== */
.hero h1.hero-phrase { font-size: clamp(56px, 10.5vw, 176px); line-height: .94; letter-spacing: -.035em; max-width: none; }
.hero-phrase .ln:nth-child(2) > span { transition-delay: .1s; }
.hero-media .frame { width: clamp(260px, 30vw, 460px); max-width: 100%; }
.hero-media video { aspect-ratio: 9 / 16; height: auto; }
@media (max-width: 760px) { .hero-media video { aspect-ratio: 9 / 16; } .hero-media .frame { width: min(78vw, 360px); } }
.hero-after { text-align: center; padding-top: clamp(72px, 9vw, 130px); }
.hero-after h2 { font-size: clamp(30px, 3.6vw, 54px); max-width: 21ch; margin: 0 auto; text-wrap: balance; }
.hero-after .lead { margin: 26px auto 0; max-width: 48ch; }

/* negrito nas palavras-chave: no título serifado usa o peso 500 */
.display strong, h3 strong, .manifesto-text strong { font-weight: 500; color: inherit; }
.lead strong, p strong, li strong { font-weight: 600; color: var(--texto); }

/* Microsite: agora com o mockup horizontal do painel */
.ms-media { width: 100%; }
.ms-media .frame { aspect-ratio: auto; border-radius: 8px; }
.ms-media .frame img { width: 100%; height: auto; aspect-ratio: 3 / 2; object-fit: cover; }
@media (min-width: 901px) {
  .ms-grid { grid-template-columns: 1fr 1.1fr; align-items: start; }
  .ms-media { position: sticky; top: 120px; }
}
