:root {
  --bg:#040410;
  --card:#f4f3ef;
  --ink:#111113;
  --muted:#9a9a9e;
  --muted-card:#77777c;
  --line:#242427;
  --accent:#5e7bdf;
  --white:#ffffff;
}

html.light-theme {
  --bg:#f1f1f1;
  --card:#ffffff;
  --ink:#111113;
  --muted:#6b6b70;
  --muted-card:#77777c;
  --line:#e3e2dd;
  --accent:#5e7bdf;
  --white:#111113;
}

body, header, .card, a, .icon-btn, .badge, .stack-icon svg {
  transition:background-color .4s ease, color .4s ease, border-color .4s ease;
}

html.light-theme .marquee-item img {
  filter:brightness(0) saturate(100%) invert(46%) sepia(53%) saturate(1749%) hue-rotate(202deg) brightness(93%) contrast(93%);
  opacity:.85;
}

html.light-theme .marquee-item img:hover {
  opacity:1;
}

* {
  box-sizing:border-box;
  margin:0;
  padding:0;
}

html {
  scroll-behavior:smooth;
}

#trabalhos, #contato {
  scroll-margin-top:70px;
}

body {
  background:var(--bg);
  color:var(--white);
  font-family:'Inter',-apple-system,BlinkMacSystemFont,"Segoe UI",sans-serif;
  font-weight:400;
  -webkit-font-smoothing:antialiased;
  overflow-x:hidden;
}

a {
  color:inherit;
  text-decoration:none;
}

ul {
  list-style:none;
}

img {
  max-width:100%;
  display:block;
}

.display {
  font-family:'Inter',sans-serif;
  font-weight:700;
  text-transform:uppercase;
}

.wrap {
  max-width:1360px;
  margin:0 auto;
  padding:0 40px;
}

/* ===== HEADER ===== */
  header {
  position:sticky;
  top:0;
  z-index:50;
  background:var(--bg);
  backdrop-filter:blur(10px);
  border-bottom:1px solid var(--line);
}

.nav-row {
  display:flex;
  align-items:center;
  justify-content:space-between;
  padding:18px 32px;
  max-width:1360px;
  margin:0 auto;
}

.nav-links {
  display:flex;
  gap:32px;
  font-size:12.5px;
  letter-spacing:1.2px;
  font-weight:700;
  position:relative;
}

.nav-links a {
  color:var(--muted);
  transition:color .2s ease;
  position:relative;
}

.nav-links a.active {
  color:var(--accent);
}

.nav-links a:hover {
  color:var(--accent);
}

.nav-indicator {
  position:absolute;
  bottom:-8px;
  height:2px;
  background:var(--accent);
  transition:left .35s cubic-bezier(.65,0,.35,1), width .35s cubic-bezier(.65,0,.35,1);
}

.logo-x-img {
  height:24px;
  width:auto;
  opacity:.95;
  transition:opacity .2s ease;
}

.logo-x:hover .logo-x-img {
  opacity:1;
}

.nav-right {
  display:flex;
  align-items:center;
  gap:16px;
  font-size:13px;
  color:var(--muted);
}

.nav-right .lang {
}

.lang {
  display:flex;
  align-items:center;
  gap:5px;
  border:1px solid var(--line);
  border-radius:20px;
  padding:6px 12px;
}

.lang-btn {
  background:none;
  border:none;
  font:inherit;
  font-weight:700;
  letter-spacing:.5px;
  font-size:12px;
  color:var(--muted);
  cursor:pointer;
  padding:0;
  transition:color .2s ease;
}

.lang-btn.active {
  color:var(--accent);
}

.lang-btn:hover {
  color:var(--accent);
}

.lang-sep {
  color:var(--line);
  font-size:11px;
}

.icon-btn {
  width:32px;
  height:32px;
  border-radius:50%;
  border:1px solid var(--line);
  display:flex;
  align-items:center;
  justify-content:center;
  cursor:pointer;
  transition:border-color .2s ease, transform .2s ease, color .2s ease;
  font-size:13px;
  color:var(--accent);
}

