/* Portfólio 2 · Frentes — escuro, tipografia larga; cada frente da pessoa ocupa a tela e troca com WebGL.
   Cores da marca: --c1..--c6 vêm do site.json → cores. --c1 = acento (botões, aba ativa, detalhes). */
:root {
  --c1: #E8B24C; --c2: #3D7BE0; --c3: #D9534F; --c4: #2E9E7A; --c5: #141418; --c6: #8A8F99;
  --bg: #0C0C0E; --bg-2: #16161A; --fg: #F2F0EA; --muted: #A9A7A0; --line: rgba(242, 240, 234, .14);
  --accent: var(--c1); --on-accent: #0C0C0E;
  --f-display: "Unbounded", system-ui, sans-serif;
  --f-text: "Manrope", system-ui, sans-serif;
  --gut: clamp(16px, 4vw, 56px);
  --hh: 68px;
}
*, *::before, *::after { box-sizing: border-box; }
* { margin: 0; padding: 0; }
html { -webkit-text-size-adjust: 100%; scrollbar-gutter: stable; background: var(--bg); }
html:not(.has-lenis) { scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) { html:not(.has-lenis) { scroll-behavior: auto; } }
body { font: 400 1.0625rem/1.6 var(--f-text); color: var(--fg); background: var(--bg); overflow-x: clip; -webkit-font-smoothing: antialiased; }
img { display: block; max-width: 100%; height: auto; }
a { color: inherit; }
ul { list-style: none; }
button { font: inherit; color: inherit; }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; border-radius: 6px; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); clip-path: inset(50%); white-space: nowrap; }
.skip { position: absolute; left: 12px; top: -60px; z-index: 100; background: var(--accent); color: var(--on-accent); padding: 10px 16px; border-radius: 8px; }
.skip:focus { top: 12px; }
[hidden] { display: none !important; }

.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 52px; padding: 0 24px; border-radius: 999px; border: 1.5px solid var(--fg); font-weight: 700; text-decoration: none; transition: background-color .2s, color .2s, translate .2s; }
.btn--accent { background: var(--accent); border-color: var(--accent); color: var(--on-accent); }
.btn--line { background: transparent; }
.btn--lg { min-height: 60px; padding: 0 30px; font-size: 1.05rem; }
@media (hover: hover) and (pointer: fine) { .btn:hover { translate: 0 -2px; } .btn--line:hover { background: var(--fg); color: var(--bg); } }

