@font-face { font-family: "Inter Tight"; src: url("assets/fonts/InterTight-var.woff2") format("woff2"); font-weight: 100 900; font-display: swap; }
@font-face { font-family: "Instrument Serif"; src: url("assets/fonts/InstrumentSerif.woff2") format("woff2"); font-weight: 400; font-display: swap; }
@font-face { font-family: "Instrument Serif"; src: url("assets/fonts/InstrumentSerif-Italic.woff2") format("woff2"); font-weight: 400; font-style: italic; font-display: swap; }

:root {
  --bg: #f2f2f2;
  --grey: #e5e5e5;
  --ink: #111;
  --mid: #888888;
  --line: #d4d4d4;
  --red: #ff2a1a;
  --pad: clamp(16px, 2.2vw, 32px);
  --sans: "Inter Tight", "Helvetica Neue", Arial, sans-serif;
  --serif: "Helvetica Neue", "HelveticaNeue", Helvetica, "Inter Tight", Arial, sans-serif;
}
* { box-sizing: border-box; margin: 0; padding: 0; min-width: 0; }
html { scroll-behavior: smooth; }
body { background: var(--page-bg, var(--bg)); background-attachment: fixed; color: var(--ink); font: 15px/1.45 var(--sans); -webkit-font-smoothing: antialiased; overflow-x: clip; }
body.is-locked { overflow: hidden; }
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; background: none; border: 0; cursor: pointer; text-align: left; }
img, video { display: block; max-width: 100%; }
ul, ol { list-style: none; }
::selection { background: var(--red); color: var(--on-red, #fff); }
.red { color: var(--red); }
.serif { font-family: var(--serif); font-weight: 500; letter-spacing: -.04em; }
.flex-type .ch { display: inline-block; font-variation-settings: "wght" var(--w, var(--base, 500)); }
.flex-type .wd { display: inline-block; white-space: nowrap; }

/* links sublinhados (estilo ALTRN) */
.ulink, .hdr__cta, .hdr__menu { position: relative; font-weight: 600; letter-spacing: -.02em; padding-bottom: 3px; }
.ulink::after, .hdr__cta::after, .hdr__menu::after, .ulink-big::after {
  content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 1.5px; background: currentColor; opacity: .35;
  transform-origin: right; transition: transform .5s var(--ease), opacity .3s;
}
.ulink:hover::after, .hdr__cta:hover::after, .hdr__menu:hover::after, .ulink-big:hover::after { opacity: 1; animation: line .7s var(--ease); }
@keyframes line { 0% { transform: scaleX(1); transform-origin: right; } 49% { transform: scaleX(0); transform-origin: right; } 50% { transform-origin: left; } 100% { transform: scaleX(1); transform-origin: left; } }

/* ---------- HEADER ---------- */
.hdr {
  position: fixed; inset: 0 0 auto 0; z-index: 60; display: grid; grid-template-columns: 1fr auto 1fr; align-items: center;
  padding: 18px var(--pad); font-size: 13px; transition: color .4s;
}
.hdr__brand { display: flex; align-items: center; height: 26px; }
.hdr__mark { height: 24px; width: auto; transition: opacity .4s, transform .6s var(--ease); }
.hdr__name { font-weight: 700; font-size: 18px; letter-spacing: -.05em; }
.hdr .hdr__name { position: absolute; opacity: 0; transform: translateY(8px); transition: opacity .4s, transform .6s var(--ease); }
.hdr__nav { display: flex; gap: 26px; font-weight: 600; letter-spacing: -.02em; transition: opacity .4s, transform .6s var(--ease); }
.hdr__nav > * { opacity: .85; transition: opacity .2s; }
.hdr__nav > *:hover { opacity: .45; }
.hdr__right { justify-self: end; display: flex; align-items: center; gap: 22px; }
.hdr__cta { display: inline-flex; align-items: center; gap: 12px; }
.dot { width: 6px; height: 6px; border-radius: 50%; background: currentColor; display: inline-block; }
.hdr__cta:hover .dot { background: var(--red); }
.hdr__menu { display: none; }
.hdr.is-compact .hdr__mark { opacity: 0; transform: translateY(-8px); }
.hdr.is-compact .hdr__name { opacity: 1; transform: none; }
.hdr.is-compact .hdr__nav { opacity: 0; pointer-events: none; transform: translateY(-8px); }
.hdr.is-compact .hdr__menu { display: inline-block; }

/* ---------- HERO ---------- */
.hero { height: 400vh; position: relative; }
.hero__pin { position: sticky; top: 0; height: 100vh; height: 100svh; overflow: hidden; perspective: 1200px; perspective-origin: 50% 46%; }
.hero__scene { position: absolute; inset: 0; transform-style: preserve-3d; }
.hero__word {
  position: absolute; left: var(--pad); right: var(--pad); top: 50%; transform: translateY(-56%);
  color: var(--red); font-weight: 780; letter-spacing: -.065em; line-height: .8; white-space: nowrap; text-align: center;
  font-size: 18vw; /* ajustado por JS para ocupar a largura */
  user-select: none;
}
.hero__word.is-stack { white-space: normal; line-height: .86; }
.hero__word.is-stack .wd { display: block; }
.track { position: absolute; left: 0; top: 0; height: 100%; width: 0; will-change: transform; transform-style: preserve-3d; }
.hero__word { --extrude: color-mix(in srgb, var(--red) 55%, #000); --extrude-sh: rgba(0,0,0,.18); transform-origin: 50% 50%; }
.hcard { transform-style: preserve-3d; will-change: transform; }
.hcard__m::after { content: ""; position: absolute; inset: 0; background: var(--bg); opacity: var(--fog, 0); pointer-events: none; z-index: 1; transition: opacity .5s var(--ease); }
a.hcard:hover .hcard__m::after { opacity: 0; }
.hcard { position: absolute; margin: 0; display: block; color: inherit; }
a.hcard { cursor: none; }
a.hcard .hcard__m { transition: box-shadow .5s var(--ease); }
a.hcard:hover .hcard__m { box-shadow: 0 50px 80px -40px rgba(0,0,0,.6); }
.hcard__m { position: absolute; inset: 0; overflow: hidden; background: var(--grey); box-shadow: 0 40px 70px -40px rgba(0,0,0,.45); }
.hcard__m img, .hcard__m video { width: 100%; height: 100%; object-fit: cover; transform: scale(1.14); }
.hcard__m { transform-origin: center; }
.hcard--slides .hs { position: absolute; inset: 0; opacity: 0; transition: opacity .25s linear; overflow: hidden; }
.hcard--slides .hs.is-on { opacity: 1; }
.hcard--slides .hcard__m { background: var(--grey); }
.hcard--slides .hcard__m .hs__img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; transform: none; }
.hcard figcaption { position: absolute; left: -7%; top: calc(107% + 12px); display: flex; gap: 10px; font-size: 11px; font-weight: 600; text-transform: uppercase; letter-spacing: .03em; opacity: 0; transform: translateY(6px); transition: opacity .4s, transform .5s var(--ease); white-space: nowrap; }
.hcard figcaption span { color: var(--red); }
.hcard.is-front figcaption { opacity: 1; transform: none; }
.hero__bar { position: absolute; left: var(--pad); right: var(--pad); bottom: 54px; height: 1px; background: var(--line); z-index: 6; }
.hero__bar i { position: absolute; inset: 0; background: var(--ink); transform-origin: left; transform: scaleX(0); }
.hero__foot {
  position: absolute; left: var(--pad); right: var(--pad); bottom: 20px; z-index: 6;
  display: flex; justify-content: space-between; align-items: end; gap: 20px; font-size: 13px; font-weight: 600; letter-spacing: -.02em;
  transition: opacity .3s;
}
.hero__now { font-size: 11px; text-transform: uppercase; letter-spacing: .04em; text-align: center; font-variant-numeric: tabular-nums; }
.hero__now #heroCount { color: var(--mid); margin-right: 10px; }
.hero__label { display: inline-block; min-width: 12ch; text-align: left; transition: opacity .25s; }
.hero__label.is-swap { opacity: 0; }

.lead { font-size: clamp(22px, 2vw, 30px); font-weight: 600; letter-spacing: -.035em; line-height: 1.12; margin-bottom: 28px; }
.small { font-size: 13.5px; font-weight: 500; line-height: 1.45; margin-bottom: 18px; max-width: 46ch; }

/* ---------- WORKS ---------- */
.works { padding: clamp(90px, 12vw, 180px) var(--pad) clamp(60px, 8vw, 120px); }
.feat { display: grid; grid-template-columns: repeat(12, 1fr); column-gap: var(--pad); row-gap: clamp(60px, 8vw, 130px); }
.fw { display: block; cursor: none; }
.fw { grid-column: span 6; }
.fw__media { position: relative; overflow: hidden; background: var(--grey); aspect-ratio: 4 / 3; }
.fw__media img, .fw__media video { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; transition: transform 1.2s var(--ease), opacity .5s; }
.fw__media video, .fw__media .fw__alt { opacity: 0; }
.fw:hover .fw__media img { transform: scale(1.05); }
.fw:hover .fw__media video, .fw:hover .fw__media .fw__alt { opacity: 1; }
.fw__media { clip-path: inset(12% 0 0 0); transition: clip-path 1.2s var(--ease); }
.fw.is-in .fw__media { clip-path: inset(0 0 0 0); }
.fw__title { font-family: var(--sans); font-weight: 500; font-size: clamp(24px, 2vw, 32px); line-height: 1; margin-top: 16px; letter-spacing: -.04em; transition: transform .6s var(--ease); }
.fw__meta { font-size: 11px; font-weight: 600; color: var(--mid); margin-top: 6px; letter-spacing: -.01em; }

.works__all { display: flex; justify-content: center; align-items: flex-start; margin-top: clamp(80px, 10vw, 150px); }
.biglink { font-size: clamp(28px, 3.4vw, 54px); letter-spacing: -.055em; line-height: 1.05; position: relative; padding-bottom: 6px; }
.works__all .biglink::after { content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 1.5px; background: currentColor; opacity: .3; }
.works__all sup { font-size: 13px; font-weight: 600; margin-left: 4px; }

/* ---------- CLIENTES (grade de logos) ---------- */
.clients { padding: clamp(60px, 8vw, 120px) var(--pad); border-top: 1px solid var(--line); }
.clients__head { display: grid; grid-template-columns: 1fr 1fr; gap: var(--pad); margin-bottom: clamp(30px, 4vw, 56px); }
.clients__txt { font-size: clamp(22px, 2.2vw, 34px); font-weight: 600; letter-spacing: -.035em; line-height: 1.1; max-width: 24ch; }
.logos { display: grid; grid-template-columns: repeat(4, 1fr); gap: 10px; }
.logo { position: relative; aspect-ratio: 2 / 1; border: 1px solid var(--line); transition: background .4s, border-color .4s; }
.logo img { position: absolute; left: 26%; top: 26%; width: 48%; height: 48%; object-fit: contain; filter: var(--logo-f) opacity(.35); transition: filter .4s, transform .7s var(--ease); }
.logo:hover { background: var(--surface); border-color: var(--surface); }
.logo:hover img { filter: var(--logo-f) opacity(1); transform: scale(1.08); }
.logo.is-raw img { filter: grayscale(1) opacity(.45); }
.logo.is-raw:hover img { filter: grayscale(1) opacity(1); }

/* desfoque que entra em foco (inspirado no Pensatori) */
.rvb { filter: blur(14px); opacity: .15; transform: translateY(14px); transition: filter 1.3s var(--ease), opacity 1.3s var(--ease), transform 1.3s var(--ease); }
.rvb.is-in { filter: none; opacity: 1; transform: none; }

/* ---------- GET IN TOUCH (estilo VISOR) ---------- */
.touch { background: var(--touch); padding: clamp(80px, 10vw, 160px) var(--pad) clamp(90px, 11vw, 180px); }
.touch__lbl { font-size: 11px; font-weight: 600; text-transform: uppercase; letter-spacing: .04em; margin-bottom: clamp(28px, 3.4vw, 56px); }
.touch__links { display: grid; gap: clamp(10px, 1.6vw, 28px); font-size: clamp(22px, 6.2vw, 112px); line-height: 1.02; letter-spacing: -.04em; text-transform: uppercase; }
.touch__links li { overflow: hidden; padding-bottom: .1em; margin-bottom: -.1em; }
.touch__links a { display: inline-block; }
.touch__form { display: inline-block; margin-top: clamp(48px, 6vw, 96px); font-size: 14px; }
.touch__form:hover { color: var(--red); }

/* ---------- FOOTER ---------- */
.ftr { display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; gap: 20px; padding: 22px var(--pad); background: var(--touch); border-top: 1px solid var(--line); font-size: 12px; font-weight: 600; }
.ftr__social { display: flex; gap: 16px; }
.ftr__social a { transition: color .2s; }
.ftr__social a:hover, .ftr__logo:hover { color: var(--red); }
.ftr__logo img { height: 22px; width: auto; transition: transform .6s var(--ease); }
.ftr__logo:hover img { transform: rotate(-6deg) scale(1.1); }
.ftr__copy { justify-self: end; }

/* ---------- PANELS ---------- */
.panel {
  position: fixed; inset: 0; z-index: 80; background: var(--bg); overflow-y: auto; padding: 0 var(--pad) 60px;
  clip-path: inset(100% 0 0 0); visibility: hidden; transition: clip-path .8s var(--ease), visibility 0s .8s;
}
.panel.is-open { clip-path: inset(0 0 0 0); visibility: visible; transition: clip-path .8s var(--ease); }
.panel__bar { position: sticky; top: 0; display: flex; justify-content: space-between; align-items: center; padding: 18px 0; background: var(--bg); z-index: 2; border-bottom: 1px solid var(--line); margin-bottom: clamp(30px, 5vw, 60px); }
.panel__close { font-weight: 600; font-size: 13px; }
.panel__close:hover { color: var(--red); }
.h-panel { font-size: clamp(28px, 3vw, 44px); line-height: 1; }
.h-panel sup { font-family: var(--sans); font-size: 13px; font-weight: 600; }

.menu { display: grid; gap: 4px; font-size: clamp(56px, 10vw, 170px); letter-spacing: -.06em; line-height: .92; }
.menu > *:hover { color: var(--red); }
.menu__foot { display: flex; flex-wrap: wrap; gap: 26px; margin-top: 40px; font-weight: 600; font-size: 14px; }
.menu__foot a:hover { color: var(--red); }

.idx li a { display: grid; grid-template-columns: 50px 1.2fr 1fr 140px; align-items: baseline; gap: 20px; padding: 14px 0 12px; border-bottom: 1px solid var(--line); }
.idx__n, .idx__t, .idx__y { font-size: 12px; font-weight: 600; color: var(--mid); }
.idx__y { text-align: right; color: var(--ink); }
.idx__name { font-family: var(--sans); font-weight: 500; font-size: clamp(34px, 4.4vw, 70px); line-height: 1; letter-spacing: -.04em; transition: transform .5s var(--ease), color .3s; }
.idx li a:hover .idx__name { color: var(--red); }
.idx:hover li a:not(:hover) { opacity: .4; }
.idx li a { transition: opacity .3s; }
.preview { position: fixed; left: 0; top: 0; z-index: 90; width: 300px; aspect-ratio: 4 / 5; pointer-events: none; overflow: hidden; background: var(--grey); clip-path: inset(50% 0 50% 0); transition: clip-path .6s var(--ease); }
.preview.is-on { clip-path: inset(0); }
.preview img { width: 100%; height: 100%; object-fit: cover; }
.preview.is-logo img { object-fit: contain; padding: 22%; filter: var(--logo-f); }

.about { display: grid; grid-template-columns: 1fr 2fr; gap: clamp(24px, 4vw, 70px); }
.about__img { width: 100%; aspect-ratio: 3 / 4; object-fit: cover; filter: grayscale(1); transition: filter .8s; }
.about__img:hover { filter: none; }
.about__body .lead { max-width: 30ch; }
.about__cols { display: grid; grid-template-columns: 1fr 1fr; gap: var(--pad); margin-top: 50px; }
.list li { padding: 12px 0; border-top: 1px solid var(--line); font-size: 14px; font-weight: 500; }
.list b { display: block; font-size: 12px; color: var(--mid); font-weight: 600; margin-bottom: 4px; }
.list span { display: block; color: var(--mid); font-size: 12px; }

.contact { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(30px, 6vw, 100px); }
.mail { font-family: var(--serif); letter-spacing: -.04em; font-weight: 500; font-size: clamp(30px, 3.6vw, 58px); line-height: 1; border-bottom: 1.5px solid; }
.mail:hover { color: var(--red); }
.form { display: grid; gap: 24px; }
.form label { display: grid; gap: 6px; font-size: 12px; font-weight: 600; color: var(--mid); }
.form input, .form textarea { width: 100%; background: transparent; border: 0; border-bottom: 1px solid var(--ink); padding: 8px 0 10px; font: 500 18px var(--sans); color: var(--ink); outline: none; border-radius: 0; resize: vertical; }
.form input:focus, .form textarea:focus { border-color: var(--red); }
.form__end { display: flex; justify-content: space-between; align-items: center; gap: 16px; }
.form__end p { font-size: 12px; color: var(--mid); }
.form .ulink { font-size: 16px; }
.hp { display: none; }

/* ---------- CURSOR / REVEAL ---------- */
.cursor { position: fixed; left: 0; top: 0; z-index: 95; pointer-events: none; background: var(--red); color: var(--on-red, #fff); font-size: 11px; font-weight: 700; padding: 7px 11px; border-radius: 999px; transform: translate(-50%, -50%) scale(0); transition: transform .35s var(--ease); }
.cursor.is-on { transform: translate(-50%, -50%) scale(1); }
.rv { opacity: 0; translate: 0 20px; transition: opacity .9s var(--ease), translate .9s var(--ease); }
.rv.is-in { opacity: 1; translate: 0 0; }

/* ---------- RESPONSIVE ---------- */
@media (max-width: 860px) {
  .hdr { grid-template-columns: 1fr auto; }
  .hdr__nav { display: none; }
  .hdr__menu { display: inline-block; }
  .hdr__cta { display: none; }
  .feat { grid-template-columns: 1fr 1fr; }
  .fw:nth-child(n) { grid-column: auto; margin-top: 0; }
  .ftr { grid-template-columns: 1fr auto; }
  .ftr__copy { grid-column: 1 / -1; justify-self: start; }
  .idx li a { grid-template-columns: 30px 1fr auto; }
  .idx__t { display: none; }
  .preview, .cursor { display: none; }
  .about, .contact, .about__cols { grid-template-columns: 1fr; }
  .about__img { max-width: 280px; }
}
@media (max-width: 860px) { .clients__head { grid-template-columns: 1fr; } .logos { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 520px) {
  .hero__foot p:first-child { display: none; }
  .feat { grid-template-columns: 1fr; }
  .fw:nth-child(even) { margin-top: 0; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .rv { opacity: 1; translate: none; }
  .fw__media { clip-path: none; }
  .rvb { filter: none; opacity: 1; transform: none; }
}
.ftr__lbl { font-size: 12px; font-weight: 600; color: var(--mid); display: block; margin-bottom: 10px; }

/* ---------- HERO FLICKER ---------- */
.hero--flick { height: 100vh; height: 100svh; }
.hero--flick .track, .hero--flick .hero__bar { display: none; }
.flk { position: absolute; left: 50%; top: 50%; transform: translate(-50%, -50%); z-index: 4; display: block; line-height: 0; }
.flk img { display: block; width: auto; height: auto; max-width: min(58vw, 1100px); max-height: 64vh; box-shadow: 0 40px 80px -50px rgba(0,0,0,.5); user-select: none; }
.flk:not([href]) { pointer-events: none; }
@media (max-width: 700px) { .flk img { max-width: 86vw; max-height: 52vh; } }
/* Archive separado do menu principal */
.hdr__nav > .hdr__ar { position: relative; margin-left: 30px; }
.hdr__nav > .hdr__ar::before { content: ""; position: absolute; left: -29px; top: 50%; width: 1px; height: 14px; margin-top: -7px; background: currentColor; opacity: .3; pointer-events: none; }

/* clientes clicáveis */
a.logo { display: block; }
.logo__n { position: absolute; left: 12px; bottom: 10px; font-size: 11px; font-weight: 600; color: var(--mid); opacity: 0; transform: translateY(4px); transition: opacity .35s var(--ease), transform .5s var(--ease); }
.logo:hover .logo__n, .logo:focus-visible .logo__n { opacity: 1; transform: none; }
/* espaço para a extrusão do nome não ser cortada pela máscara da revelação */
.hero__word .sm { padding: .16em .12em .32em 0; margin: -.16em -.12em -.32em 0; }

/* botão de som */
.snd { display: inline-flex; align-items: center; gap: 8px; font: inherit; font-size: 12px; letter-spacing: .04em; text-transform: uppercase; color: inherit; background: none; border: 0; padding: 4px 2px; cursor: pointer; }
.snd__b { display: inline-flex; align-items: flex-end; gap: 2px; height: 12px; }
.snd__b i { display: block; width: 2px; height: 3px; background: currentColor; transition: height .3s; }
.snd[data-state="1"] .snd__b i, .snd[data-state="2"] .snd__b i { animation: sndb 1s ease-in-out infinite; }
.snd[data-state="1"] .snd__b i { animation-duration: 1.6s; }
.snd__b i:nth-child(2) { animation-delay: -.3s !important; }
.snd__b i:nth-child(3) { animation-delay: -.6s !important; }
.snd__b i:nth-child(4) { animation-delay: -.15s !important; }
.snd[data-state="2"] .snd__t { color: var(--red); }
@keyframes sndb { 0%, 100% { height: 3px; } 50% { height: 12px; } }
@media (prefers-reduced-motion: reduce) { .snd__b i { animation: none !important; height: 8px !important; } }
@media (max-width: 900px) { .snd__t { display: none; }  }

/* rodapé: luz na cor do tema atrás de um vidro canelado, segue o mouse */
.touch, .ftr { position: relative; isolation: isolate; overflow: hidden; }
.glow { position: absolute; inset: 0; z-index: -1; pointer-events: none; overflow: hidden; background: var(--touch); }
.glow i { position: absolute; left: 0; top: 0; width: 70vmax; height: 70vmax; border-radius: 50%; transform: translate3d(-50%, -50%, 0); will-change: transform; filter: blur(40px); }
.glow i:nth-child(1) { background: radial-gradient(circle, var(--red) 0%, color-mix(in srgb, var(--red) 55%, transparent) 30%, transparent 62%); opacity: .95; }
.glow i:nth-child(2) { width: 46vmax; height: 46vmax; background: radial-gradient(circle, color-mix(in srgb, var(--red) 55%, #ffd2a6) 0%, transparent 60%); opacity: .75; mix-blend-mode: screen; }
.glow i:nth-child(3) { width: 60vmax; height: 60vmax; background: radial-gradient(circle, color-mix(in srgb, var(--red) 40%, #000) 0%, transparent 65%); opacity: .8; }
.glow::after { content: ""; position: absolute; inset: 0;
  background: repeating-linear-gradient(90deg, rgba(255,255,255,.16) 0, rgba(255,255,255,.02) 2px, rgba(0,0,0,.0) 12px, rgba(0,0,0,.22) 22px, rgba(255,255,255,.16) 24px);
  -webkit-backdrop-filter: blur(22px) saturate(1.3); backdrop-filter: blur(22px) saturate(1.3); }
.ftr .glow::after { background: repeating-linear-gradient(90deg, rgba(255,255,255,.04) 0, rgba(255,255,255,0) 2px, rgba(0,0,0,0) 12px, rgba(0,0,0,.3) 22px, rgba(255,255,255,.04) 24px); }

.touch .touch__links a, .touch .touch__lbl, .touch .touch__form { position: relative; }
/* área de contato: acompanha o tema (claro no tema claro, escuro no escuro) */
.touch .glow { background: var(--bg); }
.touch .glow i:nth-child(1) { opacity: .85; }
.touch .glow i:nth-child(2) { opacity: .5; }
.touch .glow i:nth-child(3) { opacity: .35; }
.touch .glow::after { background: repeating-linear-gradient(90deg, color-mix(in srgb, var(--bg) 55%, transparent) 0, color-mix(in srgb, var(--bg) 10%, transparent) 3px, transparent 12px, color-mix(in srgb, var(--ink) 16%, transparent) 21px, color-mix(in srgb, var(--bg) 55%, transparent) 24px);
  -webkit-backdrop-filter: blur(22px) saturate(1.25); backdrop-filter: blur(22px) saturate(1.25); }
.ftr .glow { background: var(--bg); }
.ftr .glow i { opacity: .22; }
.ftr .glow::after { background: repeating-linear-gradient(90deg, color-mix(in srgb, var(--bg) 50%, transparent) 0, transparent 12px, color-mix(in srgb, var(--ink) 12%, transparent) 21px, color-mix(in srgb, var(--bg) 50%, transparent) 24px); }
.ftr, .ftr .ftr__social a, .ftr .ftr__copy { color: var(--ink); }
.ftr { border-top-color: var(--line); }

/* header · lado direito (relógio, idioma em texto, CTA sólido) */
.hdr__right { gap: 18px; }
.hdr__clk { font: 600 11px/1 "JetBrains Mono", ui-monospace, monospace; letter-spacing: .04em; opacity: .55; white-space: nowrap; }
.hdr__clk b { font-weight: 600; opacity: 1; }
.hdr__clk i { font-style: normal; animation: clkBlink 2s steps(1) infinite; }
@keyframes clkBlink { 50% { opacity: 0; } }
.hdr .prefs { gap: 12px; padding-left: 18px; border-left: 1px solid color-mix(in srgb, currentColor 22%, transparent); }
.hdr .prefs__lang { border: 0; padding: 0; gap: 2px; --seg: auto; font-family: "JetBrains Mono", ui-monospace, monospace; }
.hdr .prefs__lang::before { display: none; }
.hdr .prefs__lang button { display: inline-flex; align-items: center; width: auto; height: auto; padding: 2px 3px; font: 600 11px/1 "JetBrains Mono", ui-monospace, monospace; color: inherit; opacity: .4; }
.hdr .prefs__lang button + button::before { content: "/"; margin-right: 5px; opacity: .6; }
.hdr .prefs__lang button[aria-pressed="true"] { color: inherit; opacity: 1; }
.hdr .prefs__lang button[aria-pressed="false"]:hover { opacity: .8; color: inherit; }
.hdr .prefs__dot { width: 13px; height: 13px; border-radius: 50%; border-color: currentColor; }
.hdr__cta { gap: 10px; padding: 9px 14px 9px 16px; border-radius: 999px; background: var(--ink); color: var(--bg); transition: background .3s, color .3s, padding .4s var(--ease); }
.hdr__cta::after { content: "→"; position: static; height: auto; background: none; opacity: 1; transform: none; animation: none !important; transition: transform .4s var(--ease); }
.hdr__cta:hover { background: var(--red); color: var(--on-red, #fff); }

@media (max-width: 1100px) { .hdr__clk { display: none; } }
@media (max-width: 860px) { .hdr .prefs { border-left: 0; padding-left: 0; } }

/* grão de filme animado sobre o vidro (rodapé/contato) */
.glow::before { content: ""; position: absolute; inset: -60px; z-index: 1; pointer-events: none; opacity: .2; mix-blend-mode: overlay;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='200' height='200'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.85' numOctaves='3' stitchTiles='stitch'/%3E%3CfeColorMatrix values='0 0 0 0 .5 0 0 0 0 .5 0 0 0 0 .5 0 0 0 1.6 -.3'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
  background-size: 200px 200px; animation: grain 1s steps(6) infinite; }
.ftr .glow::before { opacity: .28; }
@keyframes grain { 0% { transform: translate(0, 0); } 17% { transform: translate(-22px, 14px); } 33% { transform: translate(18px, -26px); } 50% { transform: translate(-12px, 30px); } 67% { transform: translate(28px, 8px); } 83% { transform: translate(-30px, -14px); } 100% { transform: translate(0, 0); } }
@media (prefers-reduced-motion: reduce) { .glow::before { animation: none; } }

/* menu em tela cheia: gradiente com grão + Archive em destaque */
#panel-menu { isolation: isolate; background: var(--bg); }
#panel-menu::before { content: ""; position: fixed; inset: -25%; z-index: -2; pointer-events: none;
  background:
    radial-gradient(30% 34% at 72% 30%, color-mix(in srgb, var(--red) 70%, transparent) 0%, transparent 70%),
    radial-gradient(26% 30% at 60% 72%, color-mix(in srgb, var(--red) 40%, #ffb089 20%) 0%, transparent 70%),
    radial-gradient(34% 34% at 22% 78%, color-mix(in srgb, var(--ink) 16%, transparent) 0%, transparent 70%);
  animation: menuDrift 22s ease-in-out infinite alternate; }
@keyframes menuDrift { 0% { transform: translate(0, 0) rotate(0deg) scale(1); } 33% { transform: translate(-6%, 4%) rotate(8deg) scale(1.08); } 66% { transform: translate(4%, -5%) rotate(-6deg) scale(.96); } 100% { transform: translate(-3%, -2%) rotate(12deg) scale(1.05); } }
@media (prefers-reduced-motion: reduce) { #panel-menu::before { animation: none; } }
#panel-menu::after { content: ""; position: fixed; inset: -60px; z-index: -1; pointer-events: none; opacity: .3; mix-blend-mode: overlay;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='200' height='200'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.85' numOctaves='3' stitchTiles='stitch'/%3E%3CfeColorMatrix values='0 0 0 0 .5 0 0 0 0 .5 0 0 0 0 .5 0 0 0 1.6 -.3'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
  background-size: 200px 200px; animation: grain 1s steps(6) infinite; }
#panel-menu .panel__bar { background: transparent; }
.menu__arl { color: var(--ink); position: relative; }
.menu__arl .wd { filter: url(#menuBloat); }
.menu > .menu__arl:hover, .menu__arl:hover sup { color: var(--red); }
.menu__arl { transition: color .3s; }
.menu__n { font-size: .16em; letter-spacing: 0; vertical-align: top; margin-left: .15em; font-weight: 600; }
.menu__ar { position: absolute; right: var(--pad); top: 50%; width: min(460px, 34vw); padding: 10px; border-radius: 16px; transform: translateY(-46%) rotate(3deg);
  background: color-mix(in srgb, var(--surface) 82%, transparent); -webkit-backdrop-filter: blur(14px); backdrop-filter: blur(14px); border: 1px solid var(--line);
  box-shadow: 0 40px 80px -40px rgba(0,0,0,.6); color: var(--ink); transition: transform .7s var(--ease), box-shadow .4s; }
.menu__ar:hover, .menu__ar.is-hi { transform: translateY(-48%) rotate(0deg) scale(1.02); box-shadow: 0 50px 90px -40px rgba(0,0,0,.7), 0 0 0 2px color-mix(in srgb, var(--ink) 35%, transparent); }
.menu__mos { display: grid; grid-template-columns: repeat(3, 1fr); gap: 5px; border-radius: 10px; overflow: hidden; }
.menu__mos i { position: relative; aspect-ratio: 1; overflow: hidden; background: var(--grey); }
.menu__mos img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.menu__mos img.is-in { animation: npvIn .7s var(--ease) both; }
.menu__arf { display: grid; grid-template-columns: 1fr auto; align-items: end; gap: 4px 14px; padding: 14px 6px 6px; }
.menu__arf b { font-size: 22px; font-weight: 700; letter-spacing: -.04em; }
.menu__arf em { grid-column: 1; font-style: normal; font-size: 13px; color: var(--mid); line-height: 1.35; }
.menu__go { grid-column: 2; grid-row: 1 / 3; align-self: center; padding: 10px 14px; border-radius: 999px; background: var(--ink); color: var(--bg); font-size: 13px; font-weight: 700; white-space: nowrap; transition: padding .4s var(--ease); }
.menu__ar:hover .menu__go { padding-left: 20px; padding-right: 10px; }
@keyframes npvIn { from { opacity: 0; transform: scale(1.15); } }
@media (max-width: 860px) { .menu__ar { position: relative; right: auto; top: auto; width: auto; margin-top: 30px; transform: none; display: block; } .menu__ar:hover, .menu__ar.is-hi { transform: none; } }
/* aberração cromática sutil no Archive do menu, nas cores do tema (só aparece em partes da borda, de vez em quando) */
.menu__arl { --ca1: color-mix(in srgb, var(--red) 70%, transparent); --ca2: color-mix(in srgb, var(--red) 35%, var(--ink) 25%); }
.menu__arl .wd { text-shadow: 0 0 transparent, 0 0 transparent; animation: menuCA 5s ease-in-out infinite; }
.menu__arl:hover .wd { animation-duration: 2.2s; }
@keyframes menuCA {
  0%, 18%, 46%, 64%, 100% { text-shadow: 0 0 transparent, 0 0 transparent; }
  26% { text-shadow: -.012em .004em var(--ca1), .008em -.003em var(--ca2); }
  34% { text-shadow: -.006em 0 var(--ca1), .004em 0 var(--ca2); }
  54% { text-shadow: .01em -.004em var(--ca1), -.007em .003em var(--ca2); }
  82% { text-shadow: -.008em -.003em var(--ca1), .006em .002em var(--ca2); }
}
@media (prefers-reduced-motion: reduce) { .menu__arl .wd { animation: none; } }
