/* =========================================================
   cdev.com.br, home
   Preto e branco. Uma família (Archivo, eixo de largura 62–125).
   O nome no topo muda de largura conforme a rolagem; o resto fica quieto.
   ========================================================= */

@font-face {
  font-family: "Archivo";
  font-style: normal; font-display: swap;
  font-weight: 100 900; font-stretch: 62% 125%;
  src: url("../fonts/archivo-latin-wdth-normal.woff2") format("woff2-variations"), url("../fonts/archivo-latin-wdth-normal.woff2") format("woff2");
  unicode-range: U+0000-00FF,U+0131,U+0152-0153,U+02BB-02BC,U+02C6,U+02DA,U+02DC,U+0304,U+0308,U+0329,U+2000-206F,U+20AC,U+2122,U+2191,U+2193,U+2212,U+2215,U+FEFF,U+FFFD;
}
@font-face {
  font-family: "Archivo";
  font-style: normal; font-display: swap;
  font-weight: 100 900; font-stretch: 62% 125%;
  src: url("../fonts/archivo-latin-ext-wdth-normal.woff2") format("woff2-variations"), url("../fonts/archivo-latin-ext-wdth-normal.woff2") format("woff2");
  unicode-range: U+0100-02BA,U+02BD-02C5,U+02C7-02CC,U+02CE-02D7,U+02DD-02FF,U+1D00-1DBF,U+1E00-1E9F,U+1EF2-1EFF,U+2020,U+20A0-20AB,U+20AD-20C0,U+2113,U+2C60-2C7F,U+A720-A7FF;
}

:root {
  --black: #000;
  --white: #fff;
  --text-2: #a3a3a3;   /* texto secundário: 8.4:1 sobre preto */
  --text-3: #7c7c7c;   /* metadados: 4.9:1 */
  --rule: #262626;     /* linhas */
  --rule-2: #3a3a3a;
  --rail-w: 252px;
  --pad: clamp(24px, 6vw, 104px);
  --ease: cubic-bezier(.22, 1, .36, 1);
  --font: "Archivo", "Helvetica Neue", Arial, sans-serif;
  color-scheme: dark;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-padding-top: 24px; }
