/* ==========================================================
   Matthews Zolana — Portfólio
   Direção: editorial, sóbria, um único acento (verde)
   ========================================================== */

/* ---------- Fontes (locais) ---------- */
@font-face {
  font-family: "Instrument Serif";
  src: url("assets/fonts/instrument-serif-latin-400-normal.woff2") format("woff2");
  font-weight: 400; font-style: normal; font-display: swap;
}
@font-face {
  font-family: "Instrument Serif";
  src: url("assets/fonts/instrument-serif-latin-400-italic.woff2") format("woff2");
  font-weight: 400; font-style: italic; font-display: swap;
}
@font-face {
  font-family: "Hanken Grotesk";
  src: url("assets/fonts/hanken-grotesk-latin-wght-normal.woff2") format("woff2");
  font-weight: 100 900; font-style: normal; font-display: swap;
}

/* ---------- Tokens ---------- */
:root {
  --serif: "Instrument Serif", "Times New Roman", serif;
  --sans: "Hanken Grotesk", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;

  --ease: cubic-bezier(.22, 1, .36, 1);
  --ease-io: cubic-bezier(.65, 0, .35, 1);

  --gutter: clamp(20px, 5vw, 64px);
  --maxw: 1280px;
  --radius: 14px;
}

:root[data-theme="dark"] {
  --bg: #090a09;
  --bg-2: #111311;
  --ink: #eef1ec;
  --muted: #8e958d;
  --line: rgba(238, 241, 236, .13);
  --accent: #3fe08a;
  --accent-ink: #07110b;
  --nav-bg: rgba(9, 10, 9, .72);
  --frame-a: #1f5a3c;
  --frame-b: #123322;
  --grain: .07;
  color-scheme: dark;
}
:root[data-theme="light"] {
  --bg: #f1f3ee;
  --bg-2: #e6eae3;
  --ink: #0b0d0b;
  --muted: #5a615a;
  --line: rgba(11, 13, 11, .15);
  --accent: #0c8a4a;
  --accent-ink: #fff;
  --nav-bg: rgba(241, 243, 238, .78);
  --frame-a: #bfe6cf;
  --frame-b: #8fcaa8;
  --grain: .06;
  color-scheme: light;
}

/* ---------- Base ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 90px; -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--sans);
  font-size: 17px;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
  transition: background .5s var(--ease), color .5s var(--ease);
}
body.is-locked { overflow: hidden; }

/* textura de papel, quase impercetível */
body::after {
  content: "";
  position: fixed; inset: 0; z-index: 90; pointer-events: none;
  opacity: var(--grain);
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='180' height='180'><filter id='n'><feTurbulence type='fractalNoise' baseFrequency='.85' numOctaves='2' stitchTiles='stitch'/><feColorMatrix values='0 0 0 0 .5  0 0 0 0 .5  0 0 0 0 .5  0 0 0 .9 0'/></filter><rect width='100%' height='100%' filter='url(%23n)'/></svg>");
}

img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
ul, ol { list-style: none; margin: 0; padding: 0; }
h1, h2, h3, p, dl, dd { margin: 0; }
button { font: inherit; color: inherit; background: none; border: 0; cursor: pointer; padding: 0; }
::selection { background: var(--accent); color: var(--accent-ink); }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; border-radius: 4px; }

.wrap { width: 100%; max-width: calc(var(--maxw) + var(--gutter) * 2); margin-inline: auto; padding-inline: var(--gutter); }
.skip-link { position: fixed; left: 12px; top: -60px; z-index: 200; background: var(--ink); color: var(--bg); padding: 10px 16px; border-radius: 8px; transition: top .2s; }
.skip-link:focus { top: 12px; }

.sr-only { position: absolute; width: 1px; height: 1px; margin: -1px; padding: 0; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }

em { font-family: var(--serif); font-style: italic; font-weight: 400; }

