/* Breno Designer · site.css · v2 (tecnológico, escuro suave) */

/* ---------- Fontes ---------- */
@font-face { font-family: "Satoshi"; src: url("/assets/fonts/satoshi-400.woff2") format("woff2"); font-weight: 400; font-style: normal; font-display: swap; }
@font-face { font-family: "Satoshi"; src: url("/assets/fonts/satoshi-400-italic.woff2") format("woff2"); font-weight: 400; font-style: italic; font-display: swap; }
@font-face { font-family: "Satoshi"; src: url("/assets/fonts/satoshi-500.woff2") format("woff2"); font-weight: 500; font-style: normal; font-display: swap; }
@font-face { font-family: "Satoshi"; src: url("/assets/fonts/satoshi-700.woff2") format("woff2"); font-weight: 700; font-style: normal; font-display: swap; }
@font-face { font-family: "Satoshi"; src: url("/assets/fonts/satoshi-900.woff2") format("woff2"); font-weight: 900; font-style: normal; font-display: swap; }
@font-face { font-family: "Instrument Serif"; src: url("/assets/fonts/instrument-serif-italic.woff2") format("woff2"); font-weight: 400; font-style: italic; font-display: swap; }
@font-face { font-family: "Instrument Serif"; src: url("/assets/fonts/instrument-serif.woff2") format("woff2"); font-weight: 400; font-style: normal; font-display: swap; }

/* ---------- Tokens ---------- */
:root {
  --bg: #0d0d0f;
  --bg-2: #111114;
  --panel: #151519;
  --panel-2: #1b1b21;
  --line: rgba(255, 255, 255, 0.08);
  --line-2: rgba(255, 255, 255, 0.15);
  --text: #ececee;
  --muted: #a0a0a8;
  --dim: #707078;
  --gold: #ffc400;
  --gold-2: #ffd451;
  --gold-ink: #171200;
  --gold-soft: rgba(255, 196, 0, 0.12);
  --ok: #3ddc84;
  --danger: #ff7070;

  --sans: "Satoshi", ui-sans-serif, system-ui, -apple-system, "Segoe UI", sans-serif;
  --serif: "Instrument Serif", ui-serif, Georgia, serif;
  --mono: ui-monospace, "SF Mono", SFMono-Regular, Menlo, Consolas, monospace;

  --fs-hero: clamp(3rem, 8.2vw, 7.6rem);
  --fs-h1: clamp(2.6rem, 6.4vw, 6rem);
  --fs-h2: clamp(2.1rem, 4.4vw, 4rem);
  --fs-h3: clamp(1.15rem, 1.5vw, 1.35rem);
  --fs-lead: clamp(1.02rem, 1.25vw, 1.15rem);

  --container: 1280px;
  --gutter: clamp(20px, 4.5vw, 48px);
  --section: clamp(88px, 11vw, 168px);
  --radius: 22px;
  --radius-lg: 32px;
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
  --ease-in: cubic-bezier(0.64, 0, 0.78, 0);
  --nav-h: 88px;
}

/* ---------- Transição entre páginas (navegadores que suportam) ---------- */
@view-transition { navigation: auto; }
::view-transition-old(root) { animation: vt-out .45s var(--ease-in) both; }
::view-transition-new(root) { animation: vt-in .7s var(--ease) both; }
@keyframes vt-out { to { opacity: 0; transform: translateY(-18px); filter: blur(6px); } }
@keyframes vt-in { from { opacity: 0; transform: translateY(24px); filter: blur(6px); } }

/* ---------- Base ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; text-size-adjust: 100%; scroll-padding-top: calc(var(--nav-h) + 16px); }
body {
  margin: 0; background: var(--bg); color: var(--text);
  font-family: var(--sans); font-size: 1rem; line-height: 1.6;
  -webkit-font-smoothing: antialiased; overflow-x: hidden;
}
img, svg, video, canvas { display: block; max-width: 100%; }
img { height: auto; }
a { color: inherit; text-decoration: none; }
button, input, textarea { font: inherit; color: inherit; }
h1, h2, h3, h4, p, ul, ol, dl, dd, figure { margin: 0; }
ul, ol { padding: 0; list-style: none; }
h1, h2, h3 { font-weight: 500; line-height: 1; letter-spacing: -0.035em; }
::selection { background: var(--gold); color: var(--gold-ink); }
:focus-visible { outline: 2px solid var(--gold); outline-offset: 3px; border-radius: 6px; }

/* grão sutil sobre a página */
body::after {
  content: ""; position: fixed; inset: 0; z-index: 100; pointer-events: none; opacity: .05; mix-blend-mode: overlay;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='160' height='160'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.9' numOctaves='2' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}

.container { width: 100%; max-width: calc(var(--container) + var(--gutter) * 2); margin-inline: auto; padding-inline: var(--gutter); }
.section { padding-block: var(--section); position: relative; }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }
.skip { position: fixed; left: 16px; top: -60px; z-index: 200; background: var(--gold); color: var(--gold-ink); padding: 10px 16px; border-radius: 10px; font-weight: 700; transition: top .2s; }
.skip:focus { top: 16px; }

/* destaque: serifa itálica dourada */
.hl { font-family: var(--serif); font-style: italic; font-weight: 400; color: var(--gold); letter-spacing: -0.01em; padding-right: .04em; }
.label { font-family: var(--mono); font-size: .74rem; letter-spacing: .08em; text-transform: uppercase; color: var(--dim); }
.eyebrow { display: inline-flex; align-items: center; gap: 10px; font-family: var(--mono); font-size: .76rem; letter-spacing: .1em; text-transform: uppercase; color: var(--gold); }
.eyebrow::before { content: "//"; color: var(--dim); }
.lead { font-size: var(--fs-lead); color: var(--muted); max-width: 58ch; }
.h2 { font-size: var(--fs-h2); }
.section-head { display: flex; flex-wrap: wrap; align-items: end; justify-content: space-between; gap: 24px 48px; margin-bottom: clamp(44px, 6vw, 80px); }
.section-head > div:not(.rail-nav) { display: grid; gap: 18px; }