body {
  margin: 0; overflow-x: clip;
  background: var(--black);
  color: var(--white);
  font-family: var(--font);
  font-size: 17px;
  line-height: 1.6;
  font-variation-settings: "wdth" 100;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
img, svg { display: block; max-width: 100%; }
a, a:where(:visited) { color: inherit; }
html { -webkit-tap-highlight-color: transparent; accent-color: #fff; caret-color: #fff; }
button, input, select, textarea { color: inherit; -webkit-tap-highlight-color: transparent; }
/* preenchimento automático do navegador sem fundo azul/amarelo */
input:-webkit-autofill, input:-webkit-autofill:hover, input:-webkit-autofill:focus {
  -webkit-text-fill-color: #fff; caret-color: #fff;
  -webkit-box-shadow: 0 0 0 1000px #0b0b0b inset; box-shadow: 0 0 0 1000px #0b0b0b inset;
  transition: background-color 9999s ease-out 0s;
}
h1, h2, h3, p, dl, dd, ol, ul, figure { margin: 0; padding: 0; }
ol, ul { list-style: none; }
strong { font-weight: 650; }
::selection { background: var(--white); color: var(--black); }

:focus-visible { outline: 2px solid var(--white); outline-offset: 4px; border-radius: 2px; }

.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.skip {
  position: fixed; left: 16px; top: -60px; z-index: 200;
  background: var(--white); color: var(--black); padding: 10px 16px; border-radius: 6px;
  font-weight: 600; text-decoration: none; transition: top .2s var(--ease);
}
.skip:focus { top: 16px; }

/* ---------- barra de rolagem ---------- */
html { scrollbar-width: thin; scrollbar-color: #444 #000; }
::-webkit-scrollbar { width: 10px; }
::-webkit-scrollbar-track { background: #000; }
::-webkit-scrollbar-thumb { background: #3a3a3a; border-radius: 99px; border: 3px solid #000; }
::-webkit-scrollbar-thumb:hover { background: #6a6a6a; }

/* =========================================================
   TRILHA (barra lateral)
   ========================================================= */
.rail {
  position: fixed; inset: 0 auto 0 0; z-index: 40;
  width: var(--rail-w); height: 100vh; height: 100dvh;
  display: flex; flex-direction: column;
  padding: 32px 28px 28px;
  border-right: 1px solid var(--rule);
  background: var(--black);
}
.rail-logo { width: 46px; color: var(--white); }
.rail-logo svg { width: 46px; height: auto; }
html.has-intro .rail-logo, html.intro-flying .rail-logo, html.has-intro .mbar-logo, html.intro-flying .mbar-logo { opacity: 0; }
.mbar-logo { transition: opacity .3s; }
.rail-logo { transition: opacity .4s; }

.trail { position: relative; margin: auto 0; padding: 4px 0; }
.trail ol { display: grid; gap: 6px; position: relative; z-index: 1; }
.trail a {
  display: grid; grid-template-columns: 28px 1fr; align-items: center; gap: 14px;
  padding: 9px 0; text-decoration: none; color: var(--text-3);
  font-size: 15px; line-height: 1.25;
  transition: color .25s;
}
.trail-n {
  width: 28px; height: 28px; border-radius: 50%;
  display: grid; place-items: center;
  font-size: 12px; font-weight: 600; font-variant-numeric: tabular-nums;
  background: var(--black); border: 1px solid var(--rule-2);
  transition: background .3s var(--ease), color .3s, border-color .3s;
}
.trail-t { transition: transform .35s var(--ease); }
.trail a:hover { color: var(--white); }
.trail a:hover .trail-t { transform: translateX(3px); }
.trail a.is-done { color: var(--text-2); }
.trail a.is-done .trail-n { border-color: var(--white); color: var(--white); }
.trail a.is-current { color: var(--white); font-weight: 600; }
.trail a.is-current .trail-n { background: var(--white); color: var(--black); border-color: var(--white); }

.trail-line {
  position: absolute; left: 13.5px; top: 22px; bottom: 22px; width: 1px;
  background: var(--rule-2); z-index: 0;
}
.trail-fill {
  position: absolute; left: 0; top: 0; width: 1px; height: 100%;
  background: var(--white); transform-origin: top; transform: scaleY(var(--p, 0));
}

.rail-foot { display: grid; gap: 14px; }

/* idioma: bandeiras */
.lang { display: inline-flex; gap: 4px; padding: 4px; border: 1px solid var(--rule); border-radius: 999px; width: max-content; }
.lang-btn {
  display: inline-flex; align-items: center; gap: 7px;
  height: 32px; padding: 0 11px 0 8px; border: 0; border-radius: 999px;
  background: transparent; color: var(--text-3);
  font: 600 12px/1 var(--font); letter-spacing: .02em; cursor: pointer;
  transition: background .25s, color .25s;
}
.lang-btn svg { width: 20px; height: 14px; border-radius: 2px; filter: grayscale(1) brightness(.75); opacity: .7; transition: filter .3s, opacity .3s; }
.lang-btn:hover { color: var(--white); }
.lang-btn:hover svg { opacity: 1; }
.lang-btn[aria-pressed="true"] { background: #1c1c1c; color: var(--white); }
.lang-btn[aria-pressed="true"] svg { filter: none; opacity: 1; }

/* som */
.sound {
  display: inline-flex; align-items: center; gap: 9px; width: max-content;
  height: 32px; padding: 0; border: 0; background: none; cursor: pointer;
  color: var(--text-3); font: 500 13px/1 var(--font);
  transition: color .25s;
}
.sound:hover { color: var(--white); }
.sound svg { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.sound[aria-pressed="true"] { color: var(--white); }
.sound[aria-pressed="false"] .waves { display: none; }
.sound[aria-pressed="true"] .mute { display: none; }

/* barra do celular */
.mbar { display: none; }

/* =========================================================
   CONTEÚDO
   ========================================================= */
main, .foot { margin-left: var(--rail-w); }
main { container-type: inline-size; }

.ch {
  padding: clamp(96px, 16vh, 168px) var(--pad) clamp(72px, 10vh, 112px);
  border-top: 1px solid var(--rule);
}
.ch > * { max-width: 1040px; }

.ch-head { display: grid; grid-template-columns: 1fr; margin-bottom: clamp(48px, 7vh, 80px); }
.ch-n { display: none;
  font-size: clamp(15px, 1.4cqi, 18px); font-weight: 600; color: var(--text-3);
  font-variant-numeric: tabular-nums; transform: translateY(-.35em);
}
.ch-head h2 {
  font-size: clamp(44px, 7.4cqi, 104px);
  line-height: .95; font-weight: 750; letter-spacing: -.02em;
  font-variation-settings: "wdth" 112;
}
.ch-sub { margin-top: 18px; color: var(--text-2); font-size: clamp(17px, 1.6cqi, 20px); max-width: 52ch; }

/* ---------- 1. Hero ---------- */
.ch-hero {
  border-top: 0;
  min-height: 100vh; min-height: 100svh;
  padding-top: clamp(40px, 7vh, 80px);
  padding-bottom: clamp(56px, 9vh, 96px);
  display: grid;
  grid-template-columns: minmax(180px, 280px) minmax(0, 1fr);
  grid-template-areas:
    "name name"
    "photo text"
    "photo goal"
    "photo actions";
  grid-template-rows: auto auto auto 1fr;
  column-gap: clamp(28px, 4cqi, 64px);
  align-content: start;
}
.ch-hero > * { max-width: none; }
.name {
  grid-area: name;
  --w: 125;
  font-size: 15.2cqi;
  font-weight: 800;
  line-height: .84;
  letter-spacing: -.03em;
  font-variation-settings: "wdth" var(--w);
  margin: 0 0 clamp(36px, 6vh, 72px) -.04em;
  white-space: nowrap;
}
.name span { display: block; }
.name span + span { padding-left: .62em; }

.hero-grid { display: contents; }
.lead {
  grid-area: text;
  font-size: clamp(22px, 2.5cqi, 34px);
  line-height: 1.22; font-weight: 500; letter-spacing: -.01em;
  max-width: 30ch;
}
.goal {
  grid-area: goal;
  margin-top: clamp(28px, 4vh, 40px);
  padding-left: 20px; border-left: 2px solid var(--white);
  max-width: 54ch;
}
.goal-h { font-size: 15px; font-weight: 650; margin-bottom: 4px; }
.goal p { color: var(--text-2); }

.hero-actions { grid-area: actions; display: flex; flex-wrap: wrap; align-items: center; gap: 12px 14px; margin-top: clamp(32px, 5vh, 48px); align-self: start; }
.where { color: var(--text-3); font-size: 14px; margin-left: 6px; }

.portrait {
  grid-area: photo; align-self: start;
  aspect-ratio: 4 / 5; overflow: hidden; border-radius: 6px;
  background: #161616;
}
.portrait img { width: 100%; height: 100%; object-fit: cover; object-position: 50% 25%; }

/* botões */
.btn {
  display: inline-flex; align-items: center; justify-content: center;
  height: 50px; padding: 0 26px; border-radius: 999px;
  font: 600 15px/1 var(--font); text-decoration: none; letter-spacing: .005em;
  transition: background .25s, color .25s, border-color .25s, transform .25s var(--ease);
}
.btn:active { transform: scale(.97); }
.btn-solid { background: var(--white); color: var(--black); }
.btn-solid:hover { background: #d9d9d9; }
.btn-line { border: 1px solid var(--rule-2); color: var(--white); }
.btn-line:hover { border-color: var(--white); }

/* ---------- 2. O que eu faço ---------- */
.skills { display: grid; }
.skill {
  display: grid; grid-template-columns: minmax(180px, 300px) 1fr;
  grid-template-areas: "h p" "h stack" "h proof";
  column-gap: 32px;
  padding: 32px 0; border-top: 1px solid var(--rule);
}
.skill:last-child { border-bottom: 1px solid var(--rule); }
.skill h3 { grid-area: h; font-size: clamp(22px, 2.4cqi, 30px); line-height: 1.1; font-weight: 700; font-variation-settings: "wdth" 108; }
.skill > p:not(.stack):not(.proof) { grid-area: p; font-size: 18px; max-width: 58ch; }
.skill .stack { grid-area: stack; color: var(--text-2); margin-top: 8px; font-size: 15px; }
.skill .proof { grid-area: proof; margin-top: 12px; font-size: 15px; color: var(--text-3); }

/* links de texto */
.proof a, .wip a, .case-body a {
  color: var(--white); text-decoration: underline; text-decoration-color: var(--text-3);
  text-underline-offset: 4px; text-decoration-thickness: 1px;
  transition: text-decoration-color .2s;
}
.proof a:hover, .case-body a:hover { text-decoration-color: var(--white); }

/* "próximo" ao fim de cada capítulo */
.next {
  display: inline-flex; flex-direction: column; gap: 4px;
  margin-top: clamp(56px, 8vh, 88px); text-decoration: none;
}
.next span { color: var(--text-3); font-size: 14px; }
.next strong {
  font-size: clamp(26px, 3.2cqi, 40px); font-weight: 700; line-height: 1.05;
  font-variation-settings: "wdth" 112;
  display: inline-flex; align-items: center; gap: .4em;
}
.next strong::after {
  content: ""; width: .7em; height: .7em; background: currentColor;
  -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='2.2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M12 4v16M5 13l7 7 7-7'/%3E%3C/svg%3E") center / contain no-repeat;
          mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='2.2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M12 4v16M5 13l7 7 7-7'/%3E%3C/svg%3E") center / contain no-repeat;
  transition: transform .35s var(--ease);
}
.next:hover strong::after { transform: translateY(5px); }

/* ---------- 3. Trajetória ---------- */
.timeline { position: relative; display: grid; gap: 0; --tl: 0; }
.timeline::before, .timeline::after {
  content: ""; position: absolute; left: 7px; top: 12px; bottom: 12px; width: 1px;
}
.timeline::before { background: var(--rule-2); }
.timeline::after { background: var(--white); transform-origin: top; transform: scaleY(var(--tl)); }
.tl {
  position: relative; display: grid;
  grid-template-columns: minmax(150px, 230px) 1fr; column-gap: 32px;
  padding: 0 0 clamp(40px, 6vh, 64px) 44px;
}
.tl::before {
  content: ""; position: absolute; left: 2px; top: 10px; width: 11px; height: 11px; border-radius: 50%;
  background: var(--black); border: 1px solid var(--rule-2); z-index: 1;
  transition: background .4s, border-color .4s;
}
.tl.is-on::before { background: var(--white); border-color: var(--white); }
.tl-y {
  font-size: clamp(22px, 2.6cqi, 32px); line-height: 1; font-weight: 700;
  font-variation-settings: "wdth" 70; letter-spacing: -.01em; font-variant-numeric: tabular-nums;
  color: var(--text-3); transition: color .4s;
}
.tl.is-on .tl-y { color: var(--white); }
.tl-b h3 { font-size: clamp(20px, 2cqi, 24px); line-height: 1.2; font-weight: 650; margin-bottom: 6px; }
.tl-b p { color: var(--text-2); max-width: 58ch; }

/* ---------- 4. Projetos ---------- */
.case { padding: clamp(36px, 5vh, 56px) 0; border-top: 1px solid var(--rule); scroll-margin-top: 24px; }
.case:last-of-type { border-bottom: 1px solid var(--rule); }
.case-top { display: flex; flex-wrap: wrap; align-items: baseline; justify-content: space-between; gap: 6px 24px; margin-bottom: 24px; }
.case-top h3 {
  font-size: clamp(30px, 4.2cqi, 56px); line-height: 1; font-weight: 750; letter-spacing: -.015em;
  font-variation-settings: "wdth" 115;
}
.case-meta { color: var(--text-3); font-size: 15px; }
.case-body { display: grid; grid-template-columns: minmax(120px, 170px) 1fr; gap: 14px 32px; }
.case-body dt { color: var(--text-3); font-size: 15px; padding-top: 2px; }
.case-body dd { max-width: 64ch; }
.case-body dd.stack { margin: 0; color: var(--text-2); font-size: 16px; }
.case-note { margin-top: 20px; color: var(--text-3); font-size: 15px; }

.case-links { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 24px; }
.case-link {
  display: inline-flex; align-items: center; gap: 8px; margin-top: 24px;
  height: 42px; padding: 0 16px; border: 1px solid var(--rule-2); border-radius: 999px;
  text-decoration: none; font-size: 14px; font-weight: 500;
  transition: border-color .25s, background .25s, color .25s;
}
.case-links .case-link { margin-top: 0; }
.case-link span { color: var(--text-2); transition: color .25s; }
.case-link::after {
  content: ""; width: 12px; height: 12px; background: currentColor;
  -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='2.4' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M7 17 17 7M8 7h9v9'/%3E%3C/svg%3E") center / contain no-repeat;
          mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='2.4' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M7 17 17 7M8 7h9v9'/%3E%3C/svg%3E") center / contain no-repeat;
  transition: transform .3s var(--ease);
}
.case-link:hover { background: var(--white); color: var(--black); border-color: var(--white); }
.case-link:hover span { color: #444; }
.case-link:hover::after { transform: translate(2px, -2px); }

.wip { margin-top: 40px; color: var(--text-2); max-width: 70ch; }
.wip strong { color: var(--white); }

/* ---------- 5. Contato ---------- */
.ch-contact { min-height: 80vh; }
.mail {
  display: inline-block;
  font-size: clamp(30px, 6.6cqi, 92px); line-height: 1; font-weight: 750; letter-spacing: -.025em;
  font-variation-settings: "wdth" 100;
  text-decoration: none; word-break: break-word;
  background: linear-gradient(currentColor, currentColor) 0 100% / 0 2px no-repeat;
  padding-bottom: 8px;
  transition: background-size .5s var(--ease);
}
.mail:hover { background-size: 100% 2px; }
.copy {
  display: block; margin-top: 20px;
  height: 40px; padding: 0 16px; border: 1px solid var(--rule-2); border-radius: 999px;
  background: none; color: var(--text-2); font: 500 14px/1 var(--font); cursor: pointer;
  transition: border-color .25s, color .25s;
}
.copy:hover { border-color: var(--white); color: var(--white); }
.links { display: flex; flex-wrap: wrap; gap: 8px 40px; margin-top: clamp(48px, 8vh, 80px); }
.links a {
  font-size: clamp(20px, 2.2cqi, 28px); font-weight: 600; text-decoration: none;
  font-variation-settings: "wdth" 108;
  background: linear-gradient(currentColor, currentColor) 0 100% / 0 1px no-repeat;
  transition: background-size .4s var(--ease);
}
.links a:hover { background-size: 100% 1px; }

/* ---------- rodapé ---------- */
.foot { border-top: 1px solid var(--rule); padding: 28px var(--pad) calc(28px + env(safe-area-inset-bottom, 0px)); }
.foot-in { display: flex; flex-wrap: wrap; gap: 12px 28px; align-items: center; color: var(--text-3); font-size: 14px; }
.foot-in > span { margin-right: auto; }
.foot-in a { text-decoration: none; transition: color .2s; }
.foot-in a:hover { color: var(--white); }

/* aviso de privacidade (consent.js) em preto e branco */
.cdev-consent.cdev-consent {
  background: #0a0a0a; color: var(--white); border: 1px solid var(--rule-2); border-radius: 10px;
  font-family: var(--font); box-shadow: 0 20px 60px rgba(0, 0, 0, .7);
}
@media (min-width: 900px) { .cdev-consent.cdev-consent { left: calc(var(--rail-w) + 24px); } }
.cdev-consent.cdev-consent h2 { color: var(--white); }
.cdev-consent.cdev-consent p { color: var(--text-2); }
.cdev-consent.cdev-consent p a { color: var(--white); }
.cdev-consent.cdev-consent p a:hover { color: var(--text-2); }
.cdev-consent.cdev-consent button { border-color: var(--rule-2); border-radius: 999px; font-family: var(--font); cursor: pointer; }
.cdev-consent.cdev-consent button:hover { border-color: var(--white); background: transparent; }
.cdev-consent.cdev-consent button[data-consent="granted"] { background: var(--white); border-color: var(--white); color: var(--black); }
.cdev-consent.cdev-consent button[data-consent="granted"]:hover { background: #d9d9d9; }
.cdev-consent.cdev-consent button:focus-visible { outline-color: var(--white); }

/* =========================================================
   PÁGINAS INTERNAS
   ========================================================= */
.rail-back {
  display: inline-flex; align-items: center; gap: 10px; margin-bottom: 22px;
  color: var(--text-2); text-decoration: none; font-size: 14px; font-weight: 500;
  transition: color .2s;
}
.rail-back svg { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; transition: transform .3s var(--ease); }
.rail-back:hover { color: var(--white); }
.rail-back:hover svg { transform: translateX(-3px); }
.rail-back + ol + .trail-line { top: 76px; }

.ch-page { border-top: 0; min-height: 72vh; display: flex; flex-direction: column; justify-content: center; padding-top: clamp(72px, 12vh, 140px); }
.page-title {
  font-size: clamp(52px, 10cqi, 148px); line-height: .9; font-weight: 800; letter-spacing: -.03em;
  font-variation-settings: "wdth" 118; max-width: 12ch;
}
.page-lead { margin-top: clamp(28px, 4vh, 44px); max-width: 34ch; }
.page-actions { margin-top: clamp(32px, 5vh, 48px); }

.prose { max-width: 66ch; font-size: 18px; }
.prose p + p, .prose p + ul, .prose ul + p, .prose ul + h3, .prose p + h3, .prose .table-wrap + p, .prose p + .table-wrap { margin-top: 16px; }
.prose h3 { font-size: 20px; font-weight: 650; margin: 32px 0 10px; font-variation-settings: "wdth" 105; }
.prose h3:first-child { margin-top: 0; }
.prose ul { display: grid; gap: 10px; }
.prose li { position: relative; padding-left: 22px; color: var(--text-2); }
.prose li::before { content: ""; position: absolute; left: 2px; top: .72em; width: 8px; height: 1px; background: var(--white); }
.prose li strong, .prose p strong { color: var(--white); }
.prose a { color: var(--white); text-decoration: underline; text-decoration-color: var(--text-3); text-underline-offset: 4px; transition: text-decoration-color .2s; }
.prose a:hover { text-decoration-color: var(--white); }
.prose code, .data-table code { font: 500 .88em/1 var(--font); font-variation-settings: "wdth" 85; background: #161616; border: 1px solid var(--rule); border-radius: 4px; padding: 3px 6px; white-space: nowrap; }

.case-text { max-width: 64ch; }
.end-card { margin-top: clamp(64px, 9vh, 104px); padding: clamp(28px, 4cqi, 48px); border: 1px solid var(--rule-2); border-radius: 10px; display: grid; gap: 14px; justify-items: start; }
.end-card h2 { font-size: clamp(26px, 3.2cqi, 40px); line-height: 1.05; font-weight: 750; font-variation-settings: "wdth" 112; }
.end-card p { color: var(--text-2); margin-bottom: 8px; }

/* ---------- privacidade ---------- */
.pv-status {
  display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 18px 32px;
  margin-top: clamp(36px, 5vh, 56px); padding: 20px 20px 20px 24px; max-width: 720px;
  border: 1px solid var(--rule-2); border-radius: 10px;
}
.pv-status-label { display: block; font-size: 14px; color: var(--text-3); }
.pv-status-value { display: inline-flex; align-items: center; gap: 10px; font-size: 18px; font-weight: 600; }
.pv-status-value::before { content: ""; width: 9px; height: 9px; border-radius: 50%; border: 1px solid var(--white); }
.pv-status[data-state="granted"] .pv-status-value::before { background: var(--white); }
.pv-updated { margin-top: 18px; color: var(--text-3); font-size: 14px; }

.pv-sec { padding: clamp(56px, 9vh, 96px) var(--pad); border-top: 1px solid var(--rule); scroll-margin-top: 0; }
.pv-sec > * { max-width: 1040px; }
.pv-sec h2 {
  display: flex; align-items: baseline; gap: 18px; margin-bottom: 28px;
  font-size: clamp(30px, 4cqi, 52px); line-height: 1; font-weight: 750; letter-spacing: -.015em;
  font-variation-settings: "wdth" 112;
}
.pv-n { font-size: .42em; color: var(--text-3); font-weight: 600; font-variant-numeric: tabular-nums; min-width: 1.6em; }
.pv-sec .prose { padding-left: calc(clamp(30px, 4cqi, 52px) * .42 * 1.6 + 18px); }
.pv-end h2 { font-size: clamp(26px, 3.2cqi, 40px); line-height: 1.1; font-weight: 700; margin-bottom: 20px; font-variation-settings: "wdth" 108; }
.mail-sm { font-size: clamp(26px, 4.4cqi, 56px); }

.table-wrap { overflow-x: auto; margin-top: 16px; border: 1px solid var(--rule-2); border-radius: 10px; }
.data-table { width: 100%; border-collapse: collapse; font-size: 15px; min-width: 560px; }
.data-table th { text-align: left; font-weight: 600; color: var(--text-2); padding: 14px 18px; border-bottom: 1px solid var(--rule-2); background: #0b0b0b; }
.data-table td { padding: 14px 18px; border-bottom: 1px solid var(--rule); vertical-align: top; color: var(--text-2); }
.data-table td:first-child { color: var(--white); white-space: nowrap; }
.data-table tr:last-child td { border-bottom: 0; }

/* ---------- erro (404 e outros) ---------- */
.err-top {
  position: fixed; inset: 0 0 auto 0; z-index: 40;
  display: flex; align-items: center; justify-content: space-between; gap: 16px;
  padding: 24px clamp(20px, 4vw, 40px);
}
.err-logo { width: 44px; color: var(--white); }
.err-tools { grid-auto-flow: column; align-items: center; gap: 18px; }
.err-page main, .err-page .foot, .login-page main { margin-left: 0; }
.err {
  min-height: 100vh; min-height: 100svh; display: flex; flex-direction: column; justify-content: center;
  padding: 120px clamp(20px, 8vw, 140px) 80px;
}

.err-timer { margin-top: 28px; color: var(--text-3); font-size: 14px; display: flex; flex-wrap: wrap; align-items: baseline; gap: 4px 6px; }
.err-timer #countdown { color: var(--white); font-variant-numeric: tabular-nums; }
.err-stay { margin-left: 8px; border: 0; padding: 0; background: none; color: var(--white); font: inherit; text-decoration: underline; text-underline-offset: 3px; cursor: pointer; }

/* ---------- login ---------- */
.login-back { color: var(--text-2); text-decoration: none; font-size: 15px; font-weight: 500; transition: color .2s; }
.login-back:hover { color: var(--white); }
.login {
  min-height: 100vh; min-height: 100svh;
  display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(300px, 420px); align-items: center; gap: clamp(40px, 8vw, 140px);
  padding: 120px clamp(20px, 8vw, 140px) 80px;
  container-type: inline-size;
}
.login .page-title { font-size: clamp(56px, 9vw, 132px); max-width: 8ch; }
.login-sub { margin-top: 24px; color: var(--text-2); font-size: 19px; max-width: 34ch; }
.login-form { display: grid; gap: 18px; }
.fld { display: grid; gap: 8px; font-size: 14px; font-weight: 500; color: var(--text-2); }
.field {
  width: 100%; height: 52px; padding: 0 16px;
  background: #0b0b0b; color: var(--white); border: 1px solid var(--rule-2); border-radius: 8px;
  font: 400 16px/1 var(--font); transition: border-color .2s, background .2s;
}
.field:hover { border-color: #555; }
.field:focus { outline: none; border-color: var(--white); background: #000; }
.field:focus-visible { outline: 2px solid var(--white); outline-offset: 2px; }
.login-submit { width: 100%; margin-top: 6px; border: 0; cursor: pointer; }
.login-submit.is-busy { opacity: .6; cursor: progress; }
.feedback { min-height: 1.4em; font-size: 15px; color: var(--text-2); }
.feedback[data-tone="error"] { color: var(--white); padding-left: 12px; border-left: 2px solid var(--white); }
.auth-state { max-width: 56ch; }
.auth-state .section-label { color: var(--text-3); font-size: 14px; margin-bottom: 8px; }
.auth-state h1 { font-size: clamp(36px, 5vw, 64px); line-height: 1; font-weight: 750; margin-bottom: 14px; }
.auth-state p { color: var(--text-2); }

/* ---------- lista de projetos (home) ---------- */
.plist { border-top: 1px solid var(--rule); }
.plist li { border-bottom: 1px solid var(--rule); scroll-margin-top: 24px; }
.plist a {
  display: grid; grid-template-columns: 72px minmax(0, 1fr) minmax(0, 220px); gap: 8px 28px; align-items: baseline;
  padding: 26px 0; text-decoration: none; position: relative;
}
.plist-y { color: var(--text-3); font-variant-numeric: tabular-nums; font-size: 15px; }
.plist-main strong { display: block; font-size: clamp(24px, 2.8cqi, 36px); line-height: 1.05; font-weight: 750; font-variation-settings: "wdth" 112; transition: transform .35s var(--ease); }
.plist-main span { display: block; margin-top: 8px; color: var(--text-2); max-width: 60ch; }
.plist-stack { color: var(--text-3); font-size: 14px; text-align: right; }
.plist a:hover strong { transform: translateX(6px); }
.plist a:hover .plist-stack { color: var(--text-2); }
.plist-all { margin-top: 36px; }

/* ---------- página de projetos ---------- */
.pj-index-wrap { margin-top: clamp(40px, 6vh, 64px); max-width: 1040px; }
.pj-index td:first-child a { color: var(--white); text-decoration: none; font-weight: 600; background: linear-gradient(currentColor, currentColor) 0 100% / 0 1px no-repeat; transition: background-size .35s var(--ease); }
.pj-index td:first-child a:hover { background-size: 100% 1px; }
.pj-index td { white-space: normal; }

.proj-head { margin-bottom: 20px; }
.proj-head h2 {
  font-size: clamp(40px, 6.4cqi, 92px); line-height: .95; font-weight: 800; letter-spacing: -.025em;
  font-variation-settings: "wdth" 116;
}
.proj-meta { display: flex; flex-wrap: wrap; gap: 6px 10px; margin-top: 18px; }
.proj-meta span { display: inline-flex; align-items: center; height: 30px; padding: 0 12px; border: 1px solid var(--rule-2); border-radius: 999px; font-size: 13px; color: var(--text-2); }
.proj-lead { font-size: clamp(20px, 2cqi, 26px); line-height: 1.3; font-weight: 500; max-width: 40ch; margin: 28px 0 0; }

.facts { display: grid; grid-template-columns: repeat(auto-fit, minmax(190px, 1fr)); margin: clamp(36px, 5vh, 56px) 0; border-top: 1px solid var(--rule-2); border-left: 1px solid var(--rule-2); max-width: 1040px; }
.facts li { padding: 22px 22px 24px; border-right: 1px solid var(--rule-2); border-bottom: 1px solid var(--rule-2); display: grid; gap: 8px; align-content: start; }
.facts strong { font-size: clamp(36px, 4.4cqi, 60px); line-height: 1; font-weight: 800; font-variation-settings: "wdth" 70; letter-spacing: -.01em; }
.facts span { color: var(--text-2); font-size: 15px; line-height: 1.45; }

.proj-body { margin-top: clamp(28px, 4vh, 40px); }
.decisions { display: grid; gap: 12px; }
.decisions li { position: relative; padding-left: 22px; }
.decisions li::before { content: ""; position: absolute; left: 2px; top: .72em; width: 8px; height: 1px; background: var(--white); }

.shot {
  display: block; margin-top: clamp(28px, 4vh, 40px); max-width: 880px; aspect-ratio: 8 / 5;
  border: 1px solid var(--rule-2); border-radius: 10px; overflow: hidden; background: #111;
}
.shot img { width: 100%; height: 100%; object-fit: cover; object-position: top; filter: grayscale(1) contrast(1.05); transition: filter .6s var(--ease), transform .8s var(--ease); }
.shot:hover img { filter: none; transform: scale(1.015); }
.shot:focus-visible img { filter: none; }

/* ---------- laboratório ---------- */
.st { display: inline-flex; align-items: center; gap: 8px; height: 30px; padding: 0 12px; border: 1px solid var(--rule-2); border-radius: 999px; font-size: 13px; color: var(--white); white-space: nowrap; }
.st::before { content: ""; width: 7px; height: 7px; border-radius: 50%; border: 1px solid var(--white); }
.st-live::before { background: var(--white); }
.st-wip::before { background: linear-gradient(90deg, var(--white) 50%, transparent 50%); }
.st-done::before { border-radius: 2px; background: var(--white); }
.lab-index { margin-top: clamp(40px, 6vh, 64px); max-width: 1040px; border-top: 1px solid var(--rule); }
.lab-index li { border-bottom: 1px solid var(--rule); }
.lab-index a { display: grid; grid-template-columns: minmax(0, 260px) minmax(0, 1fr) auto; gap: 6px 24px; align-items: center; padding: 18px 0; text-decoration: none; }
.lab-index strong { font-size: 20px; font-weight: 700; font-variation-settings: "wdth" 110; transition: transform .35s var(--ease); }
.lab-index span:not(.st) { color: var(--text-2); }
.lab-index a:hover strong { transform: translateX(6px); }
.mini { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 0; margin-top: clamp(32px, 5vh, 48px); border-top: 1px solid var(--rule-2); border-left: 1px solid var(--rule-2); max-width: 1040px; }
.mini article { padding: 24px; border-right: 1px solid var(--rule-2); border-bottom: 1px solid var(--rule-2); display: flex; flex-direction: column; gap: 10px; align-items: flex-start; }
.mini h3 { font-size: 20px; line-height: 1.15; font-weight: 700; font-variation-settings: "wdth" 108; }
.mini p { color: var(--text-2); font-size: 16px; }
.mini .stack { color: var(--text-3); font-size: 14px; margin-top: auto; }
.mini .case-link { margin-top: 4px; }
.plist-lab { margin-top: clamp(48px, 7vh, 72px); padding: 24px; border: 1px solid var(--rule-2); border-radius: 10px; display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 16px 32px; max-width: 1040px; }
.plist-lab h3 { font-size: 22px; font-weight: 700; font-variation-settings: "wdth" 110; }
.plist-lab p { color: var(--text-2); margin-top: 4px; }

/* ---------- 404: a frase é o destaque ---------- */
.err { position: relative; overflow: hidden; }
.err > *:not(.err-bg) { position: relative; z-index: 1; }
.err-bg {
  position: absolute; z-index: 0; right: -.06em; bottom: -.2em;
  font-size: clamp(220px, 42vw, 640px); line-height: 1; font-weight: 800; letter-spacing: -.05em;
  font-variation-settings: "wdth" 125; color: transparent; -webkit-text-stroke: 1px #222;
  pointer-events: none; user-select: none;
}
.err-label { color: var(--text-3); font-size: 15px; font-variant-numeric: tabular-nums; }
.err-label #error-code { color: var(--white); font-weight: 600; }
.err-phrase {
  margin-top: 20px; max-width: 17ch;
  font-size: clamp(38px, 6.2vw, 96px); line-height: 1; font-weight: 750; letter-spacing: -.025em;
  font-variation-settings: "wdth" 100; text-wrap: balance;
}
.err-phrase .w { display: inline-block; animation: wordIn .7s var(--ease) both; }
@keyframes wordIn { from { opacity: 0; transform: translateY(.35em); filter: blur(6px); } to { opacity: 1; transform: none; filter: none; } }
.err-shuffle {
  display: inline-flex; align-items: center; gap: 8px; margin-top: 22px; width: max-content;
  height: 36px; padding: 0 14px 0 12px; border: 1px solid var(--rule-2); border-radius: 999px;
  background: none; color: var(--text-2); font: 500 14px/1 var(--font); cursor: pointer;
  transition: border-color .2s, color .2s;
}
.err-shuffle[hidden] { display: none; }
.err-shuffle svg { width: 16px; height: 16px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; transition: transform .45s var(--ease); }
.err-shuffle:hover { border-color: var(--white); color: var(--white); }
.err-shuffle:hover svg { transform: rotate(180deg); }
.err-actions { margin-top: clamp(36px, 6vh, 56px); }

/* =========================================================
   ABERTURA (intro.js)
   ========================================================= */
.intro {
  position: fixed; inset: 0; z-index: 100; background: var(--black);
  display: flex; align-items: center; justify-content: center;
  transition: background-color .6s var(--ease);
}
.intro.is-leaving { background-color: transparent; pointer-events: none; }
.intro svg.logo { width: min(56vmin, 520px); height: min(56vmin, 520px); overflow: visible; transform-origin: 50% 40%; }
.intro-skip {
  position: fixed; right: calc(20px + env(safe-area-inset-right, 0px)); bottom: calc(20px + env(safe-area-inset-bottom, 0px));
  display: inline-flex; gap: 8px;
}
.intro-skip button {
  display: inline-flex; align-items: center; gap: 7px; height: 36px; padding: 0 14px; border-radius: 999px; border: 0;
  background: rgba(255, 255, 255, .1); color: rgba(255, 255, 255, .85);
  font: 500 13px/1 var(--font); cursor: pointer;
  -webkit-backdrop-filter: blur(20px); backdrop-filter: blur(20px);
  opacity: 0; animation: introIn .8s .6s var(--ease) forwards;
  transition: background .25s, color .25s;
}
.intro-skip button:hover { background: rgba(255, 255, 255, .2); color: #fff; }
.intro-skip svg { width: 15px; height: 15px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.intro.is-leaving .intro-skip { opacity: 0; transition: opacity .2s; }
@keyframes introIn { to { opacity: 1; } }
html.has-intro body { overflow: hidden; }
html.has-intro main, html.has-intro .foot { opacity: 0; }
main, .foot { transition: opacity .7s var(--ease); }
html.has-intro .trail, html.has-intro .rail-foot { opacity: 0; transform: translateX(-8px); }
.trail, .rail-foot { transition: opacity .6s .15s var(--ease), transform .6s .15s var(--ease); }

/* =========================================================
   RESPONSIVO
   ========================================================= */
@media (max-width: 1180px) {
  :root { --rail-w: 220px; }
  .ch-hero { grid-template-columns: minmax(150px, 220px) 1fr; }
}

@media (max-width: 899px) {
  html { scroll-padding-top: 72px; }
  main, .foot { margin-left: 0; }
  .ch { padding-top: 88px; padding-bottom: 72px; padding-inline: 20px; }

  .mbar {
    display: flex; align-items: center; gap: 12px;
    position: fixed; inset: 0 0 auto 0; z-index: 50;
    height: 60px; padding: 0 16px; padding-top: env(safe-area-inset-top, 0px);
    background: rgba(0, 0, 0, .86); -webkit-backdrop-filter: blur(16px); backdrop-filter: blur(16px);
    border-bottom: 1px solid var(--rule);
  }
  .mbar-logo { width: 34px; color: var(--white); flex: none; }
  .mbar-step {
    margin-left: auto; display: inline-flex; align-items: center; gap: 10px;
    height: 40px; padding: 0 12px 0 6px; border: 1px solid var(--rule-2); border-radius: 999px;
    background: none; color: var(--white); font: 600 14px/1 var(--font); cursor: pointer;
  }
  .mbar-n { width: 28px; height: 28px; border-radius: 50%; background: var(--white); color: var(--black); display: grid; place-items: center; font-size: 12px; }
  .mbar-step svg { width: 16px; height: 16px; fill: none; stroke: currentColor; stroke-width: 2; transition: transform .3s var(--ease); }
  .mbar-step[aria-expanded="true"] svg { transform: rotate(180deg); }
  .mbar-progress { position: absolute; left: 0; right: 0; bottom: -1px; height: 1px; }
  .mbar-progress span { display: block; height: 100%; background: var(--white); transform-origin: left; transform: scaleX(var(--p, 0)); }

  .rail {
    inset: 60px 0 auto 0; width: auto; height: auto;
    padding: 12px 20px 24px; border-right: 0; border-bottom: 1px solid var(--rule);
    transform: translateY(-12px); opacity: 0; visibility: hidden;
    transition: opacity .3s var(--ease), transform .3s var(--ease), visibility 0s .3s;
  }
  .rail.is-open { transform: none; opacity: 1; visibility: visible; transition: opacity .3s var(--ease), transform .3s var(--ease); }
  .rail-logo { display: none; }
  .trail { margin: 0 0 20px; }
  .trail a { font-size: 17px; padding: 10px 0; }
  .rail-foot { grid-auto-flow: column; justify-content: space-between; align-items: center; }

  .ch-hero {
    padding-top: 96px;
    grid-template-columns: minmax(0, 1fr);
    grid-template-areas: "name" "text" "goal" "actions" "photo";
    grid-template-rows: none;
    min-height: auto;
  }
  .name { font-size: 17.4cqi; }
  .name span + span { padding-left: 0; }
  .portrait { width: min(240px, 60%); margin-top: 40px; }
  .ch-head { grid-template-columns: 1fr; }
  .ch-n { display: none; }
  .ch-sub { grid-column: 1; }
  .skill { grid-template-columns: 1fr; grid-template-areas: "h" "p" "stack" "proof"; }
  .skill h3 { margin-bottom: 10px; }
  .tl { grid-template-columns: 1fr; padding-left: 36px; }
  .tl-y { margin-bottom: 8px; }
  .case-body { grid-template-columns: 1fr; gap: 4px; }
  .case-body dd + dt { margin-top: 14px; }
  .hero-actions .btn { flex: 1 1 auto; }
  .where { width: 100%; margin-left: 0; }
  .page-title { font-size: clamp(40px, 12.4cqi, 80px); }
  .pv-sec { padding: 64px 20px; }
  .pv-sec .prose { padding-left: 0; }
  .pv-status { padding: 18px; }
  .pv-status .btn { width: 100%; }
  .err-tools { gap: 12px; }
  .err-tools .sound span { display: none; }
  .login { grid-template-columns: minmax(0, 1fr); padding-top: 110px; align-content: start; }
  .end-card .btn { width: 100%; }
  .plist a { grid-template-columns: 1fr; gap: 4px; padding: 22px 0; }
  .plist-stack { text-align: left; }
  .lab-index a { grid-template-columns: 1fr auto; }
  .lab-index span:not(.st) { grid-column: 1 / -1; grid-row: 2; }
  .plist-lab .btn { width: 100%; }
  .plist-all { width: 100%; }
  .facts { grid-template-columns: 1fr 1fr; }
  .facts li { padding: 16px; }
  .facts strong { font-size: 34px; }
  .err-phrase { font-size: clamp(34px, 10vw, 52px); }
  .err-bg { font-size: 70vw; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { transition-duration: .01ms !important; animation-duration: .01ms !important; scroll-behavior: auto !important; }
}
.case-link[href^="/"]::after { display: none; }
/* páginas sem barra lateral: aviso de privacidade no canto direito, longe das ações */
@media (min-width: 900px) { .err-page .cdev-consent.cdev-consent { left: auto; right: 24px; } }
.plist-all { display: flex; width: max-content; }
@media (max-width: 899px) { .plist-all { width: 100%; } }

/* =========================================================
   HERO COM FOTO E LUZ (hero.js)
   Cena presa durante a rolagem. Variáveis vindas do JS:
   --lx/--ly luz na foto, --gx/--gy luz na cena, --px/--py paralaxe,
   --out (nome sai), --move (foto escurece e vai para o lado), --show (texto aparece)
   ========================================================= */
.ch-hero.ch-hero { display: block; padding: 0; min-height: 0; border-top: 0; }
.stage { position: relative; height: 220vh; }
.stage-pin {
  position: sticky; top: 0; height: 100vh; height: 100svh; overflow: hidden;
  --out: 0; --move: 0; --show: 0; --fade: 0;
}

/* brilho no fundo, na direção da luz */
.stage-glow {
  position: absolute; inset: 0; pointer-events: none;
  background: radial-gradient(circle 42vmax at var(--gx) var(--gy), rgba(255, 255, 255, .085), rgba(255, 255, 255, .02) 45%, transparent 70%);
  opacity: 0; transition: opacity 1.2s var(--ease);
}
.stage-glow { --gx: 70%; --gy: 30%; }
html.hero-on .stage-glow { opacity: calc((1 - var(--move) * .6) * (1 - var(--fade))); }

/* a foto: desenhada num <canvas> pelo hero.js (luz e borda calculadas ali).
   A <img> é a versão sem script e o texto alternativo; fica invisível quando o canvas assume. */
.cut {
  --px: 0; --py: 0;
  position: absolute; bottom: 0; right: calc(var(--pad) + min(280px, 24vw) + 1vw);
  height: 94%; aspect-ratio: 980 / 1100; margin: 0;
  transform-origin: 50% 100%;
  transform:
    translate3d(calc(var(--px) * -14px - var(--move) * 14vw), calc(var(--py) * -8px), 0)
    scale(calc(1 + var(--move) * .07));
  opacity: calc(1 - var(--fade));
}
.cut-img, .cut-canvas { position: absolute; inset: 0; width: 100%; height: 100%; }
.cut-img { object-fit: contain; object-position: 50% 100%; filter: brightness(.55) contrast(1.1); user-select: none; -webkit-user-drag: none; transition: opacity .6s var(--ease); }
.cut-canvas { opacity: 0; transition: opacity 1.4s var(--ease); }
.cut.is-canvas .cut-img { opacity: 0; }
html.hero-on .cut.is-canvas .cut-canvas { opacity: 1; }
html.has-intro .cut-img { opacity: 0; }
/* a foto some no chão, sem corte seco */
.cut::after { content: ""; position: absolute; left: -10%; right: -10%; bottom: 0; height: 22%; background: linear-gradient(to bottom, transparent, #000 92%); pointer-events: none; }

/* escurece a cena quando o texto entra */
.stage-shade { position: absolute; inset: 0; background: linear-gradient(90deg, rgba(0,0,0,.15) 0%, rgba(0,0,0,.55) 55%, rgba(0,0,0,.8) 100%); opacity: calc(var(--move) * (1 - var(--fade))); pointer-events: none; }

/* nome e textos da primeira tela */
.hero-copy {
  position: absolute; left: var(--pad); right: var(--pad); bottom: clamp(28px, 6vh, 64px);
  opacity: calc(1 - var(--out)); transform: translateY(calc(var(--out) * -60px));
  pointer-events: none;
}
.hero-copy .hi { font-size: 16px; color: var(--text-2); margin-bottom: 10px; }
.ch-hero .name { --px: 0; text-shadow: 0 2px 40px rgba(0, 0, 0, .45);
  font-size: clamp(64px, 13.6cqi, 230px); line-height: .84; letter-spacing: -.03em; font-weight: 800;
  margin: 0 0 0 -.04em; white-space: nowrap;
  color: #fff;
  transform: translate3d(calc(var(--px) * 10px), 0, 0);
}
.ch-hero .name span + span { padding-left: .55em; }
.scroll-cue { margin-top: clamp(20px, 3vh, 32px); color: var(--text-3); font-size: 14px; }

.side {
  position: absolute; top: clamp(28px, 6vh, 64px); right: var(--pad); width: min(280px, 24vw);
  display: grid; gap: 22px;
  opacity: calc(1 - var(--out)); transform: translateY(calc(var(--out) * -30px));
}
.side-list { display: grid; gap: 4px; padding-bottom: 20px; border-bottom: 1px solid var(--rule-2); color: var(--text-2); font-size: 15px; }
.side-link {
  display: flex; align-items: center; justify-content: space-between; gap: 12px;
  padding-bottom: 20px; border-bottom: 1px solid var(--rule-2);
  font-weight: 600; text-decoration: none; font-size: 15px;
}
.side-link span { background: linear-gradient(currentColor, currentColor) 0 100% / 100% 1px no-repeat; padding-bottom: 2px; }
.side-link svg { width: 16px; height: 16px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; transition: transform .35s var(--ease); }
.side-link:hover svg { transform: translateY(4px); }
.side-note { color: var(--text-2); font-size: 15px; line-height: 1.5; }
.stage-pin .side { pointer-events: auto; }
.stage-pin[style*="--out: 1"] .side { pointer-events: none; }

/* texto que acende palavra por palavra */
.hero-intro { will-change: opacity, transform;
  position: absolute; right: var(--pad); top: 50%; width: min(620px, 50%);
  transform: translateY(calc(-50% + (1 - var(--show)) * 40px));
  opacity: var(--show); pointer-events: none;
}
.hero-intro.is-live { pointer-events: auto; }
.hero-intro-tag { display: block; color: var(--text-3); font-size: 15px; margin-bottom: 14px; }
.hero-intro .words { font-size: clamp(24px, 2.6cqi, 40px); line-height: 1.32; font-weight: 600; letter-spacing: -.01em; }
.hero-intro .words + .words { margin-top: .8em; }
.wd { color: #3a3a3a; transition: color .22s linear; }
.wd.on { color: var(--white); }
.hero-intro .words + .words .wd.on { color: var(--text-2); }
.intro-actions { margin-top: 32px; opacity: 0; transform: translateY(10px); transition: opacity .5s var(--ease), transform .5s var(--ease); }
.hero-intro.is-done .intro-actions { opacity: 1; transform: none; }

@media (max-width: 1180px) {
  .side { width: 240px; }
}
@media (max-width: 899px) {
  .stage { height: 190vh; }
  .stage-pin { top: 0; }
  .cut { right: 50%; height: 66%; bottom: 0; transform: translate3d(50%, 0, 0) scale(calc(1 + var(--move) * .05)); }
  .hero-copy { left: 20px; right: 20px; bottom: 24px; }
  .ch-hero .name { font-size: 17.4cqi; }
  .ch-hero .name span + span { padding-left: 0; }
  .side { display: none; }
  .stage-shade { background: rgba(0, 0, 0, .78); }
  .hero-intro { left: 20px; right: 20px; width: auto; top: auto; bottom: 28px; transform: translateY(calc((1 - var(--show)) * 30px)); }
  .hero-intro .words { font-size: clamp(22px, 6.4vw, 30px); }
  .intro-actions .btn { flex: 1 1 auto; }
}
@media (prefers-reduced-motion: reduce) {
  .cut { transform: none !important; }
  .wd { color: var(--white); }
}