.icon-btn svg {
  width:15px;
  height:15px;
}

.icon-btn:hover {
  border-color:var(--accent);
  transform:translateY(-1px);
  color:var(--accent);
}

/* ===== MOBILE MENU ===== */
  .hamburger {
  display:none;
  flex-direction:column;
  justify-content:center;
  gap:5px;
  width:32px;
  height:32px;
  background:none;
  border:none;
  cursor:pointer;
  padding:0;
}

.hamburger span {
  display:block;
  width:100%;
  height:2px;
  background:#9a9a9e;
  transition:transform .3s ease, opacity .3s ease, background .2s ease;
}

.hamburger.open span {
  background:#9a9a9e;
}

.hamburger.open span:nth-child(1) {
  transform:translateY(7px) rotate(45deg);
}

.hamburger.open span:nth-child(2) {
  opacity:0;
}

.hamburger.open span:nth-child(3) {
  transform:translateY(-7px) rotate(-45deg);
}

.mobile-menu {
  display:none;
  flex-direction:column;
  max-height:0;
  overflow:hidden;
  transition:max-height .35s ease;
  background:var(--bg);
  border-bottom:1px solid var(--line);
}

.mobile-menu.open {
  max-height:260px;
}

.mobile-menu a {
  padding:16px 32px;
  color:var(--muted);
  font-size:14px;
  font-weight:700;
  letter-spacing:1px;
  border-top:1px solid var(--line);
  transition:color .2s ease, background .2s ease;
}

.mobile-menu a:hover, .mobile-menu a.active {
  color:var(--accent);
  background:rgba(94,123,223,.08);
}

/* ===== SOBRE (PASSO junto com os cards) ===== */
  .hero {
  padding:64px 0 100px;
}

.hero-grid {
  display:grid;
  grid-template-columns:230px 1fr;
  gap:40px;
  align-items:start;
}

.hero-left {
  display:flex;
  flex-direction:column;
  gap:26px;
}

.eyebrow {
  font-size:15px;
  line-height:1.55;
  font-weight:300;
  color:var(--accent);
}

.passo-mark {
  position:relative;
  cursor:default;
}

.passo-mark-inner {
  width:100%;
  height:auto;
  max-width:230px;
}

.passo-mark:hover .passo-mark-inner {
  animation:glitch-img .4s steps(2,end) infinite;
}