/* ---------- Botões ---------- */
.btn {
  --h: 54px;
  position: relative; display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  min-height: var(--h); padding: 0 26px; border-radius: 999px; border: 1px solid transparent;
  font-weight: 500; font-size: .96rem; line-height: 1; white-space: nowrap; cursor: pointer; overflow: hidden; isolation: isolate;
  transition: transform .4s var(--ease), background-color .3s, border-color .3s, color .3s, box-shadow .4s;
}
.btn svg { width: 16px; height: 16px; flex-shrink: 0; transition: transform .4s var(--ease); }
.btn:hover svg { transform: translateX(3px); }
.btn--gold { background: var(--gold); color: var(--gold-ink); }
.btn--gold::before { content: ""; position: absolute; inset: 0; z-index: -1; background: linear-gradient(110deg, transparent 30%, rgba(255,255,255,.55) 50%, transparent 70%); transform: translateX(-120%); transition: transform .9s var(--ease); }
.btn--gold:hover::before { transform: translateX(120%); }
.btn--gold:hover { box-shadow: 0 14px 44px -12px rgba(255,196,0,.55); }
.btn--line { background: rgba(255,255,255,.02); border-color: var(--line-2); color: var(--text); }
.btn--line:hover { border-color: rgba(255,196,0,.5); color: var(--gold); }
.btn--ghost { background: var(--gold-soft); border-color: rgba(255,196,0,.2); color: var(--gold); }
.btn--ghost:hover { background: rgba(255,196,0,.18); }
.btn--sm { --h: 44px; padding: 0 18px; font-size: .9rem; }
.link-arrow { display: inline-flex; align-items: center; gap: 8px; color: var(--gold); font-weight: 500; }
.link-arrow svg { width: 16px; height: 16px; transition: transform .4s var(--ease); }
.link-arrow:hover svg { transform: translateX(4px); }

/* ---------- Barra de progresso de rolagem ---------- */
.progress { position: fixed; inset: 0 0 auto; height: 2px; z-index: 90; background: linear-gradient(90deg, var(--gold), var(--gold-2)); transform-origin: 0 50%; transform: scaleX(var(--p, 0)); pointer-events: none; }

/* ---------- Carregamento inicial ---------- */
.loader { position: fixed; inset: 0; z-index: 150; display: grid; place-items: center; background: var(--bg); transition: opacity .7s var(--ease), visibility .7s; }
.loader.is-done { opacity: 0; visibility: hidden; }
.loader__inner { display: grid; justify-items: center; gap: 22px; }
.loader__inner img { width: 64px; animation: loader-spin 2.4s var(--ease) infinite; }
.loader__count { font-family: var(--mono); font-size: .9rem; color: var(--muted); letter-spacing: .1em; }
.loader__bar { width: 180px; height: 1px; background: var(--line-2); overflow: hidden; }
.loader__bar i { display: block; height: 100%; background: var(--gold); transform-origin: 0 50%; transform: scaleX(var(--p, 0)); transition: transform .2s linear; }
@keyframes loader-spin { 50% { transform: rotateY(180deg); } }

/* ---------- Cabeçalho ---------- */
.nav { position: fixed; inset: 0 0 auto; z-index: 80; transition: transform .6s var(--ease); }
.nav.is-hidden { transform: translateY(-110%); }
.nav__inner { display: flex; align-items: center; justify-content: space-between; gap: 20px; height: var(--nav-h); border-bottom: 1px solid transparent; transition: border-color .4s; }
.nav::before { content: ""; position: absolute; inset: 0; z-index: -1; background: rgba(13,13,15,.7); backdrop-filter: blur(18px) saturate(1.4); -webkit-backdrop-filter: blur(18px) saturate(1.4); opacity: 0; transition: opacity .4s; }
.nav.is-scrolled::before { opacity: 1; }
.nav.is-scrolled .nav__inner { border-color: var(--line); }
.nav__logo img { width: 176px; height: auto; }
.nav__local { display: flex; align-items: center; gap: 10px; font-family: var(--mono); font-size: .76rem; letter-spacing: .06em; color: var(--muted); text-transform: uppercase; }
.nav__local time { color: var(--text); }
.nav__menu ul { display: flex; gap: 2px; padding: 5px; border-radius: 999px; background: rgba(255,255,255,.035); box-shadow: inset 0 0 0 1px var(--line); }
.nav__menu a { display: block; padding: 8px 16px; border-radius: 999px; font-size: .9rem; color: var(--muted); transition: color .25s, background-color .25s; }
.nav__menu a:hover { color: var(--text); }
.nav__menu a[aria-current="page"] { color: var(--gold-ink); background: var(--gold); }
.nav__right { display: flex; align-items: center; gap: 12px; }
.nav__toggle { display: none; align-items: center; gap: 12px; height: 46px; padding: 0 6px 0 18px; border: 0; border-radius: 999px; background: rgba(255,255,255,.06); cursor: pointer; font-size: .9rem; }
.nav__toggle i { position: relative; width: 34px; height: 34px; border-radius: 50%; background: var(--gold); }
.nav__toggle i::before, .nav__toggle i::after { content: ""; position: absolute; left: 10px; right: 10px; height: 1.5px; background: var(--gold-ink); transition: transform .4s var(--ease); }
.nav__toggle i::before { top: 14px; }
.nav__toggle i::after { top: 19px; }
.nav.is-open .nav__toggle i::before { transform: translateY(2.5px) rotate(45deg); }
.nav.is-open .nav__toggle i::after { transform: translateY(-2.5px) rotate(-45deg); }

@media (max-width: 1080px) { .nav__local { display: none; } }
@media (max-width: 900px) {
  .nav__toggle { display: inline-flex; }
  .nav__cta { display: none; }
  .nav__logo img { width: 150px; }
  .nav__menu {
    position: fixed; inset: 0; z-index: -1; display: grid; align-content: center; padding: var(--gutter);
    background: rgba(13,13,15,.96); backdrop-filter: blur(24px); -webkit-backdrop-filter: blur(24px);
    clip-path: circle(0 at calc(100% - 44px) 44px); transition: clip-path .8s var(--ease);
  }
  .nav.is-open .nav__menu { clip-path: circle(150% at calc(100% - 44px) 44px); }
  .nav__menu ul { flex-direction: column; gap: 4px; background: none; box-shadow: none; padding: 0; }
  .nav__menu a { font-size: clamp(2.4rem, 11vw, 3.6rem); letter-spacing: -0.04em; padding: 4px 0; color: var(--text); border-radius: 0; }
  .nav__menu a[aria-current="page"] { background: none; color: var(--gold); }
}