/* ---------- Barra de progresso ---------- */
.progress { position: fixed; top: 0; left: 0; right: 0; height: 2px; z-index: 120; }
.progress span { display: block; height: 100%; width: 100%; background: var(--accent); transform: scaleX(0); transform-origin: left; }

/* ---------- Navegação ---------- */
.nav {
  position: fixed; top: 0; left: 0; right: 0; z-index: 100;
  transition: transform .5s var(--ease), background .4s, border-color .4s;
  border-bottom: 1px solid transparent;
}
.nav.is-scrolled { background: var(--nav-bg); -webkit-backdrop-filter: blur(14px); backdrop-filter: blur(14px); border-color: var(--line); }
.nav.is-hidden { transform: translateY(-100%); }
.nav__inner { display: flex; align-items: center; justify-content: space-between; height: 76px; gap: 24px; }

.nav__brand { display: flex; align-items: center; gap: 12px; font-weight: 600; letter-spacing: -.01em; }
.nav__mark {
  display: grid; place-items: center; width: 38px; height: 38px; border-radius: 50%;
  border: 1px solid var(--ink); font-family: var(--serif); font-size: 18px; line-height: 1;
  transition: background .35s var(--ease), color .35s var(--ease), transform .5s var(--ease);
}
.nav__brand:hover .nav__mark { background: var(--ink); color: var(--bg); transform: rotate(-12deg); }

.nav__links { display: flex; gap: 6px; }
.nav__links a {
  position: relative; padding: 8px 14px; font-size: 15px; color: var(--muted);
  transition: color .3s;
}
.nav__links a::after {
  content: ""; position: absolute; left: 14px; right: 14px; bottom: 3px; height: 1px;
  background: var(--accent); transform: scaleX(0); transform-origin: right; transition: transform .45s var(--ease);
}
.nav__links a:hover, .nav__links a.is-active { color: var(--ink); }
.nav__links a:hover::after, .nav__links a.is-active::after { transform: scaleX(1); transform-origin: left; }

.nav__actions { display: flex; align-items: center; gap: 10px; }
.icon-btn {
  display: grid; place-items: center; width: 40px; height: 40px; border-radius: 50%;
  border: 1px solid var(--line); transition: border-color .3s, transform .5s var(--ease), background .3s;
}
.icon-btn:hover { border-color: var(--ink); transform: rotate(25deg); }
:root[data-theme="dark"] .i-moon, :root[data-theme="light"] .i-sun { display: none; }

.menu-btn { display: none; width: 40px; height: 40px; position: relative; border-radius: 50%; border: 1px solid var(--line); }
.menu-btn span { position: absolute; left: 11px; right: 11px; height: 1.5px; background: var(--ink); transition: transform .45s var(--ease), top .45s var(--ease); }
.menu-btn span:nth-child(1) { top: 16px; }
.menu-btn span:nth-child(2) { top: 23px; }
.menu-btn[aria-expanded="true"] span:nth-child(1) { top: 19.5px; transform: rotate(45deg); }
.menu-btn[aria-expanded="true"] span:nth-child(2) { top: 19.5px; transform: rotate(-45deg); }