@keyframes glitch-img {
  0% {
    filter:none;
    transform:translate(0,0);
  }
  25% {
    filter:drop-shadow(2px 0 0 #3355ff) drop-shadow(-2px 0 0 #ff3355);
    transform:translate(-2px,1px);
  }
  50% {
    filter:drop-shadow(-2px 0 0 #3355ff) drop-shadow(2px 0 0 #ff3355);
    transform:translate(2px,-1px);
  }
  75% {
    filter:drop-shadow(1px 0 0 #3355ff);
    transform:translate(-1px,0);
  }
  100% {
    filter:none;
    transform:translate(0,0);
  }
}

.hero-right {
  display:grid;
  grid-template-columns:1fr 1fr;
  grid-template-rows:auto auto;
  gap:18px;
}

.card {
  background:var(--card);
  color:var(--ink);
  border-radius:4px;
  padding:24px;
  transition:transform .35s cubic-bezier(.22,.68,0,1), box-shadow .35s ease;
}

.card:hover {
  transform:translateY(-4px);
  box-shadow:0 16px 30px rgba(0,0,0,.35);
}

.card-profile {
  display:flex;
  flex-direction:column;
  gap:14px;
}

.profile-head {
  display:flex;
  align-items:center;
  gap:12px;
}

.avatar-sm {
  width:42px;
  height:42px;
  border-radius:50%;
  object-fit:cover;
  flex-shrink:0;
  transition:transform .3s ease;
}

.card-profile:hover .avatar-sm {
  transform:scale(1.08) rotate(-4deg);
}

.profile-head .name {
  font-size:15px;
  font-weight:700;
}

.profile-head .role {
  font-size:11.5px;
  color:var(--muted-card);
  font-weight:300;
}

.card-profile p {
  font-size:13px;
  line-height:1.6;
  color:#3a3a3d;
  font-weight:400;
}

.card-tools {
  display:flex;
  flex-direction:column;
  gap:12px;
}

.card-tools h3 {
  font-size:15px;
  font-weight:700;
}

.card-tools p {
  font-size:13px;
  line-height:1.6;
  color:#3a3a3d;
  font-weight:400;
}

.card-photo {
  padding:0;
  overflow:hidden;
  min-height:210px;
}

.card-photo img {
  width:100%;
  height:100%;
  object-fit:cover;
  min-height:210px;
  display:block;
  transition:transform .5s ease;
}

.card-photo:hover img {
  transform:scale(1.05);
}

.card-stack {
  padding:24px;
  display:flex;
  flex-direction:column;
  gap:10px;
  min-height:320px;
}

.stack-heading {
  font-size:12px;
  font-weight:800;
  color:var(--ink);
  letter-spacing:.3px;
}

.stack-list {
  font-size:11.5px;
  color:#6a6a6d;
  line-height:1.5;
  font-weight:400;
}

.stack-icons-area {
  position:relative;
  flex:1;
  overflow:hidden;
  cursor:grab;
  display:flex;
  flex-wrap:wrap;
  align-items:center;
  align-content:center;
  justify-content:center;
  gap:0;
  min-height:170px;
}

.stack-icons-area:active {
  cursor:grabbing;
}

.stack-icon {
  position:static;
  top:0;
  left:0;
  width:70px;
  height:70px;
  display:flex;
  flex-direction:column;
  align-items:center;
  justify-content:center;
  gap:5px;
  transition:filter .25s ease;
  will-change:transform;
  touch-action:none;
}

.stack-icon svg {
  width:58px;
  height:58px;
  flex-shrink:0;
  pointer-events:none;
  filter:drop-shadow(0 2px 4px rgba(0,0,0,.15));
}

.tool-name {
  font-size:10.5px;
  font-weight:700;
  color:var(--ink);
  letter-spacing:.2px;
  white-space:nowrap;
  pointer-events:none;
}

.stack-icons-area.physics-on {
  padding:0;
}

.stack-icons-area.physics-on .stack-icon {
  position:absolute;
  top:0;
  left:0;
  touch-action:none;      /* o dedo arrasta o ícone; fora dele a página rola normal */
  -webkit-user-select:none;
  user-select:none;
  -webkit-touch-callout:none;
}

.stack-icon:hover {
  filter:brightness(1.05);
}

/* ===== TRABALHOS (TRABALHO junto com os cards) ===== */
  .work-section {
  padding:90px 0 80px;
}

.work-grid {
  display:grid;
  grid-template-columns:230px 1fr;
  gap:40px;
  align-items:start;
}

.work-left {
  display:flex;
  flex-direction:column;
  gap:20px;
}

.work-title-img {
  width:100%;
  max-width:220px;
  height:auto;
}

.work-title-img:hover {
  animation:glitch-img .4s steps(2,end) infinite;
}

.history-card {
  background:var(--card);
  color:var(--ink);
  border-radius:4px;
  padding:18px;
  transition:transform .35s cubic-bezier(.22,.68,0,1), box-shadow .35s ease;
}

.history-card:hover {
  transform:translateY(-3px);
  box-shadow:0 14px 26px rgba(0,0,0,.3);
}

.history-card h4 {
  font-size:12px;
  font-weight:700;
  margin-bottom:12px;
}

.history-item {
  display:flex;
  align-items:flex-start;
  gap:9px;
  margin-bottom:12px;
  transition:transform .25s ease;
  cursor:pointer;
  text-decoration:none;
  color:inherit;
}

.history-item:hover {
  transform:translateX(4px);
}

.history-item:last-child {
  margin-bottom:0;
}

.badge {
  width:20px;
  height:20px;
  border-radius:5px;
  flex-shrink:0;
  display:flex;
  align-items:center;
  justify-content:center;
  color:#fff;
  font-size:9.5px;
  font-weight:700;
  margin-top:1px;
  transition:transform .3s ease;
}

.badge-logo {
  background:transparent;
  padding:0;
}

.badge-logo img {
  width:100%;
  height:100%;
  object-fit:contain;
}

.history-item:hover .badge {
  transform:scale(1.15) rotate(-6deg);
}

.history-item .role {
  font-size:12px;
  font-weight:700;
}

.history-item .meta {
  font-size:10px;
  color:#8a8a8e;
  margin-top:2px;
}

.history-item .meta span {
  color:#77777c;
  font-weight:700;
  text-decoration:underline;
  text-underline-offset:2px;
  transition:color .2s ease;
}

.history-item:hover .meta span {
  color:var(--accent);
}

.history-item .meta a {
  color:#77777c;
  font-weight:700;
  text-decoration:underline;
  text-underline-offset:2px;
  transition:color .2s ease;
}

.history-item .meta a:hover {
  color:var(--accent);
}

.projects-grid {
  display:grid;
  grid-template-columns:1fr 1fr;
  gap:28px 18px;
}

.project-card {
  display:flex;
  flex-direction:column;
  perspective:800px;
  text-decoration:none;
  color:inherit;
}

.project-thumb {
  height:150px;
  background:linear-gradient(150deg,#f0eee9,#dedcd5);
  border-radius:3px;
  transform-style:preserve-3d;
  transition:transform .35s ease, box-shadow .35s ease;
  will-change:transform;
  position:relative;
  overflow:hidden;
}

.project-thumb picture {
  display:block;
  width:100%;
  height:100%;
}

.project-thumb img {
  width:100%;
  height:100%;
  object-fit:cover;
  display:block;
}

.project-thumb::after {
  content:'';
  position:absolute;
  inset:0;
  background:linear-gradient(115deg, transparent 40%, rgba(255,255,255,.55) 50%, transparent 60%);
  transform:translateX(-120%);
  transition:transform .6s ease;
}

.project-card:hover .project-thumb {
  box-shadow:0 18px 34px rgba(0,0,0,.35);
}

.project-card:hover .project-thumb::after {
  transform:translateX(120%);
}

.project-info {
  padding:14px 2px 0;
  color:var(--white);
}

.tags {
  display:flex;
  flex-wrap:wrap;
  gap:6px;
  margin-bottom:10px;
}

.tag {
  font-size:9px;
  font-weight:700;
  letter-spacing:.4px;
  border:1px solid #3a3a3e;
  border-radius:20px;
  padding:3px 9px;
  color:var(--muted);
}

.project-info .p-name {
  font-size:13px;
  font-weight:700;
  margin-bottom:2px;
  letter-spacing:.3px;
  color:var(--white);
  display:inline-flex;
  align-items:center;
  gap:6px;
}

.project-info .p-name .arrow {
  display:inline-block;
  transition:transform .25s ease;
  opacity:0;
  font-size:11px;
}

.project-card:hover .p-name .arrow {
  opacity:1;
  transform:translate(2px,-2px);
}

.project-info .p-desc {
  font-size:9.5px;
  color:var(--muted);
  letter-spacing:.3px;
  font-weight:300;
}

/* ===== MARQUEE (client logos) ===== */
  .marquee-wrap {
  padding:24px 0;
  overflow:hidden;
  margin-top:70px;
}

.marquee-track {
  display:flex;
  align-items:center;
  gap:80px;
  white-space:nowrap;
  width:max-content;
  will-change:transform;
  cursor:grab;
  touch-action:pan-y;              /* o dedo ainda rola a página na vertical */
  -webkit-user-select:none;
  user-select:none;
}

.marquee-track.is-dragging {
  cursor:grabbing;
}

.marquee-track img {
  -webkit-user-drag:none;
  pointer-events:none;             /* o arrasto pega na faixa inteira, não na imagem */
}

/* fallback: se o JS não rodar, a faixa anda sozinha pelo CSS */
.no-js-marquee .marquee-track {
  animation:scroll 22s linear infinite;
}

@keyframes scroll {
  from {
    transform:translateX(0);
  }
  to {
    transform:translateX(-50%);
  }
}

.marquee-item {
  display:inline-flex;
  align-items:center;
  justify-content:center;
  height:30px;
}

.marquee-item img {
  height:auto;
  max-height:100%;
  width:auto;
  filter:brightness(0) saturate(100%) invert(46%) sepia(53%) saturate(1749%) hue-rotate(202deg) brightness(93%) contrast(93%);
  opacity:.85;
  transition:opacity .25s ease, transform .25s cubic-bezier(.34,1.56,.64,1);
}

.marquee-item img:hover {
  opacity:1;
  transform:translateY(-2px) scale(1.06);
}

/* ===== CONTATO ===== */
  .contact-section {
  padding:90px 0 50px;
}

.contact-layout {
  display:grid;
  grid-template-columns:1fr auto 1fr;
  align-items:start;
  gap:32px;
}

.contact-links-block {
  justify-self:end;
  text-align:right;
  width:fit-content;
}

.contact-links-block .links-list {
  align-items:flex-end;
}

.contact-title {
  font-size:46px;
  line-height:0.88;
  letter-spacing:-1px;
  cursor:default;
}

.contact-title .line span {
  display:inline-block;
}

.contact-title:hover .line span {
  animation:glitch-txt .5s steps(2,end) infinite;
}

.contact-title .line:nth-child(2) span {
  animation-delay:.05s;
}

@keyframes glitch-txt {
  0% {
    transform:translate(0,0);
    text-shadow:none;
  }
  20% {
    transform:translate(-3px,1px);
    text-shadow:3px 0 var(--accent), -3px 0 #ff3355;
  }
  40% {
    transform:translate(3px,-1px);
    text-shadow:-3px 0 var(--accent), 3px 0 #ff3355;
  }
  60% {
    transform:translate(-2px,0);
    text-shadow:2px 0 var(--accent);
  }
  80% {
    transform:translate(2px,1px);
    text-shadow:-2px 0 #ff3355;
  }
  100% {
    transform:translate(0,0);
    text-shadow:none;
  }
}

.contact-sub {
  margin-top:16px;
  font-size:12px;
  font-weight:700;
  letter-spacing:.5px;
  color:var(--accent);
  max-width:220px;
}

.contact-x {
}

.contact-x img {
  width:52px;
  height:52px;
  opacity:.9;
}

.contact-mark {
  position:relative;
  cursor:default;
}

.contact-mark-inner {
  width:100%;
  height:auto;
  max-width:160px;
}

.contact-mark:hover .contact-mark-inner {
  animation:glitch-img .4s steps(2,end) infinite;
}

.links-title {
  font-size:12px;
  color:var(--accent);
  margin-bottom:16px;
  letter-spacing:.3px;
}

.links-list {
  display:flex;
  flex-direction:column;
  gap:12px;
}

.links-list a {
  font-size:18px;
  font-weight:700;
  color:var(--accent);
  display:inline-flex;
  align-items:center;
  width:fit-content;
  transition:opacity .2s ease;
  position:relative;
}

.links-list a::before {
  content:'';
  position:absolute;
  left:0;
  bottom:-3px;
  width:0;
  height:1px;
  background:var(--accent);
  transition:width .3s ease;
}

.links-list a:hover::before {
  width:100%;
}

.links-list a:hover {
  opacity:.8;
}

footer {
  text-align:center;
  padding:36px 0 26px;
  font-size:11px;
  color:var(--muted);
  border-top:1px solid var(--line);
  margin-top:60px;
}

/* ===== ANIMATIONS / SHARED ===== */

  .reveal {
  opacity:0;
  transform:translateY(28px);
  transition:opacity .7s cubic-bezier(.22,.68,0,1), transform .7s cubic-bezier(.22,.68,0,1);
}

.reveal.in {
  opacity:1;
  transform:translateY(0);
}

.reveal-stagger .reveal:nth-child(1) {
  transition-delay:.03s;
}

.reveal-stagger .reveal:nth-child(2) {
  transition-delay:.09s;
}

.reveal-stagger .reveal:nth-child(3) {
  transition-delay:.15s;
}

.reveal-stagger .reveal:nth-child(4) {
  transition-delay:.21s;
}

.reveal-stagger .reveal:nth-child(5) {
  transition-delay:.27s;
}

.reveal-stagger .reveal:nth-child(6) {
  transition-delay:.33s;
}

body.loaded .hero-left > *,
  body.loaded .hero-right > * {
  animation:fade-up .8s cubic-bezier(.22,.68,0,1) both;
}

body:not(.loaded) .hero-left > *,
  body:not(.loaded) .hero-right > * {
  opacity:0;
}

.hero-left > *:nth-child(1) {
  animation-delay:.05s;
}

.hero-left > *:nth-child(2) {
  animation-delay:.15s;
}

.hero-right > *:nth-child(1) {
  animation-delay:.2s;
}

.hero-right > *:nth-child(2) {
  animation-delay:.28s;
}

.hero-right > *:nth-child(3) {
  animation-delay:.36s;
}

.hero-right > *:nth-child(4) {
  animation-delay:.44s;
}

@keyframes fade-up {
  from {
    opacity:0;
    transform:translateY(22px);
  }
  to {
    opacity:1;
    transform:translateY(0);
  }
}

@media (prefers-reduced-motion: reduce) {
  *,*::before,*::after {
    animation-duration:.001ms !important;
    animation-iteration-count:1 !important;
    transition-duration:.001ms !important;
  }
}

:focus-visible {
  outline:2px solid var(--accent);
  outline-offset:2px;
}

/* ===== RESPONSIVE ===== */
  @media (max-width:860px) {
  .hero-grid, .work-grid {
    grid-template-columns:1fr;
  }
  .hero-left {
    flex-direction:row;
    align-items:flex-start;
    gap:24px;
  }
  .passo-mark {
    flex-shrink:0;
  }
  .contact-layout {
    grid-template-columns:1fr;
    row-gap:36px;
  }
}

@media (max-width:600px) {
  .nav-links {
    display:none;
  }
  .hamburger {
    display:flex;
  }
  .mobile-menu {
    display:flex;
  }
  .marquee-item {
    height:26px;
  }
  .marquee-track {
    gap:44px;
  }
  .marquee-wrap {
    padding:16px 0;
    margin-top:44px;
  }
  .hero-grid {
    display:grid;
    grid-template-columns:1fr 1fr;
    gap:14px;
    align-items:start;
  }
  .hero-left {
    flex-direction:column;
    grid-column:1;
    grid-row:1 / span 2;
  }
  .passo-mark-inner {
    max-width:140px;
    height:auto;
  }
  .eyebrow {
    font-size:12.5px;
  }
  .hero-right {
    display:contents;
  }
  .card-profile {
    grid-column:2;
    grid-row:1;
  }
  .card-tools {
    grid-column:2;
    grid-row:2;
    margin-top:0;
  }
  .card-photo {
    grid-column:1 / span 2;
    grid-row:3;
  }
  .card-stack {
    grid-column:1 / span 2;
    grid-row:4;
  }
  .card {
    padding:14px;
  }
  .card-photo {
    padding:0;
  }
  .profile-head {
    gap:8px;
    margin-bottom:2px;
  }
  .avatar-sm {
    width:34px;
    height:34px;
  }
  .profile-head .name {
    font-size:12px;
  }
  .profile-head .role {
    font-size:9px;
  }
  .card-profile p {
    font-size:10px;
    line-height:1.45;
  }
  .card-tools h3 {
    font-size:12px;
  }
  .card-tools p {
    font-size:10px;
    line-height:1.45;
  }
  .card-photo {
    min-height:190px;
  }
  .card-photo img {
    min-height:190px;
  }
  .card-stack {
    min-height:290px;
  }
  .stack-icon {
    width:52px;
    height:52px;
    gap:0;
  }
  .stack-icon svg {
    width:44px;
    height:44px;
  }
  .stack-heading {
    font-size:11px;
  }
  .stack-list {
    font-size:10px;
  }
  .stack-icons-area {
    min-height:140px;
  }
  .projects-grid {
    grid-template-columns:1fr 1fr;
    gap:20px 12px;
  }
  .project-thumb {
    height:110px;
  }
  .tags {
    flex-wrap:wrap;
    gap:5px;
  }
  .tag {
    font-size:8px;
    padding:3px 7px;
  }
  .project-info .p-name {
    font-size:11.5px;
  }
  .project-info .p-desc {
    font-size:8.5px;
  }
  .contact-layout {
    display:grid;
    grid-template-columns:auto 1fr auto;
    grid-template-rows:auto;
    align-items:center;
    gap:10px 14px;
  }
  .contact-layout > div:nth-child(1) {
    grid-column:1;
    grid-row:1;
    max-width:120px;
    align-self:start;
  }
  .contact-x {
    grid-column:2;
    grid-row:1;
    justify-self:center;
    align-self:start;
    margin-top:22px;
  }
  .contact-layout > div:nth-child(3) {
    grid-column:3;
    grid-row:1;
    align-self:start;
  }
  .contact-mark-inner {
    max-width:100px;
    height:auto;
  }
  .contact-sub {
    font-size:9.5px;
  }
  .contact-x img {
    width:32px;
    height:32px;
  }
  .links-title {
    font-size:9.5px;
    margin-bottom:8px;
  }
  .links-list {
    gap:7px;
  }
  .links-list a {
    font-size:12px;
  }
  .wrap {
    padding:0 20px;
  }
  .contact-section {
    padding-top:56px;
    padding-bottom:40px;
  }
  .work-section {
    padding-top:56px;
    padding-bottom:40px;
  }
  .hero {
    padding-top:40px;
    padding-bottom:56px;
  }
  .passo-mark-inner {
    max-width:180px;
    height:auto;
  }
  .work-left {
    display:grid;
    grid-template-columns:auto 1fr;
    grid-template-rows:auto auto;
    align-items:start;
    gap:10px 14px;
  }
  .work-title-img {
    grid-column:1;
    grid-row:1 / span 2;
    max-width:88px;
    align-self:start;
  }
  .history-card {
    padding:14px;
  }
  .history-card:nth-of-type(1) {
    grid-column:2;
    grid-row:1;
  }
  .history-card:nth-of-type(2) {
    grid-column:2;
    grid-row:2;
  }
  .history-card h4 {
    font-size:10.5px;
    margin-bottom:8px;
  }
  .history-item {
    gap:7px;
    margin-bottom:8px;
  }
  .history-item .role {
    font-size:10.5px;
  }
  .history-item .meta {
    font-size:9px;
  }
  .badge {
    width:17px;
    height:17px;
    font-size:8px;
  }
}
/* ===== ABA CONTATO — divisor + neutralização de cor =====
   Tudo nesta faixa fica branco no tema escuro e preto no tema claro.
   Só o logotipo "CONTATO" mantém a cor de destaque. */
.marquee-wrap {
  padding-bottom:34px;
  border-bottom:1px solid var(--line);
}

.marquee-item img {
  filter:brightness(0) saturate(100%) invert(60%);
  opacity:.9;
}

html.light-theme .marquee-item img {
  filter:brightness(0) saturate(100%) invert(42%);
  opacity:.9;
}

.marquee-item img:hover,
html.light-theme .marquee-item img:hover {
  opacity:1;
}

/* mesmo cinza das barrinhas do menu hamburger (--muted) */
.contact-sub,
.links-title,
.links-list a {
  color:var(--muted);
}

.links-list a::before {
  background:currentColor;
}

/* o X do contato continua na cor de destaque, nos dois temas */
.contact-x img {
  filter:none;
  opacity:1;
}

@media (max-width:900px) {
  .marquee-wrap {
    padding-bottom:26px;
  }
}