/* ---------- Fundos animados ---------- */
.bg-canvas { position: absolute; inset: 0; z-index: -2; width: 100%; height: 100%; pointer-events: none; }
.bg-grid { position: absolute; inset: 0; z-index: -1; pointer-events: none;
  background-image: linear-gradient(var(--line) 1px, transparent 1px), linear-gradient(90deg, var(--line) 1px, transparent 1px);
  background-size: 88px 88px; background-position: center top;
  mask-image: radial-gradient(ellipse 70% 60% at 50% 20%, #000 10%, transparent 70%);
  -webkit-mask-image: radial-gradient(ellipse 70% 60% at 50% 20%, #000 10%, transparent 70%);
  opacity: .5;
}

/* ---------- Hero da home ---------- */
.hero { position: relative; min-height: 100svh; padding-top: calc(var(--nav-h) + clamp(40px, 7vh, 90px)); display: flex; flex-direction: column; isolation: isolate; overflow: hidden; }
.hero::before { content: ""; position: absolute; z-index: -1; left: -20%; bottom: -30%; width: 80vw; height: 80vw; max-width: 1100px; max-height: 1100px; background: radial-gradient(circle, rgba(255,180,0,.22), rgba(255,160,0,.05) 45%, transparent 70%); filter: blur(20px); }
.hero__grid { display: grid; grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); gap: 32px clamp(32px, 5vw, 80px); align-items: start; flex: 1; }
.hero__title { font-size: var(--fs-hero); font-weight: 500; letter-spacing: -0.05em; line-height: .92; }
.hero__title .hl { display: inline-block; font-size: 1.08em; line-height: .8; }
.hero__side { display: grid; gap: 28px; padding-top: 12px; justify-items: start; }
.hero__side p { color: var(--muted); font-size: var(--fs-lead); max-width: 40ch; }
.hero__ctas { display: flex; flex-wrap: wrap; gap: 12px; }
.badge { display: inline-flex; align-items: center; gap: 10px; padding: 8px 16px 8px 12px; border-radius: 999px; background: rgba(255,255,255,.04); box-shadow: inset 0 0 0 1px var(--line); font-size: .84rem; color: var(--muted); backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px); }
.status::before { content: ""; display: inline-block; width: 8px; height: 8px; margin-right: 10px; border-radius: 50%; background: var(--ok); vertical-align: 1px; animation: pulse 2.2s infinite; }
@keyframes pulse { 0% { box-shadow: 0 0 0 0 rgba(61,220,132,.55); } 70% { box-shadow: 0 0 0 9px rgba(61,220,132,0); } 100% { box-shadow: 0 0 0 0 rgba(61,220,132,0); } }

.hero__stage { position: absolute; z-index: -1; right: -4vw; top: 50%; transform: translateY(-56%); width: min(54vw, 800px); aspect-ratio: 1; pointer-events: none; opacity: 0; transition: opacity 1.6s var(--ease); }
.hero__stage.is-ready { opacity: 1; }
.hero__stage canvas { width: 100%; height: 100%; }
.hero__stage::after { content: ""; position: absolute; inset: 22%; border-radius: 50%; background: radial-gradient(circle, rgba(255,196,0,.18), transparent 65%); filter: blur(30px); z-index: -1; }
.hero__foot { display: grid; grid-template-columns: auto 1fr; align-items: end; gap: 32px; padding-block: clamp(40px, 7vh, 80px) clamp(28px, 4vh, 44px); }
.socials { display: flex; gap: 10px; }
.socials a { width: 46px; height: 46px; display: grid; place-items: center; border-radius: 50%; background: rgba(255,255,255,.05); box-shadow: inset 0 0 0 1px var(--line); font-family: var(--mono); font-size: .7rem; color: var(--muted); transition: background-color .3s, color .3s, transform .4s var(--ease); backdrop-filter: blur(8px); }
.socials a:hover { background: var(--gold); color: var(--gold-ink); transform: translateY(-3px); }
.stats { display: grid; grid-template-columns: repeat(3, auto); justify-content: end; gap: clamp(28px, 5vw, 72px); border-top: 1px solid var(--line-2); padding-top: 28px; justify-self: end; width: min(100%, 640px); }
.stats li { display: grid; gap: 8px; }
.stats strong { font-size: clamp(2.6rem, 5vw, 4.4rem); font-weight: 400; letter-spacing: -0.05em; line-height: 1; }
.stats span { font-family: var(--mono); font-size: .72rem; letter-spacing: .06em; text-transform: uppercase; color: var(--muted); max-width: 18ch; line-height: 1.5; }

.ticker { position: relative; border-block: 1px solid var(--line); overflow: hidden; mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent); -webkit-mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent); }
.ticker__track { display: flex; width: max-content; animation: marquee 42s linear infinite; }
.ticker ul { display: flex; flex-shrink: 0; }
.ticker li { display: flex; align-items: center; gap: 28px; padding: 18px 14px; font-family: var(--mono); font-size: .84rem; letter-spacing: .06em; text-transform: uppercase; color: var(--muted); white-space: nowrap; }
.ticker li::after { content: "✦"; color: var(--gold); font-size: .7rem; margin-left: 14px; }
@keyframes marquee { to { transform: translateX(-50%); } }

/* ---------- Manifesto (cartão empilhado) ---------- */
.stacked { position: relative; margin-top: clamp(8px, 2vw, 24px); }
.stacked::before, .stacked::after { content: ""; position: absolute; left: 4%; right: 4%; height: 40px; top: -14px; border-radius: var(--radius-lg) var(--radius-lg) 0 0; background: var(--panel); opacity: .5; }
.stacked::after { left: 2%; right: 2%; top: -7px; opacity: .8; }
.panel { position: relative; z-index: 1; border-radius: var(--radius-lg); background: var(--panel); box-shadow: inset 0 0 0 1px var(--line); padding: clamp(28px, 5vw, 64px); }
.pillars { display: flex; justify-content: space-between; align-items: center; gap: 16px; flex-wrap: wrap; padding-bottom: 28px; border-bottom: 1px solid var(--line); font-weight: 500; }
.pillars li { display: flex; align-items: center; gap: 16px; }
.pillars li + li::before { content: ""; width: 7px; height: 7px; border-radius: 50%; background: var(--line-2); margin-right: clamp(0px, 4vw, 80px); }
.manifesto { display: grid; grid-template-columns: minmax(0, 4fr) minmax(0, 8fr); gap: clamp(28px, 5vw, 72px); padding-block: clamp(36px, 5vw, 64px); }
.who { display: grid; gap: 18px; align-content: start; }
.who img { width: 104px; height: 104px; border-radius: 50%; object-fit: cover; box-shadow: 0 0 0 4px var(--panel), 0 0 0 5px rgba(255,196,0,.4); }
.who span { font-family: var(--mono); font-size: .76rem; letter-spacing: .06em; text-transform: uppercase; color: var(--muted); line-height: 1.6; }
.statement { font-size: clamp(1.4rem, 2.6vw, 2.3rem); line-height: 1.22; letter-spacing: -0.025em; font-weight: 500; }
.statement p + p { margin-top: .6em; }
.js .statement .wd { color: rgba(236,236,238,.18); transition: color .4s; }
.js .statement .wd.is-lit { color: var(--text); }
.js .statement .hl .wd.is-lit { color: var(--gold); }
.manifesto__cta { margin-top: 34px; }
.brands { display: flex; flex-wrap: wrap; justify-content: center; padding-top: clamp(32px, 5vw, 56px); border-top: 1px solid var(--line); }
.brand { position: relative; width: clamp(150px, 19vw, 250px); aspect-ratio: 1; margin-inline: -10px; display: grid; place-content: center; justify-items: center; gap: 16px; text-align: center; border-radius: 50%; box-shadow: inset 0 0 0 1px var(--line-2); transition: box-shadow .5s, background-color .5s; padding: 18px; }
.brand:hover { box-shadow: inset 0 0 0 1px var(--gold); background: rgba(255,196,0,.03); z-index: 1; }
.brand img { width: 52px; height: 52px; border-radius: 14px; filter: grayscale(1) contrast(1.1); opacity: .8; transition: filter .5s, opacity .5s; }
.brand:hover img { filter: none; opacity: 1; }
.brand strong { font-weight: 500; font-size: .98rem; }
.brand span { font-family: var(--mono); font-size: .68rem; letter-spacing: .06em; text-transform: uppercase; color: var(--muted); line-height: 1.5; }