/* ---------- Topo ---------- */
.top { position: fixed; inset: 0 0 auto; z-index: 40; height: var(--hh); display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 0 var(--gut); mix-blend-mode: difference; color: #fff; }
.top__brand { font-family: var(--f-display); font-weight: 600; font-size: .95rem; letter-spacing: .02em; text-transform: uppercase; text-decoration: none; min-height: 44px; display: inline-flex; align-items: center; }
.top__nav { display: flex; gap: 4px 18px; flex-wrap: wrap; justify-content: flex-end; }
.top__nav a { font-size: .9rem; font-weight: 600; text-decoration: none; min-height: 44px; display: inline-flex; align-items: center; }
@media (max-width: 560px) { .top__nav a:not(:last-child) { display: none; } }
@media (hover: hover) and (pointer: fine) { .top__nav a:hover { text-decoration: underline; text-underline-offset: 4px; } }

/* ---------- Abertura: as frentes ---------- */
.hero { position: relative; min-height: 100svh; display: grid; gap: clamp(20px, 3vw, 48px); align-items: center; padding: calc(var(--hh) + 12px) var(--gut) clamp(24px, 4vw, 44px); overflow: hidden; }
.hero__media { position: relative; order: -1; aspect-ratio: 16 / 10; border-radius: 10px; overflow: hidden; background: var(--bg-2); box-shadow: 0 40px 80px -40px rgba(0, 0, 0, .8), 0 0 0 1px var(--line); }
.hero__img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; opacity: 0; transition: opacity .6s ease; }
.hero__img.is-on { opacity: 1; }
.hero__gl { position: absolute; inset: 0; width: 100%; height: 100%; display: none; }
.gl-on .hero__gl { display: block; }
.gl-on .hero__img { visibility: hidden; }
.hero__shade { display: none; }
.hero__in { width: 100%; display: grid; gap: clamp(16px, 2.4vw, 28px); }
@media (min-width: 960px) {
  .hero { grid-template-columns: minmax(0, .9fr) minmax(0, 1.1fr); }
  .hero__media { order: 2; }
}
.hero__who { display: flex; flex-wrap: wrap; gap: 6px 18px; font-size: .875rem; font-weight: 600; letter-spacing: .12em; text-transform: uppercase; color: var(--muted); }
.panels { display: grid; }
.panel { grid-area: 1 / 1; display: grid; gap: 14px; align-content: end; justify-items: start; max-width: 980px; }
.tabs-live .panel { visibility: hidden; opacity: 0; }
.tabs-live .panel.is-on { visibility: visible; opacity: 1; }
html:not(.tabs-live) .panels { gap: 40px; }
html:not(.tabs-live) .panel { grid-area: auto; }
.panel__n { font-size: .875rem; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; color: var(--accent); }
.panel__t { font-family: var(--f-display); font-weight: 800; text-transform: uppercase; font-size: clamp(1.8rem, 3.9vw, 4.4rem); line-height: 1.02; letter-spacing: -.02em; padding-top: .12em; }
.panel__d { max-width: 52ch; font-size: clamp(1.02rem, 1.4vw, 1.2rem); color: #DDDAD2; }
.tabs { display: flex; gap: 0; border-top: 1px solid var(--line); }
.tab {
  position: relative; flex: 1 1 0; display: flex; align-items: baseline; gap: 12px; min-height: 64px; padding: 16px 4px 12px;
  background: none; border: 0; text-align: left; font-family: var(--f-display); font-weight: 500; font-size: clamp(.95rem, 1.8vw, 1.35rem); text-transform: uppercase;
  color: var(--muted); cursor: pointer; transition: color .3s;
}
.tab span { font-family: var(--f-text); font-size: .8rem; font-weight: 700; letter-spacing: .1em; }
.tab i { position: absolute; left: 0; right: 0; top: -1px; height: 2px; background: var(--accent); transform-origin: 0 50%; scale: 0 1; transition: scale .5s cubic-bezier(.2, .7, .2, 1); }
.tab[aria-selected="true"] { color: var(--fg); }
.tab[aria-selected="true"] i { scale: 1 1; }
@media (hover: hover) and (pointer: fine) { .tab:hover { color: var(--fg); } }

/* ---------- Seções ---------- */
section { scroll-margin-top: var(--hh); }
.sec-t { font-family: var(--f-display); font-weight: 700; text-transform: uppercase; font-size: clamp(2rem, 5.4vw, 4.4rem); line-height: .92; letter-spacing: -.02em; }
.about { display: grid; gap: 20px; justify-items: start; max-width: 1100px; margin: 0 auto; padding: clamp(80px, 12vw, 160px) var(--gut); }
.about__photo { width: 84px; height: 84px; border-radius: 50%; object-fit: cover; }
.about__t { font-size: .9rem; font-weight: 700; letter-spacing: .14em; text-transform: uppercase; color: var(--accent); }
.about__text { font-family: var(--f-display); font-weight: 300; font-size: clamp(1.6rem, 3.6vw, 3rem); line-height: 1.18; letter-spacing: -.01em; }
.about__text em { font-style: normal; color: var(--accent); }

.works { padding: 0 var(--gut) clamp(80px, 12vw, 160px); }
.works__head { display: flex; flex-wrap: wrap; align-items: end; justify-content: space-between; gap: 20px; margin-bottom: clamp(24px, 4vw, 44px); }
.chips { display: flex; flex-wrap: wrap; gap: 8px; }
.chip { min-height: 44px; padding: 0 18px; border-radius: 999px; border: 1.5px solid var(--line); background: none; font-weight: 700; cursor: pointer; transition: border-color .2s, background-color .2s, color .2s; }
.chip[aria-pressed="true"] { background: var(--fg); color: var(--bg); border-color: var(--fg); }
@media (hover: hover) and (pointer: fine) { .chip:hover { border-color: var(--fg); } }
.works__lead { margin-top: 12px; color: var(--muted); max-width: 52ch; }
.works__grid { display: grid; gap: clamp(18px, 2.4vw, 32px); }
@media (min-width: 900px) { .works__grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
.work__a { display: grid; gap: 10px; text-decoration: none; }
.work__pic { display: block; overflow: hidden; border-radius: 6px; background: var(--bg-2); }
.work__pic img { width: 100%; aspect-ratio: 16 / 10; object-fit: cover; transition: scale .7s cubic-bezier(.2, .7, .2, 1); }
.work__meta { display: flex; gap: 10px; font-size: .8rem; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; color: var(--accent); }
.work__meta span { color: var(--muted); }
.work b { font-family: var(--f-display); font-weight: 700; font-size: clamp(1.3rem, 2.2vw, 1.9rem); line-height: 1.05; text-transform: uppercase; }
.work__sum { color: var(--muted); max-width: 54ch; }
.work__go { font-weight: 700; }
@media (hover: hover) and (pointer: fine) { .work__a:hover .work__pic img { scale: 1.04; } .work__a:hover .work__go { text-decoration: underline; text-underline-offset: 4px; } }

.moments { padding: 0 var(--gut) clamp(80px, 12vw, 160px); }
.moments .sec-t { margin-bottom: clamp(24px, 4vw, 44px); }
.moments__row { display: grid; gap: clamp(14px, 2vw, 24px); }
@media (min-width: 760px) { .moments__row { grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); } }
.moments img { width: 100%; aspect-ratio: 1; object-fit: cover; border-radius: 4px; }
.moments p { margin-top: 10px; color: var(--muted); }

.motto { padding: clamp(80px, 12vw, 160px) var(--gut); border-block: 1px solid var(--line); text-align: center; }
.motto__q { max-width: 22ch; margin: 0 auto; font-family: var(--f-display); font-weight: 300; font-size: clamp(1.8rem, 4.6vw, 4rem); line-height: 1.08; }
.motto__f { margin-top: 20px; font-size: .9rem; font-weight: 700; letter-spacing: .16em; text-transform: uppercase; color: var(--accent); }

.contact { padding: clamp(90px, 14vw, 200px) var(--gut); display: grid; gap: 22px; justify-items: start; }
.contact__t { font-family: var(--f-display); font-weight: 800; text-transform: uppercase; font-size: clamp(1.9rem, 8.2vw, 9rem); line-height: .9; letter-spacing: -.02em; overflow-wrap: break-word; }
.contact p { color: var(--muted); max-width: 46ch; font-size: 1.1rem; }
.contact__acts { display: flex; flex-wrap: wrap; gap: 12px; }

.foot { display: grid; gap: 8px; padding: 28px var(--gut) 36px; border-top: 1px solid var(--line); color: var(--muted); font-size: .9rem; }
.foot b { color: var(--fg); }
.foot__links { display: flex; flex-wrap: wrap; gap: 4px 18px; }
.foot a { text-underline-offset: 3px; min-height: 32px; display: inline-flex; align-items: center; }

@media (prefers-reduced-motion: reduce) { *, *::before, *::after { transition-duration: .01ms !important; } }
