/* =========================================================
   Rafael Studio — rafaelmestre.com.br
   Paleta: preto + laranja
   ========================================================= */
:root {
  --bg: #0b0b0c;
  --bg-2: #111113;
  --surface: #161618;
  --surface-2: #1d1d20;
  --line: #2a2a2e;
  --text: #f5f3ef;
  --muted: #9c9a95;
  --accent: #ff7a1a;
  --accent-2: #ffad5c;
  --accent-ink: #160a00;
  --glow: rgba(255, 122, 26, .22);

  --f-display: "Sora", system-ui, sans-serif;
  --f-body: "Manrope", system-ui, sans-serif;
  --f-mono: "JetBrains Mono", ui-monospace, monospace;

  --r: 18px;
  --max: 1180px;
  --ease: cubic-bezier(.2, .7, .2, 1);
}

/* ---------- base ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 90px; }
body {
  margin: 0; background: var(--bg); color: var(--text);
  font: 400 1rem/1.65 var(--f-body);
  -webkit-font-smoothing: antialiased; overflow-x: clip;
}
body::before { /* granulado sutil */
  content: ""; position: fixed; inset: 0; z-index: 100; pointer-events: none; opacity: .035;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='160' height='160'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.9' numOctaves='3'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}
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 { margin: 0; }
.container { width: min(100% - 2.5rem, var(--max)); margin-inline: auto; }
.mono { font-family: var(--f-mono); }
.small { font-size: .82rem; }
.muted { color: var(--muted); }
.accent-text { color: var(--accent); }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; border-radius: 8px; }
::selection { background: var(--accent); color: var(--accent-ink); }
.skip { position: absolute; left: -999px; top: 10px; z-index: 200; background: var(--accent); color: var(--accent-ink); padding: 8px 14px; border-radius: 10px; }
.skip:focus { left: 10px; }

/* ---------- botões ---------- */
.btn {
  --mx: 0px; --my: 0px;
  display: inline-flex; align-items: center; justify-content: center; gap: .6rem;
  min-height: 52px; padding: 0 1.5rem; border-radius: 999px;
  font: 700 .98rem var(--f-body); cursor: pointer; border: 1px solid transparent;
  transform: translate(var(--mx), var(--my));
  transition: transform .25s var(--ease), background .2s, color .2s, border-color .2s, box-shadow .25s;
  white-space: nowrap;
}
.btn.sm { min-height: 44px; padding: 0 1.15rem; font-size: .9rem; }
.btn.full { width: 100%; }
.btn-accent { background: var(--accent); color: var(--accent-ink); }
.btn-accent:hover { box-shadow: 0 10px 34px var(--glow); }
.btn-ghost { border-color: var(--line); color: var(--text); background: rgba(255,255,255,.02); }
.btn-ghost:hover { border-color: var(--accent); }
.btn-light { background: var(--text); color: var(--bg); }
.btn-ico {
  display: grid; place-items: center; width: 28px; height: 28px; border-radius: 50%;
  background: var(--accent-ink); color: var(--accent); font-size: .95rem;
  transition: transform .3s var(--ease);
}
.btn:hover .btn-ico { transform: rotate(-45deg); }
.link-arrow { color: var(--accent); font-weight: 700; }
.link-arrow:hover { text-decoration: underline; }

