/* ===== Sarando — design tokens ===== */
:root{
  --bg:        #F7F4EF;   /* off-white quente */
  --bg-2:      #EFEAE0;   /* bege técnico */
  --paper:     #FBF9F5;
  --ink:       #1F2227;   /* grafite */
  --ink-2:     #2C3036;
  --muted:     #5A5F66;
  --line:      #D9D2C4;
  --line-2:    #C9C0B0;
  --copper:    #B87544;   /* cobre suave */
  --copper-2:  #D89B6C;   /* cobre claro */
  --copper-ink:#7C4A24;

  --serif: "Source Serif 4", Georgia, serif;
  --sans:  "Inter", system-ui, -apple-system, Segoe UI, Roboto, sans-serif;
  --mono:  "JetBrains Mono", ui-monospace, Menlo, monospace;

  --radius: 14px;
  --maxw: 1180px;
  --nav-tap-height: 118px;

  --ease: cubic-bezier(.2,.7,.2,1);
}

*{box-sizing:border-box}
html,body{margin:0;padding:0}
html{scroll-behavior:smooth}
body{
  font-family: var(--sans);
  color: var(--ink);
  background: var(--bg);
  font-size: 16px;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
img,svg{display:block;max-width:100%}
a{color:inherit;text-decoration:none}
em{font-style: italic; color: var(--copper-ink); font-family: var(--serif); font-weight: 500}

/* ===== Background painel ===== */
.panel-bg{
  position: fixed; inset: 0; z-index: 0; pointer-events: none;
  background:
    radial-gradient(1200px 600px at 80% -10%, #EFE6D6 0%, transparent 60%),
    radial-gradient(900px 500px at -10% 30%, #F1ECE0 0%, transparent 55%),
    var(--bg);
}
.panel-svg{position:absolute; inset:0; width:100%; height:100%; opacity:.85}
.rails path{ vector-effect: non-scaling-stroke }

body.landing-portfolio .panel-svg{
  opacity: .42;
}
body.landing-portfolio .panel-svg .taps,
body.landing-portfolio .panel-svg .nodes{
  display: none;
}
body.landing-portfolio .bus-system{
  opacity: .62;
}
body.landing-portfolio .bus-pulse{
  display: none;
}
body.landing-portfolio .bus-rail{
  background: linear-gradient(180deg, transparent 0%, rgba(31,34,39,.13) 8%, rgba(31,34,39,.13) 92%, transparent 100%);
}
body.landing-portfolio .bus-tap{
  opacity: .78;
}
body.landing-portfolio .bus-tap-pill{
  background: rgba(251,249,245,.76);
}

main, .nav, .footer{ position: relative; z-index: 2 }

/* ===== Sistema de barramentos fixos com tap dinâmico ===== */
.bus-system{
  position: fixed; inset: 0; pointer-events: none; z-index: 1;
}
.bus-rail{
  position: absolute; top: 0; bottom: 0; width: 1px;
  background: linear-gradient(180deg, transparent 0%, rgba(31,34,39,.20) 6%, rgba(31,34,39,.20) 94%, transparent 100%);
}
.bus-rail-left{ left: 6vw }
.bus-rail-right{ right: 6vw }

/* Barra horizontal superior — fecha o quadro do painel pelo topo, atravessando a nav */
.bus-rail-top{ display: none }
.bus-corner{
  position: absolute; width: 7px; height: 7px; border-radius: 50%;
  background: var(--copper); box-shadow: 0 0 0 3px rgba(184,117,68,.15);
  top: 0;
}
.bus-corner-tl{ left: calc(6vw - 3px) }
.bus-corner-tr{ right: calc(6vw - 3px) }

.bus-pulse{
  position: absolute; width: 5px; height: 5px; border-radius: 50%;
  background: var(--copper);
  box-shadow: 0 0 8px rgba(184,117,68,.6);
  opacity: 0;
}
.bus-pulse-left{ left: calc(6vw - 2px) }
.bus-pulse-right{ right: calc(6vw - 2px) }
body.circuit-on .bus-pulse-left{ animation: busDown 12s linear infinite }
body.circuit-on .bus-pulse-right{ animation: busUp 16s linear .8s infinite }
@keyframes busDown{
  0%   { top: -1%;  opacity: 0 }
  6%   { opacity: 1 }
  94%  { opacity: 1 }
  100% { top: 101%; opacity: 0 }
}
@keyframes busUp{
  0%   { bottom: -1%; opacity: 0 }
  6%   { opacity: 1 }
  94%  { opacity: 1 }
  100% { bottom: 101%; opacity: 0 }
}

/* Tap dinâmico — etiqueta que conecta a seção atual ao barramento */
.bus-tap{
  position: absolute; top: 50%; transform: translateY(-50%);
  display: flex; align-items: center; gap: 0;
  transition: top .6s var(--ease);
}
.bus-tap-left{ left: 0; padding-left: 1.5vw }
.bus-tap-right{ right: 0; padding-right: 1.5vw }
.bus-tap-pill{
  font-family: var(--mono); font-size: 10px;
  letter-spacing: .16em; text-transform: uppercase;
  color: var(--copper-ink); background: var(--paper);
  border: 1px solid var(--line-2); border-radius: 6px;
  padding: 8px 11px; min-width: 78px; text-align: center;
  box-shadow: 0 6px 16px -10px rgba(31,34,39,.35);
  transition: opacity .35s var(--ease), transform .35s var(--ease);
}
.bus-tap-pill.swap{ opacity: 0; transform: translateX(-4px) }
.bus-tap-right .bus-tap-pill.swap{ transform: translateX(4px) }
.bus-tap-line{
  width: 38px; height: 1px; background: rgba(31,34,39,.30);
  position: relative;
}
.bus-tap-dot{
  width: 7px; height: 7px; border-radius: 50%;
  background: var(--copper);
  box-shadow: 0 0 0 3px rgba(184,117,68,.15);
}
body.circuit-on .bus-tap-dot{
  animation: circuitNode 2.8s var(--ease) infinite;
}
@keyframes circuitNode{
  0%, 100%{ box-shadow: 0 0 0 3px rgba(184,117,68,.14) }
  50%{ box-shadow: 0 0 0 7px rgba(184,117,68,0) }
}

@media (max-width: 1100px){
  .bus-system{ display: none }
}

/* ===== Nav ===== */
.nav{
  display:flex; align-items:flex-end; justify-content:space-between;
  gap: 24px;
  max-width: none;
  margin: 0;
  padding: 50px calc(6vw + 18px) 22px;
  position: relative;
  z-index: 3;
}
.brand{
  display:flex; align-items:center; gap:10px;
  background: var(--bg);
  padding: 4px 8px 4px 0;
  position: relative;
}
.brand-mark{
  width:36px; height:36px; display:grid; place-items:center;
  border:1px solid var(--line-2); border-radius:8px; background:var(--paper);
  box-shadow: 0 1px 0 #fff inset;
}
.brand-name{ font-family: var(--serif); font-weight: 600; font-size: 19px; letter-spacing: .2px; line-height: 1 }
.brand-sub{
  font-family: var(--mono); font-size: 10.5px; color: var(--muted);
  text-transform: uppercase; letter-spacing: .14em;
  border-left: 1px solid var(--line); padding-left: 10px; margin-left: 2px;
}

/* Nav links como derivações (taps) do barramento horizontal superior */
.nav-links{ display:flex; gap:18px; align-items:center }
.nav-links a{
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: var(--ink-2);
  position: relative;
  padding: 8px 11px;
  min-width: 72px;
  text-align: center;
  border: 1px solid rgba(31,34,39,.14);
  border-radius: 6px;
  background: rgba(251,249,245,.74);
  box-shadow: 0 8px 18px -16px rgba(31,34,39,.35);
  transition: color .25s var(--ease), border-color .25s var(--ease), background .25s var(--ease), transform .25s var(--ease);
}
/* tap vertical descendo do barramento (y=26) até o topo do link (~y=47) */
.nav-links a::before{
  content:""; position:absolute; top: calc(-1 * var(--nav-tap-height)); left: 50%;
  width: 1px; height: var(--nav-tap-height);
  background: rgba(31,34,39,.30);
  transition: background .25s var(--ease);
}
.nav-links a:hover{ color: var(--ink) }
.nav-links a:hover{
  border-color: var(--copper);
  background: rgba(255,255,255,.9);
  transform: translateY(-1px);
}
.nav-links a:hover::before{ background: var(--copper) }
body.circuit-on .nav-links a,
body.circuit-on .nav-cta,
body.circuit-on .nav-admin{
  animation: navEnergize .68s var(--ease);
}
body.circuit-on .nav-links a::before,
body.circuit-on .nav-cta::before,
body.circuit-on .nav-admin::before{
  background: linear-gradient(180deg, rgba(31,34,39,.22), rgba(184,117,68,.70), rgba(31,34,39,.22));
}
body.circuit-on .nav-links a:nth-child(1){ animation-delay: .04s }
body.circuit-on .nav-links a:nth-child(2){ animation-delay: .10s }
body.circuit-on .nav-links a:nth-child(3){ animation-delay: .16s }
body.circuit-on .nav-links a:nth-child(4){ animation-delay: .22s }
body.circuit-on .nav-links a:nth-child(5){ animation-delay: .28s }
body.circuit-on .nav-links a:nth-child(6){ animation-delay: .34s }
body.circuit-on .nav-cta{ animation-delay: .42s }
body.circuit-on .nav-admin{ animation-delay: .50s }
@keyframes navEnergize{
  0%{
    border-color: rgba(31,34,39,.14);
    box-shadow: 0 8px 18px -16px rgba(31,34,39,.35);
    transform: translateY(0);
  }
  38%{
    border-color: rgba(184,117,68,.9);
    box-shadow: 0 0 0 3px rgba(184,117,68,.12), 0 12px 22px -16px rgba(31,34,39,.45);
    transform: translateY(-2px);
  }
  100%{
    border-color: rgba(31,34,39,.14);
    box-shadow: 0 8px 18px -16px rgba(31,34,39,.35);
    transform: translateY(0);
  }
}

.nav-cta,
.nav-admin{
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: .12em;
  text-transform: uppercase;
  padding: 8px 12px;
  border:1px solid var(--ink);
  border-radius: 6px;
  background: rgba(251,249,245,.82);
  position: relative;
  transition: background .25s var(--ease), color .25s var(--ease), border-color .25s var(--ease), transform .25s var(--ease);
}
.nav-admin{
  color: var(--muted);
  border-color: rgba(31,34,39,.18);
}
.nav-cta::before,
.nav-admin::before{
  content:""; position:absolute; top: calc(-1 * var(--nav-tap-height)); left: 50%;
  width: 1px; height: var(--nav-tap-height); background: rgba(31,34,39,.30);
}
.nav-cta:hover,
.nav-admin:hover{
  transform: translateY(-1px);
}
.nav-cta:hover{ background: var(--ink); color: var(--paper) }
.nav-admin:hover{
  border-color: var(--copper);
  color: var(--ink);
  background: rgba(255,255,255,.9);
}

/* ===== Botões ===== */
.btn{
  display:inline-flex; align-items:center; gap:10px;
  font-size: 14px; font-weight: 500;
  padding: 12px 18px; border-radius: 999px;
  border:1px solid transparent; cursor:pointer;
  transition: transform .2s var(--ease), background .25s var(--ease), color .25s var(--ease), border-color .25s var(--ease), box-shadow .25s var(--ease);
}
.btn-primary{
  background: var(--ink); color: var(--paper);
  box-shadow: 0 1px 0 #fff inset, 0 8px 24px -12px rgba(31,34,39,.5);
}
.btn-primary:hover{ background: var(--copper-ink); transform: translateY(-1px) }
.btn-ghost{
  background: transparent; color: var(--ink); border-color: var(--line-2);
}
.btn-ghost:hover{ border-color: var(--ink) }
.btn-lg{ padding: 14px 22px; font-size: 15px }

/* ===== Sections ===== */
section{
  max-width: var(--maxw);
  margin: 0 auto;
  padding: 96px 28px;
}

/* Landing: cada section ocupa a viewport inteira com snap suave */
body.landing{ scroll-snap-type: y proximity }
body.landing main > section{
  min-height: 100vh;
  padding-top: 80px;
  padding-bottom: 80px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  scroll-snap-align: start;
  scroll-snap-stop: always;
}
body.landing .hero{ min-height: calc(100vh - 86px) }
@media (max-height: 720px){
  body.landing main > section{ min-height: auto; padding-top: 72px; padding-bottom: 72px }
  body.landing{ scroll-snap-type: none }
}
.section-head{ margin-bottom: 44px; max-width: 780px }
.section-head.center{ margin-left:auto; margin-right:auto; text-align:center }
.kicker{
  display:inline-block; font-family: var(--mono); font-size: 11px;
  text-transform: uppercase; letter-spacing: .18em; color: var(--copper-ink);
  border:1px solid var(--line-2); border-radius: 999px;
  padding: 4px 10px; background: var(--paper);
  margin-bottom: 14px;
}
h1,h2,h3{ font-family: var(--serif); font-weight: 500; letter-spacing: 0; color: var(--ink) }
h2{ font-size: clamp(26px, 3.2vw, 36px); line-height: 1.15; margin: 0 }
.section-sub{ color: var(--muted); margin-top: 10px }

/* ===== Hero ===== */
.hero{
  position: relative;
  min-height: calc(100vh - 86px);
  padding-top: 0; padding-bottom: 64px;
  display: flex; flex-direction: column; justify-content: center;
}
.hero-meta{
  display:inline-flex; align-items:center; gap:8px;
  font-family: var(--mono); font-size: 11px; color: var(--muted);
  text-transform: uppercase; letter-spacing: .14em;
  background: var(--paper); border:1px solid var(--line);
  padding: 6px 12px; border-radius: 999px; margin-bottom: 22px;
}
.dot{
  width:7px; height:7px; border-radius:50%;
  background: var(--copper);
  box-shadow: 0 0 0 0 rgba(184,117,68,.55);
  animation: pulseDot 2.4s var(--ease) infinite;
}
@keyframes pulseDot{
  0%{ box-shadow: 0 0 0 0 rgba(184,117,68,.55) }
  70%{ box-shadow: 0 0 0 8px rgba(184,117,68,0) }
  100%{ box-shadow: 0 0 0 0 rgba(184,117,68,0) }
}
.hero-title{
  font-size: clamp(30px, 3.6vw, 44px);
  line-height: 1.12;
  margin: 0 0 20px;
  max-width: 24ch;
  font-weight: 500;
  letter-spacing: 0;
}
.hero-sub{
  font-size: 17px; color: var(--muted); max-width: 56ch; margin: 0 0 32px;
  line-height: 1.55;
}
.hero-title,
.hero-sub,
.hero-ctas{
  margin-left: clamp(52px, 5vw, 76px);
}
.hero-ctas{ display:flex; gap: 12px; flex-wrap: wrap }

/* ===== Logo grande viva no hero ===== */
.hero-mark{
  position: absolute;
  right: calc(6vw + 24px);
  top: 50%;
  transform: translateY(-50%);
  width: clamp(260px, 28vw, 380px);
  pointer-events: none;
  opacity: .92;
}
.hero-mark svg{ overflow: visible; width: 100%; height: auto }
.source-runner{
  position: fixed;
  left: 0;
  top: 0;
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--copper);
  box-shadow: 0 0 10px rgba(184,117,68,.7);
  opacity: 0;
  pointer-events: none;
  z-index: 3;
}
/* desenho automático do traço S */
.s-trace{
  stroke-dasharray: 880;
  stroke-dashoffset: 880;
  animation: drawS 1.8s var(--ease) .2s forwards;
}
@keyframes drawS{
  to{ stroke-dashoffset: 0 }
}

/* terminais cobre — pulsando */
.s-terminal{
  filter: drop-shadow(0 0 6px rgba(184,117,68,.55));
  transform-origin: center;
  transform-box: fill-box;
  transform: scale(.35);
  opacity: 0;
}
body.s-terminal-a-on .s-terminal-a,
body.s-terminal-b-on .s-terminal-b{
  animation: terminalReveal .42s var(--ease) forwards;
}
body.circuit-on .s-terminal-a,
body.circuit-on .s-terminal-b{
  opacity: 1;
  transform: scale(1);
  animation: terminalPulse 2.6s var(--ease) infinite;
}
body.circuit-on .s-terminal-b{ animation-delay: .32s }
@keyframes terminalReveal{
  0%{ opacity: 0; transform: scale(.35) }
  70%{ opacity: 1; transform: scale(1.22) }
  100%{ opacity: 1; transform: scale(1) }
}
@keyframes terminalPulse{
  0%, 100%{ opacity: 1; transform: scale(1) }
  50%{ opacity: .64; transform: scale(1.14) }
}

/* wordmark abaixo do S — aparece após o traço terminar */
.hero-mark-word{
  display: flex; flex-direction: column; align-items: center;
  margin-top: 18px; gap: 6px;
  opacity: 0;
  animation: wordReveal 1.2s var(--ease) 2.5s forwards;
}
.word-name{
  font-family: var(--serif); font-weight: 600;
  font-size: clamp(34px, 4vw, 48px);
  letter-spacing: .01em; color: var(--ink);
  line-height: 1;
  position: relative;
  opacity: 0;
  animation: wordSlide 1s var(--ease) 2.6s forwards;
}
.word-tag{
  font-family: var(--mono); font-size: 11px;
  letter-spacing: .28em; text-transform: uppercase;
  color: var(--muted);
  opacity: 0;
  animation: wordSlide 1s var(--ease) 3s forwards;
}
@keyframes wordReveal{ to{ opacity: 1 } }
@keyframes wordSlide{
  from{ opacity: 0; transform: translateY(8px) }
  to{ opacity: 1; transform: none }
}

/* esconder no mobile pra não competir com o texto */
@media (max-width: 1100px){
  .hero-mark{ display: none }
}
@media (max-height: 720px){
  .hero-mark{ width: 220px; right: calc(6vw + 12px) }
  .word-name{ font-size: 28px }
}
.hero-tags{
  list-style:none; padding:0; margin: 36px 0 0;
  display:flex; flex-wrap: wrap; gap: 8px;
  border-top: 1px dashed var(--line-2); padding-top: 18px;
}
.hero-tags li{
  font-family: var(--mono); font-size: 11px; color: var(--ink-2);
  text-transform: uppercase; letter-spacing: .12em;
  padding: 6px 10px; border:1px solid var(--line); border-radius: 6px;
  background: var(--paper);
}

/* ===== Serviços (módulos no barramento) ===== */
.services{ position: relative }
.bus{
  height: 1px; background: linear-gradient(90deg, transparent, var(--line-2) 8%, var(--line-2) 92%, transparent);
  margin: 0 0 -1px;
  position: relative;
}
.bus::before, .bus::after{
  content:""; position:absolute; top:-3px; width:7px; height:7px; border-radius:50%;
  background: var(--copper);
}
.bus::before{ left: 4% }
.bus::after{ right: 4% }

.modules{
  display:grid; grid-template-columns: repeat(5, 1fr);
  gap: 0;
  border:1px solid var(--line);
  border-radius: var(--radius);
  background: var(--paper);
  overflow: hidden;
}
.mod{
  padding: 28px 22px 26px;
  border-right: 1px solid var(--line);
  position: relative;
  transition: background .3s var(--ease);
}
.mod:last-child{ border-right: 0 }
.mod::before{
  content:""; position:absolute; top:0; left: 50%; width: 1px; height: 18px;
  background: var(--line-2);
}
.mod::after{
  content:""; position:absolute; top:18px; left: calc(50% - 3px);
  width:6px; height:6px; border-radius:50%;
  background: var(--bg-2); border:1px solid var(--line-2);
  transition: background .3s var(--ease), border-color .3s var(--ease), box-shadow .3s var(--ease);
}
.mod:hover{ background: #FFFDF8 }
.mod:hover::after{
  background: var(--copper); border-color: var(--copper);
  box-shadow: 0 0 0 4px rgba(184,117,68,.12);
}
.mod-id{
  font-family: var(--mono); font-size: 11px; color: var(--copper-ink);
  letter-spacing: .14em; margin: 12px 0 14px;
}
.mod h3{ font-size: 18px; margin: 0 0 8px; line-height: 1.25 }
.mod p{ font-size: 14px; color: var(--muted); margin: 0; line-height: 1.55 }

/* ===== Sobre ===== */
.about-grid{ display:grid; grid-template-columns: 1.3fr 1fr; gap: 28px; align-items: stretch }
.about-card{
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 28px;
}
.about-card .lead{
  font-family: var(--serif); font-size: 20px; line-height: 1.45;
  color: var(--ink); margin: 0 0 14px; font-weight: 500;
}
.about-card p{ color: var(--muted); margin: 0 0 12px }
.bullets{ list-style:none; padding:0; margin: 14px 0 0; display:grid; gap:6px }
.bullets li{ display:flex; gap: 10px; color: var(--ink-2); font-size: 14.5px }
.bullets li span{ color: var(--copper) }

/* ===== Ficha técnica (estilo carimbo de prancha) ===== */
.ficha{
  padding: 0;
  background: var(--paper);
  border: 1px solid var(--line);
  position: relative;
}
.ficha::before, .ficha::after{
  content:""; position: absolute; width: 6px; height: 6px;
  border: 1px solid var(--line-2); background: var(--bg);
}
.ficha::before{ top: -3px; left: -3px }
.ficha::after{ bottom: -3px; right: -3px }

.ficha-head{
  display: flex; align-items: center; justify-content: space-between;
  padding: 14px 22px;
  border-bottom: 1px solid var(--line);
  background: linear-gradient(180deg, #FBF9F5 0%, #F4EFE5 100%);
}
.ficha-title{
  font-family: var(--mono); font-size: 11px;
  letter-spacing: .22em; text-transform: uppercase;
  color: var(--ink);
}
.ficha-rev{
  font-family: var(--mono); font-size: 10px;
  letter-spacing: .2em; color: var(--muted);
  border: 1px solid var(--line-2); border-radius: 3px;
  padding: 3px 8px;
}

.ficha-body{ margin: 0; padding: 4px 0 }
.ficha-row{
  display: grid;
  grid-template-columns: 130px 1fr;
  gap: 18px;
  padding: 12px 22px;
  border-bottom: 1px dashed var(--line);
  align-items: baseline;
}
.ficha-row:last-child{ border-bottom: 0 }
.ficha-row dt{
  font-family: var(--mono); font-size: 10.5px;
  letter-spacing: .14em; text-transform: uppercase;
  color: var(--muted);
  margin: 0;
}
.ficha-row dd{
  margin: 0; color: var(--ink);
  font-size: 14px; line-height: 1.5;
}
.ficha-row dd em{
  font-style: italic; color: var(--copper-ink);
  font-family: var(--serif); font-weight: 500;
}

.ficha-row-status dd{
  display: inline-flex; align-items: center; gap: 8px;
  font-family: var(--mono); font-size: 12px;
  letter-spacing: .08em; color: var(--copper-ink);
}
.ficha-dot{
  width: 7px; height: 7px; border-radius: 50%;
  background: var(--copper);
  box-shadow: 0 0 0 0 rgba(184,117,68,.55);
  animation: pulseDot 2.4s var(--ease) infinite;
}

/* ===== Experiência ===== */
.exp-list{
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}
.exp-row{
  display:grid; grid-template-columns: 280px 1fr;
  gap: 32px; padding: 22px 4px;
  border-bottom: 1px solid var(--line);
  transition: padding-left .35s var(--ease);
}
.exp-row:last-child{ border-bottom: 0 }
.exp-row:hover{ padding-left: 14px }
.exp-tag{
  font-family: var(--serif); font-size: 18px; font-weight: 500; color: var(--ink);
  position: relative; padding-left: 18px;
}
.exp-tag::before{
  content:""; position:absolute; left: 0; top: 12px; width: 10px; height: 1px; background: var(--copper);
}
.exp-row p{ color: var(--muted); margin: 0; font-size: 15px; max-width: 60ch }

/* ===== Page hero (portfolio) ===== */
.page-hero{ padding-top: 56px; padding-bottom: 40px }
.back{
  display:inline-block; font-family: var(--mono); font-size: 12px;
  color: var(--muted); margin-bottom: 18px;
  letter-spacing: .08em; transition: color .2s var(--ease);
}
.back:hover{ color: var(--copper-ink) }
.page-title{
  font-family: var(--serif); font-weight: 500;
  font-size: clamp(30px, 4vw, 44px); line-height: 1.1;
  margin: 12px 0 14px; max-width: 22ch;
}
.page-sub{ color: var(--muted); max-width: 64ch; margin: 0; font-size: 16px }
.page-hero .kicker{ margin-bottom: 0 }

/* ===== Portfólio ===== */
.portfolio{ padding-top: 32px }
.works{ display:grid; gap: 28px }
.work{
  display:grid; grid-template-columns: 1.15fr 1fr;
  gap: 28px; align-items: stretch;
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
  transition: border-color .3s var(--ease), box-shadow .3s var(--ease), transform .3s var(--ease);
}
.work:hover{
  border-color: #C8B79A;
  box-shadow: 0 24px 60px -36px rgba(31,34,39,.35);
  transform: translateY(-2px);
}
.work.reverse{ grid-template-columns: 1fr 1.15fr }
.work.reverse .work-art{ order: 2; border-left: 1px solid var(--line); border-right: 0 }
.work-art{
  position: relative;
  background:
    linear-gradient(180deg, #FBF9F5 0%, #F4EFE5 100%);
  border-right: 1px solid var(--line);
  display:grid; place-items: center;
  padding: 18px;
  min-height: 280px;
}
.work-art::before{
  content:""; position:absolute; inset: 14px;
  border:1px dashed var(--line-2); border-radius: 8px;
  pointer-events: none;
}
.work-art svg{ width: 100%; height: auto; max-height: 320px; position: relative; z-index: 1 }
.work-art.photo{
  padding: 0;
  min-height: 320px;
  overflow: hidden;
  background: var(--bg-2);
}
.work-art.photo::before{ display: none }
.work-art.photo img{
  width: 100%;
  height: 100%;
  min-height: 320px;
  object-fit: cover;
  filter: saturate(.9) contrast(.96);
  transform: scale(1.01);
  transition: transform .45s var(--ease), filter .45s var(--ease);
}
.work:hover .work-art.photo img{
  transform: scale(1.04);
  filter: saturate(1) contrast(1);
}
.work-body{ padding: 30px 30px 32px; display: flex; flex-direction: column; justify-content: center }
.work-id{
  font-family: var(--mono); font-size: 11px; letter-spacing: .18em;
  text-transform: uppercase; color: var(--copper-ink);
  margin-bottom: 10px;
}
.work-body h3{ font-size: 22px; line-height: 1.2; margin: 0 0 10px }
.work-body p{ color: var(--muted); margin: 0 0 16px; font-size: 15px; line-height: 1.6 }
.work-tags{ list-style:none; padding:0; margin:0; display:flex; flex-wrap:wrap; gap: 6px }
.work-tags li{
  font-family: var(--mono); font-size: 10.5px; color: var(--ink-2);
  text-transform: uppercase; letter-spacing: .12em;
  padding: 5px 9px; border:1px solid var(--line); border-radius: 6px; background: var(--bg);
}

@media (max-width: 820px){
  .work, .work.reverse{ grid-template-columns: 1fr }
  .work.reverse .work-art{ order: 0; border-left: 0; border-bottom: 1px solid var(--line) }
  .work-art{ border-right: 0; border-bottom: 1px solid var(--line) }
}

.portfolio-cta{
  text-align: center;
}
.portfolio-cta .section-head{
  margin-bottom: 34px;
}
.portfolio-cta-actions{
  display: inline-grid;
  grid-template-columns: minmax(260px, 1.15fr) minmax(210px, .85fr);
  gap: 12px;
  align-items: center;
  justify-content: center;
  max-width: 760px;
  width: min(100%, 760px);
}
.portfolio-cta-actions .btn{
  min-height: 58px;
  justify-content: space-between;
  border-radius: 999px;
}

/* ===== Contato ===== */
.contact{ text-align: left; position: relative }
.contact-corner{
  position: absolute;
  top: 92px;
  right: 28px;
  display: flex;
  gap: 10px;
  align-items: center;
}
.contact-corner a{
  font-family: var(--mono);
  font-size: 10.5px;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--muted);
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 7px 10px;
  background: rgba(251,249,245,.78);
  transition: color .2s var(--ease), border-color .2s var(--ease), transform .2s var(--ease);
}
.contact-corner a:hover{
  color: var(--ink);
  border-color: var(--copper);
  transform: translateY(-1px);
}
.contact-head{
  max-width: 920px;
  margin-left: auto;
  margin-right: auto;
  text-align: center;
}
.contact-head h2{
  max-width: 18ch;
  margin-left: auto;
  margin-right: auto;
}
.contact-head .section-sub{
  max-width: 74ch;
  margin-left: auto;
  margin-right: auto;
}
.contact-panel{
  display: grid;
  gap: 18px;
  max-width: 1040px;
  margin: 0 auto;
  padding: 22px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: rgba(251,249,245,.68);
  box-shadow: 0 18px 50px -44px rgba(31,34,39,.45);
}
.contact-grid{
  display:grid; grid-template-columns: repeat(3, 1fr); gap: 14px;
  margin: 0;
}
.ccard{
  display:grid; gap: 8px; text-align: center;
  padding: 18px 20px;
  background: rgba(251,249,245,.86); border: 1px solid var(--line); border-radius: 10px;
  transition: transform .25s var(--ease), border-color .25s var(--ease), box-shadow .25s var(--ease);
}
.ccard:hover{
  transform: translateY(-2px);
  border-color: var(--copper);
  box-shadow: 0 12px 32px -20px rgba(184,117,68,.45);
}
.ccard-k{ font-family: var(--mono); font-size: 11px; letter-spacing: .14em;
  text-transform: uppercase; color: var(--muted) }
.ccard-v{ font-size: 15px; font-weight: 600; color: var(--ink) }
.contact-actions{
  display: grid;
  grid-template-columns: 1.1fr 1fr 1fr;
  gap: 12px;
  margin: 0;
}
.contact-actions .btn{
  width: 100%;
  justify-content: space-between;
  min-height: 58px;
  border-radius: 10px;
}

/* ===== Blog ===== */
body.landing-blog{
  scroll-snap-type: none;
}
body.landing-blog main > section{
  min-height: auto;
  justify-content: flex-start;
  scroll-snap-align: none;
  scroll-snap-stop: normal;
}
body.landing-blog .page-hero{
  padding-top: 34px;
  padding-bottom: 14px;
}
.blog-heading{
  display: grid;
  grid-template-columns: auto 1fr;
  column-gap: 16px;
  row-gap: 6px;
  align-items: center;
  max-width: 920px;
}
.blog-heading .kicker{
  margin: 0;
}
.blog-heading h1{
  margin: 0;
  color: var(--ink);
  font-family: var(--mono);
  font-size: 13px;
  font-weight: 500;
  letter-spacing: .16em;
  line-height: 1.3;
  text-transform: uppercase;
}
.blog-heading p{
  grid-column: 2;
  max-width: 66ch;
  margin: 0;
  color: var(--muted);
  font-size: 15px;
  line-height: 1.5;
}
.blog-list{
  display:grid;
  gap:18px;
  max-width: 880px;
}
body.landing-blog .blog-list{
  padding-top: 8px;
  padding-bottom: 96px;
}
.blog-card{
  position: relative;
  background: rgba(251,249,245,.88);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 26px;
  overflow: hidden;
  transition: transform .25s var(--ease), border-color .25s var(--ease), box-shadow .25s var(--ease);
}
.blog-card::before{
  content:"";
  position:absolute;
  left:0;
  top:0;
  width:4px;
  height:100%;
  background: var(--copper);
  opacity:.65;
}
.blog-card:hover{
  transform: translateY(-2px);
  border-color: var(--copper);
  box-shadow: 0 18px 44px -32px rgba(31,34,39,.35);
}
.blog-card h2{
  margin: 0 0 10px;
  font-size: clamp(24px, 3vw, 34px);
  line-height: 1.12;
}
.blog-card p{
  color: var(--muted);
  margin: 0 0 18px;
}
.blog-read{
  color: var(--copper-ink);
  font-weight: 600;
}
.blog-post{
  max-width: 820px;
  margin: 0 auto;
  padding: 56px 28px 96px;
}
.blog-body{
  margin-top: 34px;
  padding: 30px;
  background: rgba(251,249,245,.9);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  color: var(--ink-2);
  font-size: 18px;
  line-height: 1.75;
}
.blog-body p{
  margin: 0 0 20px;
}

/* ===== Request forms ===== */
.form-page{
  max-width: 920px;
  margin: 0 auto;
  padding: 56px 28px 96px;
}
.request-form{
  margin-top: 34px;
  padding: 26px;
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: var(--radius);
}
.form-grid{
  display:grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 18px;
  margin-bottom: 22px;
}
.form-field{
  display:grid;
  gap: 8px;
  color: var(--ink-2);
  font-size: 14px;
}
.form-field.span-2{ grid-column: 1 / -1 }
.form-field span{
  font-weight: 600;
}
.form-field input,
.form-field select,
.form-field textarea{
  width: 100%;
  border: 1px solid var(--line-2);
  border-radius: 10px;
  background: #FFFDF8;
  color: var(--ink);
  font: inherit;
  padding: 12px 13px;
}
.form-field input[type="file"]{
  padding: 10px;
}
.form-field input:focus,
.form-field select:focus,
.form-field textarea:focus{
  outline: 3px solid rgba(184,117,68,.16);
  border-color: var(--copper);
}
.form-field small{
  color: var(--muted);
}
.errorlist{
  margin: 0;
  padding-left: 18px;
  color: #9B2C2C;
}
.success-page .btn{
  margin-right: 10px;
  margin-top: 16px;
}

/* ===== Footer ===== */
.footer{
  max-width: var(--maxw); margin: 0 auto;
  display:flex; justify-content: space-between; gap: 16px;
  padding: 28px; border-top: 1px solid var(--line);
  font-size: 13px; color: var(--muted);
}

/* ===== Reveal on scroll ===== */
.reveal{
  opacity: 0; transform: translateY(28px);
  transition: opacity .9s var(--ease), transform .9s var(--ease);
  transition-delay: var(--rd, 0ms);
}
.reveal.in{ opacity: 1; transform: none }

/* Stagger nos filhos */
.reveal-stagger > *{
  opacity: 0; transform: translateY(20px);
  transition: opacity .8s var(--ease), transform .8s var(--ease);
}
.reveal-stagger.in > *{ opacity: 1; transform: none }
.reveal-stagger.in > *:nth-child(1){ transition-delay: .05s }
.reveal-stagger.in > *:nth-child(2){ transition-delay: .12s }
.reveal-stagger.in > *:nth-child(3){ transition-delay: .19s }
.reveal-stagger.in > *:nth-child(4){ transition-delay: .26s }
.reveal-stagger.in > *:nth-child(5){ transition-delay: .33s }
.reveal-stagger.in > *:nth-child(6){ transition-delay: .40s }

/* Indicador de scroll no hero */
.scroll-cue{
  position: absolute; bottom: 28px; left: 50%; transform: translateX(-50%);
  font-family: var(--mono); font-size: 10px; letter-spacing: .2em;
  color: var(--muted); text-transform: uppercase;
  display: flex; flex-direction: column; align-items: center; gap: 8px;
  opacity: .7;
}
.scroll-cue .line{
  width: 1px; height: 28px; background: var(--line-2); position: relative; overflow: hidden;
}
.scroll-cue .line::after{
  content:""; position: absolute; left:0; right:0; top:-50%;
  height: 50%; background: var(--copper);
  animation: scrollCue 2.2s var(--ease) infinite;
  animation-play-state: paused;
  opacity: 0;
}
body.circuit-on .scroll-cue .line::after{
  animation-play-state: running;
  opacity: 1;
}
@keyframes scrollCue{
  0%{ top: -50% } 100%{ top: 100% }
}
body.landing .hero{ position: relative }

/* ===== Responsive ===== */
@media (max-width: 960px){
  html, body{ overflow-x: hidden }
  .nav{
    align-items: center;
    gap: 12px;
    padding: 18px 22px;
  }
  .nav-links{ display:none }
  .nav-cta::before,
  .nav-admin::before{ display: none }
  .nav-cta,
  .nav-admin{
    flex: 0 0 auto;
    font-size: 10px;
    padding: 8px 10px;
  }
  body.landing main > section{
    min-height: auto;
    scroll-snap-align: none;
  }
  .modules{ grid-template-columns: repeat(2, 1fr) }
  .mod{ border-right: 1px solid var(--line); border-bottom: 1px solid var(--line) }
  .mod:nth-child(2n){ border-right: 0 }
  .about-grid{ grid-template-columns: 1fr }
  .ficha{ align-self: stretch }
  .exp-row{ grid-template-columns: 1fr; gap: 8px }
  .contact-corner{
    position: static;
    justify-content: center;
    margin: 0 0 24px;
  }
  .contact-panel{ grid-template-columns: 1fr }
  .contact-grid{ grid-template-columns: 1fr }
  .contact-actions{ grid-template-columns: 1fr; max-width: none }
  .portfolio-cta-actions{ grid-template-columns: 1fr }
  .portfolio-cta-actions .btn,
  .contact-actions .btn,
  .hero-ctas .btn{
    width: 100%;
    justify-content: space-between;
  }
  .form-grid{ grid-template-columns: 1fr }
  .form-field.span-2{ grid-column: auto }
  section{ padding: 72px 22px }
  .hero-title,
  .hero-sub,
  .hero-ctas{ margin-left: 0 }
}
@media (max-width: 520px){
  .nav{ padding: 14px 18px }
  .brand{ min-width: 0 }
  .brand-name{ font-size: 18px }
  .brand-sub{ display:none }
  .nav-admin{ display: none }
  .nav-cta{
    letter-spacing: .08em;
    padding: 8px 9px;
  }
  .modules{ grid-template-columns: 1fr }
  .mod{ border-right: 0 }
  .hero{
    justify-content: flex-start;
    padding-top: 52px;
  }
  .hero-title,
  .page-title{
    font-size: clamp(28px, 9vw, 34px);
  }
  .hero-sub,
  .page-sub,
  .blog-heading p,
  .section-sub{
    font-size: 15px;
  }
  .blog-heading{
    grid-template-columns: 1fr;
  }
  .blog-heading p{
    grid-column: auto;
  }
  .section-head{ margin-bottom: 30px }
  .work-body{ padding: 24px 22px 26px }
  .work-art.photo,
  .work-art.photo img{
    min-height: 250px;
  }
  .contact-panel{
    padding: 16px;
    gap: 14px;
  }
  .contact-head h2{ max-width: 11ch }
  .footer{
    flex-direction: column;
    align-items: flex-start;
    gap: 8px;
  }
}

@media (prefers-reduced-motion: reduce){
  *{ animation: none !important; transition: none !important }
}