/* Menu móvel */
.menu {
  position: fixed; inset: 0; z-index: 95; background: var(--bg);
  display: flex; flex-direction: column; justify-content: center; padding: 100px var(--gutter) 40px;
  clip-path: circle(0 at calc(100% - 44px) 38px);
  transition: clip-path .75s var(--ease-io);
  visibility: hidden;
}
.menu.is-open { clip-path: circle(150% at calc(100% - 44px) 38px); visibility: visible; }
.menu__links { display: flex; flex-direction: column; gap: 4px; }
.menu__links a {
  display: flex; align-items: baseline; gap: 16px; font-family: var(--serif); font-size: clamp(44px, 12vw, 72px); line-height: 1.1;
  opacity: 0; transform: translateY(30px); transition: opacity .5s, transform .6s var(--ease), color .3s;
}
.menu__links a span { font-family: var(--sans); font-size: 13px; color: var(--accent); letter-spacing: .08em; }
.menu__links a:hover { color: var(--accent); }
.menu.is-open .menu__links a { opacity: 1; transform: none; }
.menu.is-open .menu__links a:nth-child(1) { transition-delay: .25s; }
.menu.is-open .menu__links a:nth-child(2) { transition-delay: .31s; }
.menu.is-open .menu__links a:nth-child(3) { transition-delay: .37s; }
.menu.is-open .menu__links a:nth-child(4) { transition-delay: .43s; }
.menu.is-open .menu__links a:nth-child(5) { transition-delay: .49s; }
.menu__foot { margin-top: 40px; color: var(--muted); font-size: 14px; }

/* ---------- Botões ---------- */
.btn {
  position: relative; display: inline-flex; align-items: center; gap: 10px; overflow: hidden; isolation: isolate;
  padding: 14px 26px; border-radius: 999px; border: 1px solid var(--ink);
  font-weight: 600; font-size: 15px; letter-spacing: -.005em; white-space: nowrap;
  transition: color .4s var(--ease), border-color .4s, transform .25s var(--ease);
}
.btn::before {
  content: ""; position: absolute; inset: 0; z-index: -1; background: var(--accent);
  transform: translateY(101%); border-radius: 50% 50% 0 0 / 100% 100% 0 0;
  transition: transform .55s var(--ease), border-radius .55s var(--ease);
}
.btn:hover { color: var(--accent-ink); border-color: var(--accent); }
.btn:hover::before { transform: translateY(0); border-radius: 0; }
.btn svg { transition: transform .4s var(--ease); }
.btn:hover svg { transform: translateY(2px) translateX(2px); }
.btn--solid { background: var(--ink); color: var(--bg); }
.btn--sm { padding: 10px 20px; font-size: 14px; }

/* ---------- Revelações ---------- */
.js [data-reveal] { opacity: 0; transform: translateY(32px); transition: opacity .9s var(--ease), transform 1s var(--ease); }
.js [data-reveal][data-delay="1"] { transition-delay: .12s; }
.js [data-reveal][data-delay="2"] { transition-delay: .24s; }
.js [data-reveal].is-in { opacity: 1; transform: none; }

/* títulos divididos por palavras (máscara de linha) */
.w { display: inline-block; overflow: hidden; vertical-align: top; padding-bottom: .12em; margin-bottom: -.12em; }
.w > span { display: inline-block; transition: transform 1.05s var(--ease); }
.js [data-split] .w > span { transform: translateY(110%); }
.js [data-split].is-in .w > span { transform: none; }

/* ---------- Secções ---------- */
.section { padding: clamp(90px, 13vw, 170px) 0; position: relative; }
.section__head { margin-bottom: clamp(40px, 6vw, 80px); }
.label {
  display: inline-flex; align-items: center; gap: 12px; margin-bottom: 22px;
  font-size: 13px; font-weight: 600; letter-spacing: .14em; text-transform: uppercase; color: var(--muted);
}
.label span { color: var(--accent); }
.label::after { content: ""; width: 48px; height: 1px; background: var(--line); }
.h2 { font-family: var(--serif); font-weight: 400; font-size: clamp(44px, 7.2vw, 104px); line-height: 1; letter-spacing: -.02em; }