/* ---------- Cards de projeto ---------- */
.card { position: relative; display: grid; gap: 22px; }
.card__media { position: relative; border-radius: var(--radius-lg); overflow: hidden; aspect-ratio: 16 / 11; background: var(--panel); box-shadow: inset 0 0 0 1px var(--line); }
.card__media img { width: 100%; height: 100%; object-fit: cover; transition: transform 1.2s var(--ease), filter .6s; }
.card:hover .card__media img { transform: scale(1.045); }
.card__media::after { content: ""; position: absolute; inset: 0; background: radial-gradient(500px circle at var(--mx, 50%) var(--my, 120%), rgba(255,196,0,.18), transparent 50%); opacity: 0; transition: opacity .5s; pointer-events: none; }
.card:hover .card__media::after { opacity: 1; }
.card__body { display: grid; gap: 10px; }
.card__top { display: flex; justify-content: space-between; gap: 16px; align-items: baseline; }
.card__cat { font-family: var(--mono); font-size: .72rem; letter-spacing: .08em; text-transform: uppercase; color: var(--gold); }
.card__title { font-size: clamp(1.5rem, 2.4vw, 2.2rem); letter-spacing: -0.03em; transition: color .4s; }
.card:hover .card__title { color: var(--gold); }
.card__text { color: var(--muted); max-width: 52ch; }
.tags { display: flex; flex-wrap: wrap; gap: 6px; }
.tags li { font-family: var(--mono); font-size: .7rem; letter-spacing: .04em; text-transform: uppercase; padding: 4px 10px; border-radius: 999px; color: var(--muted); box-shadow: inset 0 0 0 1px var(--line); }
.card__link { display: inline-flex; align-items: center; gap: 8px; color: var(--text); font-weight: 500; font-size: .94rem; }
.card__link::after { content: ""; position: absolute; inset: 0; z-index: 2; }
.card__link svg { width: 16px; height: 16px; color: var(--gold); transition: transform .4s var(--ease); }
.card:hover .card__link svg { transform: translateX(4px); }

/* Carrossel arrastável */
.rail { display: flex; gap: clamp(16px, 2.4vw, 32px); overflow-x: auto; scroll-snap-type: x mandatory; scrollbar-width: none; padding-inline: max(var(--gutter), calc((100vw - var(--container)) / 2)); scroll-padding-inline: max(var(--gutter), calc((100vw - var(--container)) / 2)); cursor: grab; }
.rail::-webkit-scrollbar { display: none; }
.rail.is-dragging { cursor: grabbing; scroll-snap-type: none; }
.rail.is-dragging .card { pointer-events: none; }
.rail > li { flex: 0 0 min(64vw, 820px); scroll-snap-align: start; }
.rail > li:nth-child(even) .card__media { aspect-ratio: 4 / 3.4; }
.drag-cursor { position: fixed; z-index: 70; left: 0; top: 0; width: 104px; height: 104px; margin: -52px 0 0 -52px; border-radius: 50%; display: grid; place-items: center; text-align: center; background: var(--gold); color: var(--gold-ink); font-family: var(--mono); font-size: .68rem; letter-spacing: .08em; text-transform: uppercase; line-height: 1.3; pointer-events: none; transform: translate(var(--x, -200px), var(--y, -200px)) scale(0); transition: transform .35s var(--ease); }
.drag-cursor.is-on { transform: translate(var(--x), var(--y)) scale(1); }
.rail-nav { display: flex; align-items: center; gap: 16px; }
.rail-nav button { width: 48px; height: 48px; border-radius: 50%; border: 0; background: rgba(255,255,255,.05); box-shadow: inset 0 0 0 1px var(--line); cursor: pointer; display: grid; place-items: center; transition: background-color .3s, color .3s; }
.rail-nav button:hover { background: var(--gold); color: var(--gold-ink); }
.rail-nav svg { width: 16px; height: 16px; }

/* Grade de projetos */
.projects { display: grid; grid-template-columns: repeat(2, 1fr); gap: clamp(40px, 5vw, 72px) clamp(20px, 3vw, 40px); }
.projects > li:nth-child(even) { margin-top: clamp(0px, 8vw, 120px); }
.projects li[hidden] { display: none; }

/* ---------- Serviços em lista gigante ---------- */
.giant { border-top: 1px solid var(--line); }
.giant > li { position: relative; isolation: isolate; border-bottom: 1px solid var(--line); overflow: hidden; }
.giant > li::before { content: ""; position: absolute; inset: 0; background: var(--panel); transform: scaleY(0); transform-origin: 50% 100%; transition: transform .6s var(--ease); z-index: -1; }
.giant > li:hover::before, .giant > li:focus-within::before { transform: scaleY(1); }
.giant__row { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 340px) 56px; gap: 24px 40px; align-items: center; padding: 0 clamp(0px, 2.4vw, 36px); }
.giant__word { font-size: clamp(3.4rem, 10vw, 9.4rem); font-weight: 500; letter-spacing: -0.06em; line-height: .78; padding-top: .14em; height: .92em; overflow: hidden; transition: color .5s var(--ease), transform .7s var(--ease); }
.giant > li:hover .giant__word { color: var(--gold); transform: translateX(clamp(0px, 1.6vw, 24px)); font-family: var(--serif); font-style: italic; font-weight: 400; letter-spacing: -0.03em; }
.giant__desc { color: var(--muted); font-size: .95rem; line-height: 1.55; }
.giant__desc strong { display: block; color: var(--text); font-weight: 500; margin-bottom: 4px; }
.giant__icon { width: 52px; height: 52px; border-radius: 50%; display: grid; place-items: center; box-shadow: inset 0 0 0 1px var(--line-2); transition: background-color .4s, transform .6s var(--ease); }
.giant__icon img { width: 22px; height: 22px; }
.giant > li:hover .giant__icon { background: var(--gold-soft); transform: rotate(-12deg); }