/* ---------- NAV ---------- */
.nav-wrap { position: fixed; top: 14px; left: 0; right: 0; z-index: 50; padding-inline: 1rem; }
.nav {
  max-width: var(--max); margin: 0 auto; display: flex; align-items: center; gap: 1rem;
  padding: .55rem .6rem .55rem 1rem; border-radius: 999px;
  background: rgba(22, 22, 24, .72); border: 1px solid var(--line);
  backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px);
  transition: background .3s, box-shadow .3s;
}
.nav.scrolled { background: rgba(14, 14, 16, .9); box-shadow: 0 10px 40px rgba(0,0,0,.4); }
.logo { display: inline-flex; align-items: center; gap: .55rem; font: 700 1.1rem var(--f-display); letter-spacing: -.02em; }
.logo-mark {
  display: grid; place-items: center; width: 34px; height: 34px; border-radius: 50%;
  background: var(--accent); color: var(--accent-ink); font: 800 1rem var(--f-display);
  transform: skewX(-8deg);
}
.logo .dot { color: var(--accent); }
.nav-links { display: none; gap: .3rem; margin-left: auto; }
.nav-links a { display: block; padding: .5rem .85rem; border-radius: 999px; color: var(--muted); font-weight: 600; font-size: .92rem; transition: color .2s, background .2s; }
.nav-links a:hover, .nav-links a.active { color: var(--text); background: var(--surface-2); }
.nav-links a.active { color: var(--accent); }
.nav-cta { display: none; min-height: 42px; padding: 0 1.1rem; font-size: .9rem; }
.menu-btn {
  margin-left: auto; width: 44px; height: 44px; border-radius: 50%;
  border: 1px solid var(--line); background: var(--surface-2); cursor: pointer;
  display: grid; place-content: center; gap: 6px;
}
.menu-btn span { display: block; width: 18px; height: 2px; background: var(--text); border-radius: 2px; transition: transform .3s var(--ease); }
.menu-btn[aria-expanded="true"] span:first-child { transform: translateY(4px) rotate(45deg); }
.menu-btn[aria-expanded="true"] span:last-child { transform: translateY(-4px) rotate(-45deg); }

/* menu mobile aberto */
.nav-links.open {
  display: flex; flex-direction: column; position: absolute; left: 1rem; right: 1rem; top: calc(100% + 10px);
  padding: .8rem; border-radius: 22px; background: var(--surface); border: 1px solid var(--line);
  box-shadow: 0 20px 50px rgba(0,0,0,.5); animation: drop .3s var(--ease);
}
.nav-links.open a { padding: .85rem 1rem; font-size: 1rem; }
@keyframes drop { from { opacity: 0; transform: translateY(-8px); } }