/* ---------- Hero ---------- */
.hero { position: relative; padding-top: 76px; }
.hero__grid {
  display: grid; grid-template-columns: 1.25fr .75fr; gap: clamp(32px, 6vw, 96px);
  align-items: center; min-height: min(860px, calc(100svh - 76px)); padding-block: clamp(40px, 6vw, 80px);
}
.hero__status {
  display: inline-flex; align-items: center; gap: 10px; margin-bottom: 30px; padding: 8px 16px 8px 12px;
  border: 1px solid var(--line); border-radius: 999px; font-size: 14px; color: var(--muted);
}
.dot { position: relative; width: 8px; height: 8px; border-radius: 50%; background: #3ddc84; }
.dot::after { content: ""; position: absolute; inset: 0; border-radius: 50%; background: inherit; animation: ping 2s var(--ease) infinite; }
@keyframes ping { 0% { transform: scale(1); opacity: .7; } 80%, 100% { transform: scale(3.2); opacity: 0; } }

.hero__title { font-family: var(--serif); font-weight: 400; font-size: clamp(52px, 8.4vw, 132px); line-height: .98; letter-spacing: -.025em; }
.hero__title .line { display: block; overflow: hidden; padding-bottom: .1em; margin-bottom: -.1em; }
.hero__title .line > span { display: inline-block; }
.hero__title em { color: var(--accent); }
.hero__lead { max-width: 520px; margin-top: 34px; font-size: clamp(17px, 1.5vw, 20px); color: var(--muted); }
.hero__cta { display: flex; flex-wrap: wrap; gap: 14px; margin-top: 40px; }

/* entrada do hero */
.js [data-hero] { opacity: 0; transform: translateY(24px); transition: opacity 1s var(--ease), transform 1.1s var(--ease); }
.js .hero__title .line[data-hero] { opacity: 1; transform: none; }
.js .hero__title .line > span { transform: translateY(110%); transition: transform 1.2s var(--ease); }
.js [data-hero="1"] { transition-delay: .1s; }
.js [data-hero="2"] > span { transition-delay: .2s; }
.js [data-hero="3"] > span { transition-delay: .32s; }
.js .hero__visual[data-hero="3"] { transition-delay: .35s; transform: translateY(40px) scale(.97); }
.js [data-hero="4"] { transition-delay: .55s; }
.js [data-hero="5"] { transition-delay: .68s; }
.is-loaded [data-hero] { opacity: 1; transform: none; }
.is-loaded .hero__title .line > span { transform: none; }

/* retrato */
.hero__visual { justify-self: end; width: 100%; max-width: 440px; }
.portrait { position: relative; padding: 0 0 22px 22px; }
.portrait__frame {
  position: relative; aspect-ratio: 5 / 6; overflow: hidden;
  background: radial-gradient(90% 70% at 50% 38%, var(--frame-a), var(--frame-b));
  border: 1px solid var(--line);
  border-radius: 999px 999px 22px 22px;
}
.portrait__frame img {
  position: absolute; left: 0; bottom: 0; width: 100%; height: auto;
  transform: translateY(8%); opacity: 0;
  transition: transform 1.6s var(--ease), opacity 1s var(--ease);
}
.is-loaded .portrait__frame img { transform: none; opacity: 1; }

.portrait__badge { position: absolute; left: -6px; bottom: -4px; width: 128px; height: 128px; animation: spin 24s linear infinite; background: var(--bg); border-radius: 50%; color: var(--accent); }
.portrait__badge text { font-family: var(--sans); font-weight: 600; font-size: 8.4px; letter-spacing: .16em; fill: var(--ink); }
@keyframes spin { to { transform: rotate(360deg); } }
/* faixa de tecnologias */
.marquee { border-block: 1px solid var(--line); overflow: hidden; padding: 20px 0; }
.marquee__track { display: flex; width: max-content; gap: 34px; align-items: center; animation: marquee 38s linear infinite; }
.marquee:hover .marquee__track { animation-play-state: paused; }
.marquee span { font-family: var(--serif); font-size: clamp(30px, 4vw, 54px); line-height: 1; white-space: nowrap; }
.marquee i { font-style: normal; color: var(--accent); font-size: 18px; }
@keyframes marquee { to { transform: translateX(-50%); } }

/* ---------- Sobre ---------- */
.statement {
  font-family: var(--serif); font-size: clamp(32px, 5.1vw, 72px); line-height: 1.12; letter-spacing: -.015em; max-width: 21em;
}
.statement .sw { opacity: .16; transition: opacity .35s linear; }
.statement .sw.is-lit { opacity: 1; }

.about__cols { display: grid; grid-template-columns: 1.2fr 1fr 1fr; gap: clamp(28px, 5vw, 80px); margin-top: clamp(56px, 8vw, 110px); padding-top: 40px; border-top: 1px solid var(--line); }
.about__text p { color: var(--muted); }
.about__text p + p { margin-top: 1.1em; }
.principles li { padding: 16px 0; border-bottom: 1px solid var(--line); display: grid; gap: 2px; }
.principles li:first-child { padding-top: 0; }
.principles strong { font-family: var(--serif); font-weight: 400; font-size: 26px; line-height: 1.2; }
.principles span { color: var(--muted); font-size: 15px; }
.facts { display: grid; gap: 18px; }
.facts div { display: flex; align-items: baseline; gap: 16px; padding-bottom: 18px; border-bottom: 1px solid var(--line); }
.facts div:last-child { border: 0; padding: 0; }
.facts dt { font-family: var(--serif); font-size: 56px; line-height: 1; min-width: 74px; color: var(--accent); }
.facts dd { color: var(--muted); font-size: 15px; line-height: 1.4; }

/* ---------- Projetos ---------- */
.projects { background: var(--bg-2); transition: background .5s var(--ease); }
.projects__grid { display: grid; grid-template-columns: repeat(2, 1fr); column-gap: clamp(24px, 4vw, 64px); row-gap: clamp(56px, 7vw, 96px); }
.project:nth-child(even) { margin-top: clamp(40px, 8vw, 120px); }

.project__media {
  position: relative; display: block; aspect-ratio: 2 / 1; overflow: hidden; border-radius: var(--radius);
  background: var(--bg); border: 1px solid var(--line); cursor: pointer;
}
.project__media--static { cursor: default; }
.project__media img {
  width: 100%; height: 100%; object-fit: cover; object-position: top center;
  transform: translate3d(0, var(--py, 0px), 0) scale(1.04);
  transition: transform .9s var(--ease), filter .6s;
  will-change: transform;
}
.project__media:hover img { transform: translate3d(0, var(--py, 0px), 0) scale(1.08); }
.project__media--static img { filter: saturate(.7); }
.project__media--static:hover img { transform: translate3d(0, var(--py, 0px), 0) scale(1.04); }
.project__go {
  position: absolute; right: 16px; bottom: 16px; padding: 9px 16px; border-radius: 999px;
  background: var(--accent); color: var(--accent-ink); font-size: 14px; font-weight: 600;
  opacity: 0; transform: translateY(12px); transition: opacity .4s, transform .5s var(--ease);
}
.project__go--soft { background: var(--bg); color: var(--ink); opacity: 1; transform: none; border: 1px solid var(--line); }
.project__media:hover .project__go { opacity: 1; transform: none; }

.project__meta { display: flex; align-items: center; gap: 14px; margin-top: 22px; font-size: 13px; color: var(--muted); }
.project__idx { font-weight: 600; color: var(--ink); }
.project__type { text-transform: uppercase; letter-spacing: .1em; font-weight: 500; }
.status { margin-left: auto; display: inline-flex; align-items: center; gap: 8px; font-weight: 500; }
.status::before { content: ""; width: 7px; height: 7px; border-radius: 50%; background: #3ddc84; }
.status--dev::before { background: #f5b83d; }
.status--plan::before { background: var(--muted); }

.project__title { margin-top: 10px; font-family: var(--serif); font-weight: 400; font-size: clamp(30px, 3.2vw, 44px); line-height: 1.08; letter-spacing: -.01em; }
.project__desc { margin-top: 12px; color: var(--muted); max-width: 34em; }
.tags { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 18px; }
.tags li { padding: 4px 12px; border: 1px solid var(--line); border-radius: 999px; font-size: 13px; color: var(--muted); }

/* ---------- Serviços ---------- */
.service-list { border-top: 1px solid var(--line); }
.service {
  position: relative; display: grid; grid-template-columns: 90px 1.2fr 1fr; align-items: center; gap: 24px;
  padding: clamp(28px, 3.4vw, 46px) 0; border-bottom: 1px solid var(--line); isolation: isolate;
  transition: padding .6s var(--ease), opacity .9s var(--ease), transform 1s var(--ease);
}
.service::before {
  content: ""; position: absolute; inset: 0 calc(var(--gutter) * -1); z-index: -1; background: var(--bg-2);
  transform: scaleY(0); transform-origin: bottom; transition: transform .6s var(--ease);
}
.service:hover { padding-left: 18px; padding-right: 18px; }
.service:hover::before { transform: scaleY(1); }
.service__n { font-size: 14px; font-weight: 600; color: var(--accent); letter-spacing: .08em; }
.service h3 { font-family: var(--serif); font-weight: 400; font-size: clamp(30px, 4vw, 54px); line-height: 1.05; letter-spacing: -.01em; }
.service p { margin-top: 8px; color: var(--muted); max-width: 30em; }
.service__tags { display: flex; flex-wrap: wrap; gap: 8px; justify-content: flex-end; }
.service__tags li { padding: 5px 14px; border: 1px solid var(--line); border-radius: 999px; font-size: 14px; color: var(--muted); transition: border-color .3s, color .3s; }
.service:hover .service__tags li { border-color: var(--ink); color: var(--ink); }

/* ---------- Stack ---------- */
.stack { background: var(--bg-2); transition: background .5s var(--ease); }
.stack__cols { display: grid; grid-template-columns: repeat(3, 1fr); gap: clamp(28px, 5vw, 80px); }
.stack__col h3 { padding-bottom: 14px; border-bottom: 1px solid var(--ink); font-size: 13px; font-weight: 600; letter-spacing: .14em; text-transform: uppercase; }
.stack__col li {
  position: relative; padding: 14px 0; border-bottom: 1px solid var(--line);
  font-family: var(--serif); font-size: clamp(28px, 3vw, 40px); line-height: 1.1;
  transition: padding-left .5s var(--ease), color .3s;
}
.stack__col li::after { content: "→"; position: absolute; right: 0; top: 50%; transform: translate(-10px, -50%); opacity: 0; color: var(--accent); font-family: var(--sans); font-size: 20px; transition: transform .5s var(--ease), opacity .3s; }
.stack__col li:hover { padding-left: 14px; color: var(--accent); }
.stack__col li:hover::after { opacity: 1; transform: translate(0, -50%); }

/* ---------- Contacto ---------- */
.contact__title { font-family: var(--serif); font-weight: 400; font-size: clamp(46px, 8vw, 124px); line-height: .98; letter-spacing: -.025em; max-width: 12em; }
.contact__title em { color: var(--accent); }
.contact__grid { display: grid; grid-template-columns: 1fr 1.1fr; gap: clamp(36px, 7vw, 120px); margin-top: clamp(48px, 7vw, 100px); align-items: start; }
.contact__side > p { color: var(--muted); max-width: 26em; }

.copy-mail {
  display: flex; align-items: center; justify-content: space-between; gap: 16px; width: 100%; max-width: 440px; margin-top: 32px;
  padding: 18px 22px; border: 1px solid var(--line); border-radius: var(--radius); text-align: left;
  transition: border-color .3s, background .3s;
}
.copy-mail:hover { border-color: var(--ink); }
.copy-mail__addr { font-weight: 600; word-break: break-all; }
.copy-mail__hint { flex: none; font-size: 13px; color: var(--accent); font-weight: 600; text-transform: uppercase; letter-spacing: .1em; }

.socials { margin-top: 28px; display: grid; gap: 0; max-width: 440px; }
.socials li { border-bottom: 1px solid var(--line); }
.socials li:first-child { border-top: 1px solid var(--line); }
.socials a { display: flex; justify-content: space-between; padding: 14px 0; font-weight: 500; transition: padding .45s var(--ease), color .3s; }
.socials a span { color: var(--accent); transition: transform .45s var(--ease); }
.socials a:hover { padding-left: 10px; color: var(--accent); }
.socials a:hover span { transform: translate(3px, -3px); }

.form { display: grid; gap: 22px; }
.field { position: relative; display: block; }
.field input, .field textarea {
  width: 100%; padding: 26px 0 10px; background: transparent; color: var(--ink); border: 0; border-bottom: 1px solid var(--line);
  font: inherit; font-size: 18px; border-radius: 0; outline: 0; resize: vertical; transition: border-color .3s;
}
.field span {
  position: absolute; left: 0; top: 24px; color: var(--muted); font-size: 18px; pointer-events: none;
  transform-origin: left top; transition: transform .35s var(--ease), color .3s;
}
.field::after { content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 1px; background: var(--accent); transform: scaleX(0); transform-origin: left; transition: transform .6s var(--ease); }
.field:focus-within::after { transform: scaleX(1); }
.field input:focus + span, .field input:not(:placeholder-shown) + span,
.field textarea:focus + span, .field textarea:not(:placeholder-shown) + span { transform: translateY(-22px) scale(.72); color: var(--accent); }
.form .btn { justify-self: start; margin-top: 8px; }
.form__note { min-height: 1.5em; font-size: 15px; color: var(--muted); }
.form__note.is-ok { color: #3ddc84; }
.form__note.is-err { color: var(--accent); }
.hp { position: absolute; left: -9999px; opacity: 0; height: 0; width: 0; }

/* ---------- Rodapé ---------- */
.footer { border-top: 1px solid var(--line); padding: 30px 0; color: var(--muted); font-size: 14px; }
.footer__inner { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 12px 32px; align-items: center; }
.footer__top { color: var(--ink); font-weight: 500; transition: color .3s, transform .4s var(--ease); }
.footer__top:hover { color: var(--accent); transform: translateY(-3px); }

/* ---------- Responsivo ---------- */
@media (max-width: 1000px) {
  .about__cols { grid-template-columns: 1fr 1fr; }
  .about__text { grid-column: 1 / -1; }
  .service { grid-template-columns: 60px 1fr; }
  .service__tags { grid-column: 2; justify-content: flex-start; }
}
@media (max-width: 900px) {
  .nav__links, .nav__cta { display: none; }
  .menu-btn { display: block; }
  .hero__grid { grid-template-columns: 1fr; min-height: 0; }
  .hero__visual { justify-self: start; max-width: 340px; }
  .projects__grid { grid-template-columns: 1fr; }
  .project:nth-child(even) { margin-top: 0; }
  .stack__cols { grid-template-columns: 1fr; gap: 44px; }
  .contact__grid { grid-template-columns: 1fr; }
}
@media (max-width: 560px) {
  body { font-size: 16px; }
  .about__cols { grid-template-columns: 1fr; }
  .nav__name { display: none; }
  .project__go { opacity: 1; transform: none; }
  .status { margin-left: 0; }
  .project__meta { flex-wrap: wrap; row-gap: 6px; }
  .portrait__badge { width: 96px; height: 96px; }
}

/* ---------- Movimento reduzido ---------- */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: .001ms !important; animation-iteration-count: 1 !important; transition-duration: .001ms !important; transition-delay: 0s !important; }
  .js [data-reveal], .js [data-hero], .js [data-split] .w > span, .js .hero__title .line > span { opacity: 1 !important; transform: none !important; }
  .statement .sw { opacity: 1; }
}