/* ---------- Processo ---------- */
.process { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: clamp(32px, 6vw, 96px); }
.process__head { position: sticky; top: calc(var(--nav-h) + 32px); align-self: start; display: grid; gap: 20px; }
.timeline-steps { position: relative; display: grid; }
.timeline-steps::before { content: ""; position: absolute; left: 0; top: 0; bottom: 0; width: 1px; background: var(--line); }
.timeline-steps::after { content: ""; position: absolute; left: 0; top: 0; width: 1px; height: 100%; background: linear-gradient(var(--gold), var(--gold-2)); transform-origin: 50% 0; transform: scaleY(var(--fill, 0)); }
.tstep { position: relative; padding: 0 0 clamp(48px, 6vw, 80px) clamp(28px, 4vw, 56px); display: grid; gap: 12px; }
.tstep:last-child { padding-bottom: 0; }
.tstep::before { content: ""; position: absolute; left: -5px; top: 4px; width: 11px; height: 11px; border-radius: 50%; background: var(--bg); box-shadow: inset 0 0 0 1.5px var(--line-2); transition: background-color .4s, box-shadow .4s; z-index: 1; }
.tstep.is-in::before { background: var(--gold); box-shadow: 0 0 0 6px rgba(255,196,0,.12); }
.tstep__num { font-family: var(--mono); font-size: .8rem; color: var(--gold); letter-spacing: .08em; }
.tstep h3 { font-size: clamp(1.6rem, 2.8vw, 2.5rem); letter-spacing: -0.035em; }
.tstep p { color: var(--muted); max-width: 48ch; }