/* ---------- HERO ---------- */
.hero { position: relative; padding: 130px 0 70px; overflow: hidden; isolation: isolate; }
.hero-grid-bg {
  position: absolute; inset: 0; z-index: -2;
  background-image:
    linear-gradient(rgba(255,255,255,.035) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,.035) 1px, transparent 1px);
  background-size: 64px 64px;
  mask-image: radial-gradient(ellipse 70% 60% at 60% 40%, #000 30%, transparent 75%);
}
.hero::after { /* brilho laranja */
  content: ""; position: absolute; z-index: -1; width: 640px; height: 640px; right: -120px; top: 40px;
  background: radial-gradient(closest-side, var(--glow), transparent); filter: blur(20px);
}
.hero-code {
  display: none; position: absolute; left: 1.5rem; top: 130px; z-index: -1;
  font-size: .74rem; line-height: 1.7; color: #4a4a4f; white-space: pre; margin: 0;
}
.hero-code .k { color: #7a5a3f; } .hero-code .s { color: #6b6b52; }
.hero-inner { display: grid; gap: 3rem; align-items: center; }
.hero-copy { position: relative; z-index: 1; }
.pill {
  display: inline-flex; align-items: center; gap: .55rem; padding: .45rem .95rem .45rem .75rem;
  border-radius: 999px; background: var(--surface); border: 1px solid var(--line);
  font-size: .85rem; font-weight: 600;
}
.pulse { width: 9px; height: 9px; border-radius: 50%; background: #3ddc84; box-shadow: 0 0 0 0 rgba(61,220,132,.6); animation: pulse 2s infinite; }
@keyframes pulse { 70% { box-shadow: 0 0 0 10px rgba(61,220,132,0); } 100% { box-shadow: 0 0 0 0 rgba(61,220,132,0); } }
.hero-title {
  font: 800 clamp(2.6rem, 9vw, 5.4rem)/1.02 var(--f-display); letter-spacing: -.045em;
  margin: 1.4rem 0 1rem;
}
.hero-sub { font: 600 clamp(1.15rem, 3.2vw, 1.6rem) var(--f-display); letter-spacing: -.01em; min-height: 1.5em; }
.typed { color: var(--accent-2); }
.caret { display: inline-block; width: 3px; height: 1.05em; background: var(--accent); margin-left: 4px; vertical-align: -.15em; animation: blink 1s steps(1) infinite; }
@keyframes blink { 50% { opacity: 0; } }
.hero-lead { color: var(--muted); max-width: 46ch; margin-top: 1rem; font-size: 1.05rem; }
.hero-cta { display: flex; flex-wrap: wrap; gap: .75rem; margin-top: 2rem; }
.hero-social { display: flex; align-items: center; gap: 1rem; margin-top: 2.2rem; flex-wrap: wrap; }
.social-row { display: flex; gap: .5rem; }
.social-row a {
  width: 42px; height: 42px; border-radius: 50%; display: grid; place-items: center;
  border: 1px solid var(--line); background: var(--surface); transition: background .2s, color .2s, transform .2s, border-color .2s;
}
.social-row a:hover { background: var(--accent); color: var(--accent-ink); border-color: var(--accent); transform: translateY(-3px); }
.social-row svg { width: 18px; height: 18px; fill: currentColor; }

/* foto do hero */
.hero-visual { position: relative; justify-self: center; width: min(100%, 440px); }
.hero-photo { position: relative; aspect-ratio: 5 / 6; }
.photo-shape {
  position: absolute; inset: 12% 6% 0 6%; border-radius: 48% 48% 24px 24px;
  background: linear-gradient(160deg, var(--accent) 0%, #c24d00 100%);
  box-shadow: 0 30px 80px var(--glow);
}
.photo-shape::before { /* listras decorativas */
  content: ""; position: absolute; inset: 0; border-radius: inherit; opacity: .18;
  background: repeating-linear-gradient(-45deg, transparent 0 14px, #000 14px 16px);
}
.hero-photo img {
  position: absolute; left: 50%; bottom: 0; transform: translateX(-50%);
  width: 100%; height: 100%; object-fit: contain; object-position: bottom;
  filter: drop-shadow(0 20px 30px rgba(0,0,0,.45));
}
/* foto ainda com fundo: vira um "cartão" redondo dentro da forma */
.hero-photo.framed img {
  width: 76%; height: auto; aspect-ratio: 1; bottom: 9%; object-fit: cover;
  border-radius: 50%; border: 6px solid var(--bg);
}
.badge-rotate { position: absolute; top: 2%; right: -2%; width: 112px; height: 112px; border-radius: 50%; background: var(--bg); border: 1px solid var(--line); display: grid; place-items: center; }
.badge-rotate svg { position: absolute; inset: 6px; width: calc(100% - 12px); animation: spin 14s linear infinite; }
.badge-rotate text { fill: var(--text); font: 700 9.6px var(--f-mono); letter-spacing: 2.6px; }
.badge-core { width: 42px; height: 42px; border-radius: 50%; background: var(--accent); color: var(--accent-ink); display: grid; place-items: center; font-weight: 800; font-size: 1.2rem; }
@keyframes spin { to { transform: rotate(360deg); } }
.float-chip {
  position: absolute; padding: .55rem .95rem; border-radius: 999px; font-size: .82rem; font-weight: 700;
  background: rgba(22,22,24,.85); border: 1px solid var(--line); backdrop-filter: blur(8px);
  box-shadow: 0 10px 30px rgba(0,0,0,.35); animation: bob 5s ease-in-out infinite; white-space: nowrap;
}
.chip-a { left: -6%; top: 30%; }
.chip-b { right: -4%; top: 56%; animation-delay: -1.6s; background: var(--accent); color: var(--accent-ink); border-color: var(--accent); }
.chip-c { left: 2%; bottom: 8%; animation-delay: -3.2s; }
@keyframes bob { 50% { transform: translateY(-10px); } }

/* ---------- MARQUEE ---------- */
.marquee { overflow: hidden; background: var(--accent); color: var(--accent-ink); transform: rotate(-1.5deg) scale(1.03); margin: 10px 0 30px; border-block: 1px solid #ff9a4d; }
.marquee-track { display: flex; width: max-content; animation: marquee 32s linear infinite; }
.marquee-track span { display: inline-flex; align-items: center; gap: 1.6rem; padding: 1rem 0 1rem 1.6rem; font: 700 clamp(1rem, 2.4vw, 1.35rem) var(--f-display); letter-spacing: -.01em; white-space: nowrap; }
.marquee-track span::after { content: "✦"; font-size: .9em; }
@keyframes marquee { to { transform: translateX(-50%); } }

/* ---------- SEÇÕES ---------- */
.section { padding: clamp(4rem, 9vw, 7rem) 0; position: relative; }
.section.tight { padding: 2rem 0 3rem; }
.section-head { display: flex; flex-wrap: wrap; align-items: flex-end; justify-content: space-between; gap: 1.2rem; margin-bottom: 2.5rem; }
.eyebrow { display: inline-flex; align-items: center; gap: .6rem; color: var(--muted); font-weight: 600; font-size: .9rem; margin-bottom: .9rem; }
.eyebrow.center { display: flex; justify-content: center; }
.dots { position: relative; width: 26px; height: 12px; }
.dots::before, .dots::after { content: ""; position: absolute; top: 0; width: 12px; height: 12px; border-radius: 50%; }
.dots::before { left: 0; background: var(--text); }
.dots::after { left: 9px; background: var(--accent); }
.h2 { font: 700 clamp(1.9rem, 5vw, 3.1rem)/1.1 var(--f-display); letter-spacing: -.035em; max-width: 20ch; }
.sub-head { font: 700 1.25rem var(--f-display); margin: 4rem 0 1.4rem; letter-spacing: -.02em; }

/* ---------- SERVIÇOS (acordeão) ---------- */
.services { display: grid; gap: .8rem; }
.service {
  border-radius: var(--r); background: var(--surface); border: 1px solid var(--line);
  overflow: hidden; transition: background .35s var(--ease), border-color .35s, color .35s;
}
.service-head {
  width: 100%; display: grid; grid-template-columns: 52px 1fr 44px; align-items: center; gap: 1rem;
  padding: 1.25rem 1.3rem; background: none; border: 0; color: inherit; cursor: pointer; text-align: left;
}
.service-num { font: 500 .85rem var(--f-mono); color: var(--muted); }
.service-title { font: 700 clamp(1.1rem, 2.6vw, 1.55rem) var(--f-display); letter-spacing: -.02em; }
.service-arrow {
  width: 40px; height: 40px; border-radius: 50%; display: grid; place-items: center;
  background: var(--accent); color: var(--accent-ink); font-weight: 800; transition: transform .35s var(--ease), background .3s, color .3s;
}
.service-body { display: grid; grid-template-rows: 0fr; transition: grid-template-rows .45s var(--ease); }
.service-body > div { overflow: hidden; padding: 0 1.3rem 0 calc(1.3rem + 52px + 1rem); }
.service-body p { max-width: 60ch; padding-bottom: 1.4rem; }
.service-tags { display: flex; flex-wrap: wrap; gap: .4rem; margin-bottom: .9rem; }
.service-tags span { font-size: .78rem; font-weight: 700; padding: .25rem .7rem; border-radius: 999px; border: 1px solid currentColor; opacity: .85; }
.service.open { background: var(--accent); color: var(--accent-ink); border-color: var(--accent); }
.service.open .service-num { color: var(--accent-ink); }
.service.open .service-arrow { background: var(--accent-ink); color: var(--accent); transform: rotate(45deg); }
.service.open .service-body { grid-template-rows: 1fr; }
.service:not(.open):hover { border-color: #3a3a40; background: var(--surface-2); }

/* ---------- PROJETOS ---------- */
.featured { display: grid; gap: 1.4rem; }
.project {
  position: relative; display: grid; border-radius: 24px; overflow: hidden;
  background: var(--surface); border: 1px solid var(--line);
  transition: border-color .3s, transform .4s var(--ease);
}
.project:hover { border-color: rgba(255,122,26,.5); }
.project-media { position: relative; aspect-ratio: 16 / 9; overflow: hidden; background: var(--surface-2); }
.project-media img { width: 100%; height: 100%; object-fit: cover; transition: transform .8s var(--ease); }
.project:hover .project-media img { transform: scale(1.05); }
.project-media.gen { display: grid; place-items: center; background: repeating-linear-gradient(135deg, var(--surface-2) 0 14px, var(--surface) 14px 28px); }
.project-media .ini { font: 800 3rem var(--f-display); color: var(--accent); letter-spacing: -.05em; }
.project-body { padding: 1.6rem 1.6rem 1.8rem; display: flex; flex-direction: column; gap: .8rem; }
.project-type { font: 500 .78rem var(--f-mono); color: var(--accent); text-transform: uppercase; letter-spacing: .08em; }
.project h3 { font: 700 clamp(1.5rem, 3.4vw, 2.1rem) var(--f-display); letter-spacing: -.03em; }
.project p { color: var(--muted); }
.tags { display: flex; flex-wrap: wrap; gap: .4rem; }
.tags li { font: 500 .75rem var(--f-mono); padding: .2rem .6rem; border-radius: 6px; background: var(--surface-2); border: 1px solid var(--line); color: var(--muted); }
.project-actions { display: flex; flex-wrap: wrap; gap: .6rem; margin-top: .4rem; }
.spot { /* luz que segue o mouse */
  background:
    radial-gradient(420px circle at var(--sx, -999px) var(--sy, -999px), rgba(255,122,26,.10), transparent 60%),
    var(--surface);
}

.academic { display: grid; gap: 1rem; grid-template-columns: repeat(auto-fill, minmax(min(100%, 300px), 1fr)); }
.mini { border-radius: var(--r); overflow: hidden; border: 1px solid var(--line); background: var(--surface); display: flex; flex-direction: column; transition: transform .3s var(--ease), border-color .3s; }
.mini:hover { transform: translateY(-5px); border-color: rgba(255,122,26,.45); }
.mini .project-media { aspect-ratio: 16 / 9; }
.mini .ini { font-size: 2.2rem; }
.mini-body { padding: 1.1rem 1.2rem 1.3rem; display: flex; flex-direction: column; gap: .55rem; flex: 1; }
.mini h4 { margin: 0; font: 700 1.12rem var(--f-display); letter-spacing: -.02em; }
.mini p { color: var(--muted); font-size: .92rem; }
.mini-links { display: flex; gap: 1rem; margin-top: auto; padding-top: .3rem; font-weight: 700; font-size: .88rem; }
.mini-links a { color: var(--accent); }
.mini-links a:hover { text-decoration: underline; }

/* ---------- SOBRE ---------- */
.about { background: linear-gradient(180deg, transparent, var(--bg-2) 20%, var(--bg-2) 80%, transparent); }
.about-grid { display: grid; gap: 3rem; align-items: center; }
.about-photo { position: relative; max-width: 420px; justify-self: center; width: 100%; }
.about-frame {
  aspect-ratio: 4 / 5; border-radius: 28px; overflow: hidden; background: var(--accent);
  clip-path: polygon(0 8%, 8% 0, 100% 0, 100% 92%, 92% 100%, 0 100%);
}
.about-frame img { width: 100%; height: 100%; object-fit: cover; mix-blend-mode: normal; }
.about-tag { position: absolute; padding: .5rem 1rem; border-radius: 999px; font-weight: 700; font-size: .85rem; background: var(--bg); border: 1px solid var(--line); transform: rotate(-6deg); }
.about-tag.t1 { left: -4%; bottom: 14%; }
.about-tag.t2 { right: -4%; bottom: 4%; background: var(--text); color: var(--bg); transform: rotate(5deg); }
.about-text { display: grid; gap: 1rem; color: var(--muted); margin: 1.4rem 0 2rem; max-width: 58ch; }
.info-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 210px), 1fr)); gap: .8rem; }
.info { display: flex; align-items: center; gap: .85rem; padding: .9rem 1rem; border-radius: 14px; background: var(--surface); border: 1px solid var(--line); }
.info-ico { flex: none; width: 42px; height: 42px; border-radius: 12px; display: grid; place-items: center; background: rgba(255,122,26,.12); color: var(--accent); }
.info-ico svg { width: 20px; height: 20px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.info small { display: block; color: var(--muted); font-size: .76rem; }
.info strong { font-size: .95rem; }

/* ---------- STACK ---------- */
.stack { display: flex; flex-wrap: wrap; justify-content: center; gap: .7rem; margin-top: 1.4rem; }
.stack span {
  font: 600 .95rem var(--f-display); padding: .7rem 1.2rem; border-radius: 14px;
  background: var(--surface); border: 1px solid var(--line); transition: transform .25s var(--ease), border-color .25s, color .25s;
}
.stack span:hover { transform: translateY(-4px) rotate(-2deg); border-color: var(--accent); color: var(--accent); }

/* ---------- PROCESSO ---------- */
.steps { display: grid; gap: 1rem; grid-template-columns: repeat(auto-fit, minmax(min(100%, 240px), 1fr)); counter-reset: s; }
.step { position: relative; padding: 1.6rem 1.4rem; border-radius: var(--r); background: var(--surface); border: 1px solid var(--line); overflow: hidden; }
.step::before {
  counter-increment: s; content: "0" counter(s);
  font: 800 3.6rem/1 var(--f-display); letter-spacing: -.05em;
  color: transparent; -webkit-text-stroke: 1.5px var(--accent); opacity: .9; display: block; margin-bottom: 1rem;
}
.step h3 { font: 700 1.2rem var(--f-display); margin-bottom: .4rem; }
.step p { color: var(--muted); font-size: .94rem; }
.step::after { content: ""; position: absolute; left: 0; bottom: 0; height: 3px; width: 0; background: var(--accent); transition: width .6s var(--ease); }
.step:hover::after { width: 100%; }

/* ---------- CONTATO ---------- */
.contact {
  position: relative; overflow: hidden; display: grid; gap: 2.5rem;
  padding: clamp(1.6rem, 5vw, 3.5rem); border-radius: 32px;
  background: var(--surface); border: 1px solid var(--line);
}
.contact-glow { position: absolute; width: 520px; height: 520px; left: -160px; bottom: -260px; background: radial-gradient(closest-side, var(--glow), transparent); pointer-events: none; }
.contact-info { position: relative; display: grid; gap: 1rem; align-content: start; }
.contact-links { display: grid; gap: .6rem; margin-top: 1rem; }
.contact-link {
  display: flex; align-items: center; gap: .9rem; padding: .8rem 1rem; border-radius: 14px;
  border: 1px solid var(--line); background: var(--bg-2); transition: border-color .2s, transform .2s; cursor: pointer;
  font: inherit; color: inherit; text-align: left; width: 100%;
}
.contact-link:hover { border-color: var(--accent); transform: translateX(4px); }
.contact-link .info-ico svg { fill: currentColor; stroke: none; }
.contact-link small { display: block; color: var(--muted); font-size: .76rem; }
.contact-link strong { font-size: .95rem; word-break: break-all; }
.contact-link .go { margin-left: auto; color: var(--muted); }

.form { position: relative; display: grid; gap: 1rem; }
.field { display: grid; gap: .4rem; }
.field label { font-size: .85rem; font-weight: 700; }
.field input, .field select, .field textarea {
  width: 100%; padding: .9rem 1rem; border-radius: 12px; border: 1px solid var(--line);
  background: var(--bg-2); color: var(--text); font: 500 1rem var(--f-body);
  transition: border-color .2s, box-shadow .2s;
}
.field textarea { resize: vertical; min-height: 110px; }
.field input:focus, .field select:focus, .field textarea:focus { outline: none; border-color: var(--accent); box-shadow: 0 0 0 4px rgba(255,122,26,.15); }
.field ::placeholder { color: #66655f; }
.hp { position: absolute; left: -9999px; }

/* ---------- FOOTER ---------- */
.footer { border-top: 1px solid var(--line); padding: 3rem 0 2rem; margin-top: 2rem; }
.footer-inner { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 1.2rem; }
.footer-bottom { display: flex; flex-wrap: wrap; justify-content: space-between; gap: .5rem; margin-top: 2rem; padding-top: 1.4rem; border-top: 1px solid var(--line); color: var(--muted); font-size: .82rem; }

.toast {
  position: fixed; left: 50%; bottom: 24px; z-index: 120; transform: translate(-50%, 140%);
  background: var(--text); color: var(--bg); padding: .8rem 1.2rem; border-radius: 12px; font-weight: 700;
  transition: transform .35s var(--ease), visibility .35s; visibility: hidden;
}
.toast.show { transform: translate(-50%, 0); visibility: visible; }

/* ---------- EFEITOS ---------- */
.cursor-glow {
  position: fixed; left: 0; top: 0; width: 420px; height: 420px; margin: -210px 0 0 -210px;
  border-radius: 50%; pointer-events: none; z-index: 0; opacity: 0;
  background: radial-gradient(closest-side, rgba(255,122,26,.09), transparent);
  transition: opacity .4s; will-change: transform;
}
.has-pointer .cursor-glow { opacity: 1; }
main, .footer { position: relative; z-index: 1; }

.reveal, .reveal-up { opacity: 0; transform: translateY(28px); transition: opacity .8s var(--ease), transform .8s var(--ease); transition-delay: var(--d, 0ms); }
.reveal.in, .reveal-up.in { opacity: 1; transform: none; }
.no-js .reveal, .no-js .reveal-up { opacity: 1; transform: none; }

/* ---------- RESPONSIVO ---------- */
@media (min-width: 760px) {
  .featured .project { grid-template-columns: 1.25fr 1fr; }
  .featured .project:nth-child(even) { grid-template-columns: 1fr 1.25fr; }
  .featured .project:nth-child(even) .project-media { order: 2; }
  .project-media { aspect-ratio: auto; min-height: 340px; }
  .project-body { justify-content: center; padding: 2.4rem; }
  .contact { grid-template-columns: 1fr 1.1fr; }
}
@media (min-width: 980px) {
  .nav-links, .nav-cta { display: flex; }
  .nav-cta { display: inline-flex; margin-left: .4rem; }
  .menu-btn { display: none; }
  .hero { padding: 150px 0 90px; min-height: 100svh; display: flex; align-items: center; }
  .hero-inner { grid-template-columns: 1.15fr .85fr; }
  .hero-code { display: block; }
  .about-grid { grid-template-columns: .8fr 1.2fr; gap: 4.5rem; }
}
@media (max-width: 480px) {
  .service-head { grid-template-columns: 34px 1fr 40px; gap: .7rem; padding: 1.1rem 1rem; }
  .service-body > div { padding: 0 1rem; }
  .badge-rotate { width: 92px; height: 92px; }
  .chip-a { left: -2%; } .chip-b { right: -2%; }
  .hero-cta .btn { flex: 1 1 100%; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; scroll-behavior: auto !important; }
  .reveal, .reveal-up { opacity: 1; transform: none; }
  .cursor-glow { display: none; }
}