/* ---------- Orçamento ---------- */
.quote { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: clamp(32px, 5vw, 80px); align-items: start; }
.quote__aside { position: sticky; top: calc(var(--nav-h) + 24px); display: grid; gap: 22px; }
.quote__panel { position: relative; border-radius: var(--radius-lg); padding: clamp(22px, 3.4vw, 44px); background: linear-gradient(170deg, var(--panel-2), var(--panel)); box-shadow: inset 0 0 0 1px var(--line), 0 50px 140px -70px rgba(255,196,0,.45); }
/* Formulário gerenciado: marcação canônica do núcleo (SPEC §8.1, D26) */
.cms-progresso { display: flex; gap: 6px; margin-bottom: 28px; }
.cms-progresso span { flex: 1; height: 3px; border-radius: 4px; background: rgba(255,255,255,.08); overflow: hidden; position: relative; }
.cms-progresso span::after { content: ""; position: absolute; inset: 0; background: var(--gold); transform: scaleX(0); transform-origin: left; transition: transform .6s var(--ease); }
.cms-progresso span.is-done::after { transform: scaleX(1); }
.cms-contagem { font-family: var(--mono); font-size: .76rem; letter-spacing: .08em; text-transform: uppercase; color: var(--dim); margin-bottom: 12px; }
.cms-etapa { border: 0; padding: 0; margin: 0; min-width: 0; animation: step-in .6s var(--ease); }
.cms-etapa[hidden] { display: none; }
@keyframes step-in { from { opacity: 0; transform: translateX(24px); } }
.cms-etapa__titulo { font-size: clamp(1.4rem, 2.3vw, 1.9rem); font-weight: 500; letter-spacing: -0.025em; line-height: 1.15; margin-bottom: 8px; padding: 0; }
.cms-ajuda { color: var(--muted); margin-bottom: 22px; font-size: .95rem; }
.cms-opcoes { display: grid; grid-template-columns: repeat(2, 1fr); gap: 10px; }
.cms-opcoes--3 { grid-template-columns: repeat(3, 1fr); }
.cms-opcoes--1 { grid-template-columns: 1fr; }
.cms-opcao { position: relative; }
.cms-opcao input { position: absolute; opacity: 0; inset: 0; cursor: pointer; margin: 0; }
.cms-opcao span { display: flex; align-items: center; gap: 12px; min-height: 62px; padding: 14px 18px; border-radius: 16px; background: rgba(255,255,255,.03); box-shadow: inset 0 0 0 1px var(--line); font-size: .95rem; transition: box-shadow .25s, background-color .25s; }
.cms-opcao span::before { content: ""; flex-shrink: 0; width: 18px; height: 18px; border-radius: 6px; box-shadow: inset 0 0 0 1.5px var(--line-2); transition: background-color .2s, box-shadow .2s; }
.cms-opcao input[type="radio"] + span::before { border-radius: 50%; }
.cms-opcao input:hover + span { box-shadow: inset 0 0 0 1px var(--line-2); }
.cms-opcao input:checked + span { background: rgba(255,196,0,.07); box-shadow: inset 0 0 0 1px rgba(255,196,0,.6); }
.cms-opcao input:checked + span::before { background: var(--gold); box-shadow: inset 0 0 0 4px #1a1400; }
.cms-opcao input:focus-visible + span { outline: 2px solid var(--gold); outline-offset: 2px; }
.cms-campos { display: grid; grid-template-columns: repeat(2, 1fr); gap: 14px; }
.cms-campo { display: grid; gap: 8px; }
.cms-campo--largo { grid-column: 1 / -1; }
.cms-rotulo { font-size: .86rem; color: var(--muted); }
.cms-entrada { width: 100%; min-height: 54px; padding: 14px 16px; border: 0; border-radius: 14px; background: rgba(255,255,255,.04); box-shadow: inset 0 0 0 1px var(--line); transition: box-shadow .2s, background-color .2s; }
textarea.cms-entrada { min-height: 110px; resize: vertical; }
.cms-entrada:focus { outline: none; box-shadow: inset 0 0 0 1px var(--gold); background: rgba(255,255,255,.06); }
.cms-entrada::placeholder { color: var(--dim); }
.cms-entrada[aria-invalid="true"] { box-shadow: inset 0 0 0 1px var(--danger); }
.cms-consentimento { display: flex; gap: 12px; align-items: flex-start; margin-top: 18px; font-size: .86rem; color: var(--muted); }
.cms-consentimento input { margin-top: 3px; width: 18px; height: 18px; accent-color: var(--gold); flex-shrink: 0; }
.cms-consentimento a { color: var(--gold); text-decoration: underline; text-underline-offset: 3px; }
.cms-erro { min-height: 1.4em; margin-top: 14px; color: var(--danger); font-size: .9rem; }
.cms-navegacao { display: flex; justify-content: space-between; gap: 12px; margin-top: 10px; }
.cms-navegacao [hidden] { display: none; }
.cms-isca { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.cms-sucesso { text-align: center; display: grid; gap: 14px; justify-items: center; padding: 30px 0; }
.cms-sucesso[hidden] { display: none; }
.cms-sucesso__icone { width: 64px; height: 64px; border-radius: 50%; display: grid; place-items: center; background: var(--gold-soft); color: var(--gold); }
.cms-sucesso__icone svg { width: 28px; height: 28px; }
.cms-sucesso__titulo { font-size: 1.6rem; }
.cms-sucesso__texto { font-size: var(--fs-lead); color: var(--muted); max-width: 46ch; }

/* ---------- Rodapé com feixe de luz ---------- */
.footer { position: relative; isolation: isolate; overflow: hidden; padding-top: clamp(80px, 10vw, 140px); background: linear-gradient(180deg, var(--bg) 0%, #0f0e0b 100%); border-top: 1px solid var(--line); }
.footer__stripes { position: absolute; inset: 0; z-index: -2; pointer-events: none; background-image: repeating-linear-gradient(90deg, rgba(255,255,255,.025) 0 1px, transparent 1px 64px); mask-image: linear-gradient(180deg, transparent, #000 40%); -webkit-mask-image: linear-gradient(180deg, transparent, #000 40%); }
.footer__beam { position: absolute; z-index: -1; top: -30%; left: 30%; width: 34%; height: 170%; pointer-events: none; background: linear-gradient(90deg, transparent, rgba(255,200,40,.13) 45%, rgba(255,220,120,.2) 50%, rgba(255,200,40,.13) 55%, transparent); transform: rotate(24deg); filter: blur(24px); animation: beam 14s ease-in-out infinite alternate; }
@keyframes beam { from { transform: translateX(-18vw) rotate(24deg); } to { transform: translateX(22vw) rotate(18deg); } }
.footer__glow { position: absolute; z-index: -1; width: 560px; height: 560px; margin: -280px 0 0 -280px; left: 0; top: 0; border-radius: 50%; background: radial-gradient(circle, rgba(255,196,0,.14), transparent 60%); transform: translate(var(--gx, 50vw), var(--gy, 300px)); pointer-events: none; transition: transform .25s linear; }
.footer__top { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: end; gap: 32px; padding-bottom: clamp(48px, 6vw, 80px); border-bottom: 1px solid var(--line); }
.footer__top h2 { font-size: var(--fs-h2); max-width: 14ch; }
.footer__grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr; gap: 40px; padding-block: clamp(40px, 5vw, 64px); }
.footer__brand { display: grid; gap: 20px; align-content: start; justify-items: start; }
.footer__brand img { width: 180px; }
.footer__brand p { color: var(--muted); max-width: 38ch; }
.footer .label { margin-bottom: 18px; }
.footer__list { display: grid; gap: 10px; }
.footer__list a, .footer__list span { color: var(--muted); transition: color .2s; }
.footer__list a:hover { color: var(--gold); }
.glass-btns { display: flex; flex-wrap: wrap; gap: 8px; }
.glass-btns a { padding: 9px 14px; border-radius: 999px; font-family: var(--mono); font-size: .72rem; letter-spacing: .06em; text-transform: uppercase; color: var(--text); background: rgba(255,255,255,.05); box-shadow: inset 0 0 0 1px var(--line), inset 0 1px 0 rgba(255,255,255,.06); backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px); transition: background-color .3s, color .3s; }
.glass-btns a:hover { background: var(--gold); color: var(--gold-ink); }
.footer__bottom { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 12px; font-family: var(--mono); font-size: .72rem; letter-spacing: .06em; text-transform: uppercase; color: var(--dim); }
.footer__bottom a:hover { color: var(--text); }
.to-top { display: inline-flex; align-items: center; gap: 10px; }
.to-top i { width: 40px; height: 40px; border-radius: 50%; display: grid; place-items: center; box-shadow: inset 0 0 0 1px var(--line-2); transition: background-color .3s, color .3s; font-style: normal; }
.to-top:hover i { background: var(--gold); color: var(--gold-ink); }
.wordmark { position: relative; margin-top: clamp(24px, 4vw, 48px); height: clamp(110px, 21vw, 330px); overflow: hidden; pointer-events: none; user-select: none; }
.wordmark span { position: absolute; left: 50%; top: 0; transform: translateX(-50%); font-size: clamp(9rem, 29vw, 30rem); font-weight: 900; letter-spacing: -0.07em; line-height: .78; white-space: nowrap; background: linear-gradient(180deg, rgba(255,214,90,.55) 0%, rgba(255,196,0,.18) 45%, rgba(255,196,0,0) 85%); -webkit-background-clip: text; background-clip: text; color: transparent; }

/* ---------- Topo das páginas internas ---------- */
.page-hero { position: relative; isolation: isolate; overflow: hidden; padding-top: calc(var(--nav-h) + clamp(64px, 11vw, 150px)); padding-bottom: clamp(48px, 7vw, 96px); }
.page-hero::after { content: ""; position: absolute; inset: auto 0 0; height: 40%; z-index: -1; background: linear-gradient(to top, var(--bg), transparent); }
.page-hero__inner { display: grid; gap: 26px; justify-items: start; }
.page-hero h1 { font-size: var(--fs-h1); font-weight: 500; letter-spacing: -0.05em; line-height: .95; max-width: 16ch; }
.page-hero__row { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: end; gap: 24px 48px; width: 100%; }
.page-hero__row .lead { max-width: 42ch; }
.count { font-family: var(--mono); font-size: .9rem; color: var(--gold); vertical-align: super; letter-spacing: 0; margin-left: .2em; }

.filters { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: clamp(36px, 5vw, 64px); }
.filters button { min-height: 42px; padding: 0 18px; border-radius: 999px; border: 0; cursor: pointer; background: rgba(255,255,255,.04); box-shadow: inset 0 0 0 1px var(--line); color: var(--muted); font-family: var(--mono); font-size: .76rem; letter-spacing: .06em; text-transform: uppercase; transition: background-color .25s, color .25s; }
.filters button:hover { color: var(--text); }
.filters button[aria-pressed="true"] { background: var(--gold); color: var(--gold-ink); box-shadow: none; }
.empty { color: var(--muted); padding: 40px 0; text-align: center; }
.empty[hidden] { display: none; }

.cta-band { position: relative; border-radius: var(--radius-lg); padding: clamp(48px, 8vw, 120px) clamp(24px, 5vw, 72px); text-align: center; overflow: hidden; isolation: isolate; background: var(--panel); box-shadow: inset 0 0 0 1px var(--line); display: grid; gap: 22px; justify-items: center; }
.cta-band::before { content: ""; position: absolute; z-index: -1; left: 50%; bottom: -70%; width: 120%; height: 130%; transform: translateX(-50%); background: radial-gradient(ellipse at 50% 100%, rgba(255,196,0,.32), transparent 60%); }
.cta-band h2 { font-size: var(--fs-h2); max-width: 18ch; }
.cta-band p { color: var(--muted); max-width: 52ch; }
.cta-band__btns { display: flex; flex-wrap: wrap; gap: 12px; justify-content: center; margin-top: 8px; }

/* Case */
.back { display: inline-flex; align-items: center; gap: 8px; font-family: var(--mono); font-size: .76rem; letter-spacing: .06em; text-transform: uppercase; color: var(--muted); }
.back:hover { color: var(--gold); }
.back svg { width: 16px; height: 16px; }
.case-cover { perspective: 1600px; margin-top: clamp(40px, 6vw, 72px); }
.case-cover img { width: 100%; aspect-ratio: 16 / 10; object-fit: cover; border-radius: var(--radius-lg); box-shadow: 0 80px 160px -80px rgba(255,196,0,.55); transform: rotateX(var(--tilt, 14deg)) scale(var(--sc, .94)); transform-origin: 50% 0; }
.meta { display: grid; grid-template-columns: repeat(4, 1fr) auto; gap: 24px; align-items: center; padding: 28px 0; border-block: 1px solid var(--line); }
.meta dl { display: contents; }
.meta div { display: grid; gap: 6px; }
.meta dt { font-family: var(--mono); font-size: .7rem; letter-spacing: .08em; text-transform: uppercase; color: var(--dim); }
.case-text { display: grid; grid-template-columns: minmax(0, 4fr) minmax(0, 7fr); gap: clamp(24px, 5vw, 80px); }
.case-text > div:first-child { display: grid; gap: 18px; align-content: start; }
.case-text h2 { font-size: var(--fs-h2); }
.rich { color: var(--muted); font-size: var(--fs-lead); }
.rich p + p { margin-top: 14px; }
.rich strong { color: var(--text); font-weight: 500; }
.rich a { color: var(--gold); text-decoration: underline; text-underline-offset: 3px; }
.gallery { display: grid; grid-template-columns: repeat(2, 1fr); gap: clamp(14px, 2vw, 24px); }
.gallery > li:first-child { grid-column: 1 / -1; }
.shot { border-radius: var(--radius); overflow: hidden; box-shadow: inset 0 0 0 1px var(--line); background: var(--panel); }
.shot img { width: 100%; aspect-ratio: 16 / 10; object-fit: cover; }
.shot figcaption { padding: 14px 18px; font-family: var(--mono); font-size: .74rem; letter-spacing: .04em; color: var(--muted); border-top: 1px solid var(--line); }
.next { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: clamp(24px, 4vw, 64px); align-items: center; }
.next__card { border-radius: var(--radius-lg); overflow: hidden; box-shadow: inset 0 0 0 1px var(--line); }
.next__card img { width: 100%; aspect-ratio: 16 / 10; object-fit: cover; transition: transform 1.2s var(--ease); }
.next:hover .next__card img { transform: scale(1.04); }
.next__text { display: grid; gap: 18px; justify-items: start; }
.next__text h2 { font-size: var(--fs-h2); }

/* Sobre */
.intro { display: grid; grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); gap: clamp(32px, 6vw, 96px); align-items: center; }
.portrait { position: relative; border-radius: var(--radius-lg); overflow: hidden; aspect-ratio: 4 / 5; box-shadow: inset 0 0 0 1px var(--line); transform: perspective(1200px) rotateY(var(--ry, 0deg)) rotateX(var(--rx, 0deg)); transition: transform .5s var(--ease); }
.portrait img { width: 100%; height: 100%; object-fit: cover; object-position: 50% 30%; }
.portrait::after { content: ""; position: absolute; inset: 0; background: linear-gradient(to top, rgba(13,13,15,.7), transparent 45%), radial-gradient(ellipse at 50% 120%, rgba(255,196,0,.45), transparent 60%); }
.portrait__tag { position: absolute; z-index: 1; left: 18px; bottom: 18px; right: 18px; display: flex; justify-content: space-between; font-family: var(--mono); font-size: .72rem; letter-spacing: .06em; text-transform: uppercase; color: var(--text); }
.tabs { display: grid; gap: 22px; width: 100%; }
.tabs__list { display: flex; flex-wrap: wrap; gap: 6px; }
.tabs__list button { min-height: 40px; padding: 0 16px; border: 0; border-radius: 999px; background: transparent; box-shadow: inset 0 0 0 1px var(--line); color: var(--muted); font-family: var(--mono); font-size: .74rem; letter-spacing: .06em; text-transform: uppercase; cursor: pointer; transition: background-color .3s, color .3s; }
.tabs__list button[aria-selected="true"] { background: var(--gold); color: var(--gold-ink); box-shadow: none; }
.tabs__item[hidden] { display: none; }
.tabs__item { animation: step-in .6s var(--ease); }
.tabs__panel { font-size: clamp(1.3rem, 2.2vw, 1.9rem); line-height: 1.3; letter-spacing: -0.02em; color: var(--text); }
.tabs__panel p + p { margin-top: .6em; }
.tabs__panel strong { color: var(--gold); font-weight: 500; }
.facts { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1px; background: var(--line); border-radius: var(--radius); overflow: hidden; box-shadow: inset 0 0 0 1px var(--line); width: 100%; }
.facts li { padding: 18px 20px; background: var(--bg); display: grid; gap: 4px; }
.facts strong { font-weight: 500; }
.facts span { font-family: var(--mono); font-size: .7rem; letter-spacing: .05em; text-transform: uppercase; color: var(--muted); line-height: 1.5; }
.timeline { display: grid; }
.job { display: grid; grid-template-columns: minmax(0, 3fr) minmax(0, 7fr); gap: clamp(16px, 4vw, 64px); padding: clamp(32px, 4vw, 48px) 0; border-top: 1px solid var(--line); }
.job:last-child { border-bottom: 1px solid var(--line); }
.job__when { display: grid; gap: 14px; align-content: start; justify-items: start; }
.job__when strong { font-family: var(--mono); font-size: .8rem; letter-spacing: .06em; text-transform: uppercase; color: var(--gold); font-weight: 400; }
.job__when span { font-family: var(--mono); font-size: .72rem; letter-spacing: .06em; text-transform: uppercase; color: var(--dim); }
.job__logo { width: 52px; height: 52px; border-radius: 14px; }
.job__what { display: grid; gap: 10px; }
.job__what h3 { font-size: clamp(1.4rem, 2.4vw, 2.1rem); letter-spacing: -0.03em; }
.job__company { color: var(--text); }
.job__path { font-family: var(--mono); font-size: .74rem; letter-spacing: .04em; color: var(--gold); opacity: .85; }
.job ul { display: grid; gap: 6px; margin-top: 8px; }
.job li { position: relative; padding-left: 22px; color: var(--muted); }
.job li::before { content: "→"; position: absolute; left: 0; color: var(--gold); font-size: .85em; }
.stack { display: grid; grid-template-columns: repeat(2, 1fr); gap: 1px; background: var(--line); border-radius: var(--radius-lg); overflow: hidden; box-shadow: inset 0 0 0 1px var(--line); }
.stack > li { padding: clamp(24px, 3.4vw, 44px); background: var(--bg); display: grid; gap: 18px; align-content: start; transition: background-color .4s; }
.stack > li:hover { background: var(--panel); }
.stack h3 { font-size: clamp(1.3rem, 2vw, 1.7rem); }
.chips { display: flex; flex-wrap: wrap; gap: 6px; }
.chips li { padding: 6px 12px; border-radius: 999px; font-size: .86rem; box-shadow: inset 0 0 0 1px var(--line-2); }
.edu { display: grid; grid-template-columns: repeat(3, 1fr); gap: clamp(12px, 2vw, 20px); }
.edu > li { padding: 24px; border-radius: var(--radius); background: var(--panel); box-shadow: inset 0 0 0 1px var(--line); display: grid; grid-template-columns: auto 1fr; gap: 6px 16px; align-items: start; align-content: start; }
.edu img { grid-row: span 3; width: 48px; height: 48px; border-radius: 12px; }
.edu__org { font-family: var(--mono); font-size: .7rem; letter-spacing: .06em; text-transform: uppercase; color: var(--gold); }
.edu h3 { font-size: 1.1rem; letter-spacing: -0.01em; line-height: 1.3; }
.edu__year { color: var(--dim); font-family: var(--mono); font-size: .74rem; }
.subhead { font-size: var(--fs-h3); margin: clamp(40px, 5vw, 64px) 0 20px; }

.legal { max-width: 760px; }
.legal h2 { font-size: 1.4rem; margin: 36px 0 12px; letter-spacing: -0.02em; }
.legal p, .legal li { color: var(--muted); }
.legal ul { list-style: disc; padding-left: 20px; display: grid; gap: 6px; }

/* ---------- Animações de entrada e saída ---------- */
.js [data-reveal] { opacity: 0; transform: translateY(32px); filter: blur(8px); transition: opacity 1s var(--ease), transform 1.1s var(--ease), filter 1s var(--ease); transition-delay: var(--rd, 0s); }
.js [data-reveal].is-in { opacity: 1; transform: none; filter: none; }
.js [data-reveal].is-out { opacity: 0; transform: translateY(-24px); filter: blur(6px); transition-duration: .6s; transition-delay: 0s; }
.js .split .w { display: inline-block; overflow: hidden; vertical-align: top; padding-bottom: .1em; margin-bottom: -.1em; }
.js .split .w > span { display: inline-block; transform: translateY(108%) rotate(4deg); transition: transform 1.1s var(--ease); transition-delay: calc(var(--i, 0) * 45ms + var(--rd, 0s)); }
.js .split.is-in .w > span { transform: none; }

/* ---------- Responsivo ---------- */
@media (max-width: 1080px) {
  .meta { grid-template-columns: repeat(2, 1fr); }
  .meta .btn { grid-column: 1 / -1; justify-self: start; }
  .footer__grid { grid-template-columns: 1fr 1fr; }
  .footer__brand { grid-column: 1 / -1; }
  .giant__row { grid-template-columns: minmax(0, 1fr) 52px; }
  .giant__desc { grid-column: 1; grid-row: 2; padding-bottom: 24px; }
  .giant__icon { grid-row: 1; grid-column: 2; }
}
@media (max-width: 900px) {
  .hero__grid, .manifesto, .quote, .case-text, .next, .intro, .stack, .job, .process { grid-template-columns: 1fr; }
  .hero__stage { position: relative; order: 2; right: auto; top: auto; transform: none; width: min(100%, 420px); margin: 8px auto -40px; z-index: 0; }
  .hero__grid { order: 1; flex: none; }
  .hero__foot { order: 3; }
  .hero .ticker { order: 4; }
  .hero__foot { grid-template-columns: 1fr; }
  .stats { justify-self: stretch; justify-content: start; }
  .quote__aside, .process__head { position: static; }
  .projects { grid-template-columns: 1fr; }
  .projects > li:nth-child(even) { margin-top: 0; }
  .rail > li { flex-basis: 82vw; }
  .edu { grid-template-columns: 1fr 1fr; }
  .portrait { max-width: 520px; }
  .brand { margin: -6px; }
}
@media (max-width: 640px) {
  .gallery, .edu, .cms-opcoes, .cms-opcoes--3, .cms-campos, .facts { grid-template-columns: 1fr; }
  .gallery > li:first-child { grid-column: auto; }
  .hero__ctas .btn, .cta-band__btns .btn { width: 100%; }
  .meta { grid-template-columns: 1fr; }
  .footer__grid { grid-template-columns: 1fr; }
  .cms-navegacao .btn { flex: 1; }
  .stats { grid-template-columns: repeat(3, 1fr); gap: 16px; }
  .stats strong { font-size: 2.2rem; }
  .pillars { justify-content: flex-start; }
  .pillars li + li::before { margin-right: 0; }
  .brand { width: 46%; margin: -4px; }
  .drag-cursor { display: none; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .001ms !important; animation-iteration-count: 1 !important; transition-duration: .001ms !important; }
  .js [data-reveal], .js [data-reveal].is-out { opacity: 1; transform: none; filter: none; }
  .js .split .w > span { transform: none; }
  .js .statement .wd { color: inherit; }
  ::view-transition-old(root), ::view-transition-new(root) { animation: none; }
}
