:root {
  --bg: #111312;
  --bg-2: #191c1a;
  --line: #2c302b;
  --text: #eef0ea;
  --muted: #a9ada3;
  --accent: #c8f04a;
  --accent-text: #c8f04a;
  --ink: #111312;
  --on-ink: #eef0ea;
  --top-bg: rgb(17 19 18 / .86);
  --glow: rgb(200 240 74 / .11);
  --grid: rgb(238 240 234 / .055);
  --halo: rgb(17 19 18 / .86);
  --frame: #3a3e38;
  --bar: #262a25;
  --dot: #5a5f57;
  --track-off: #3a3e38;
  --menu-shadow: rgb(0 0 0 / .45);
  --radius: 10px;
  color-scheme: dark;
}

[data-theme="light"] {
  --bg: #f5f6f0;
  --bg-2: #ffffff;
  --line: #d9dcd2;
  --text: #181b19;
  --muted: #565b53;
  --accent-text: #4f6b00;
  --top-bg: rgb(245 246 240 / .88);
  --glow: rgb(122 160 20 / .18);
  --grid: rgb(24 27 25 / .07);
  --halo: rgb(245 246 240 / .9);
  --frame: #c9ccc2;
  --bar: #e7e9e1;
  --dot: #9a9e94;
  --track-off: #c9ccc2;
  --menu-shadow: rgb(24 27 25 / .16);
  color-scheme: light;
}

*, *::before, *::after { box-sizing: border-box; }

html { scroll-behavior: smooth; scroll-padding-top: 84px; }

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: "Space Grotesk", system-ui, sans-serif;
  font-size: 17px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

h1, h2, h3, p, ul { margin: 0; }
ul { padding: 0; list-style: none; }
img { display: block; max-width: 100%; height: auto; }
a { color: inherit; text-decoration: none; }

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

.wrap { width: min(1180px, 100% - 48px); margin-inline: auto; }

.skip {
  position: absolute;
  left: 16px;
  top: -60px;
  z-index: 30;
  padding: 10px 14px;
  background: var(--accent);
  color: var(--ink);
  border-radius: 6px;
}
.skip:focus { top: 12px; }

/* Topo */
.top {
  position: sticky;
  top: 0;
  z-index: 20;
  background: var(--top-bg);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--line);
}
.top-in { display: flex; align-items: center; justify-content: space-between; min-height: 68px; }
.logo { color: var(--accent-text); font-weight: 700; font-size: 18px; }
.menu { display: flex; align-items: center; gap: 32px; font-size: 15px; color: var(--muted); }
.menu a { transition: color .15s; }
.menu a:hover { color: var(--text); }
.controls { display: flex; align-items: center; gap: 18px; margin-left: 8px; }
.lang { position: relative; }
.lang-btn, .lang-list button, .theme-switch {
  background: none;
  border: 0;
  color: inherit;
  font: inherit;
  cursor: pointer;
}
.lang-btn { display: flex; align-items: center; gap: 7px; padding: 6px 2px; color: var(--text); font-weight: 500; }
.flag { flex: none; border-radius: 2px; }
.chevron { color: var(--accent-text); transition: transform .15s; }
.lang-btn[aria-expanded="true"] .chevron { transform: rotate(180deg); }
.lang-list {
  position: absolute;
  top: calc(100% + 10px);
  right: 0;
  z-index: 25;
  width: 262px;
  padding: 6px;
  background: var(--bg-2);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: 0 16px 36px var(--menu-shadow);
}
.lang-list[hidden] { display: none; }
.lang-list button {
  display: flex;
  align-items: center;
  gap: 9px;
  width: 100%;
  padding: 9px 10px;
  border-radius: 6px;
  color: var(--muted);
  font-size: 14px;
  text-align: left;
  transition: background .15s, color .15s;
}
.lang-list button:hover { background: var(--line); color: var(--text); }
.lang-list b { color: var(--text); font-weight: 700; }
.lang-list [aria-current="true"] { color: var(--text); box-shadow: inset 2px 0 var(--accent-text); }
.theme-switch { display: flex; align-items: center; gap: 7px; padding: 4px 0; }
.theme-icon { color: var(--muted); }
.track {
  position: relative;
  width: 40px;
  height: 22px;
  background: var(--accent);
  border-radius: 99px;
  transition: background .15s;
}
.knob {
  position: absolute;
  top: 3px;
  left: 21px;
  width: 16px;
  height: 16px;
  background: var(--ink);
  border-radius: 50%;
  transition: left .15s;
}
[data-theme="light"] .track { background: var(--track-off); }
[data-theme="light"] .knob { left: 3px; background: #fff; }
.moon { color: var(--accent-text); }
[data-theme="light"] .moon { color: var(--muted); }
[data-theme="light"] .sun { color: var(--accent-text); }
.menu-btn {
  display: none;
  padding: 8px 14px;
  background: none;
  border: 1px solid var(--line);
  border-radius: 6px;
  color: var(--text);
  font: inherit;
  font-size: 15px;
  cursor: pointer;
}

/* Hero */
.hero {
  position: relative;
  overflow: hidden;
  isolation: isolate;
  background: radial-gradient(ellipse 75% 55% at 50% 0%, var(--glow), transparent 72%);
}
.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -2;
  background-image:
    linear-gradient(var(--grid) 1px, transparent 1px),
    linear-gradient(90deg, var(--grid) 1px, transparent 1px);
  background-size: 56px 56px;
  -webkit-mask-image: radial-gradient(ellipse 90% 85% at 50% 42%, #000 25%, transparent 100%);
  mask-image: radial-gradient(ellipse 90% 85% at 50% 42%, #000 25%, transparent 100%);
}
.hero::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background: radial-gradient(ellipse 58% 46% at 50% 50%, var(--halo) 35%, transparent 100%);
  pointer-events: none;
}
.hero-net {
  position: absolute;
  inset: 0;
  z-index: -2;
  width: 100%;
  height: 100%;
}
.hero-in {
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  min-height: calc(100svh - 69px);
  padding-block: 72px;
  text-align: center;
}
.hero-name { color: var(--accent-text); font-size: 20px; font-weight: 700; }
.hero-role { margin-top: 2px; font-size: 17px; font-weight: 500; }
h1 {
  margin-top: 14px;
  font-size: clamp(38px, 6vw, 76px);
  font-weight: 700;
  line-height: 1.05;
  letter-spacing: -.025em;
  text-wrap: balance;
}
.hero-sub { max-width: 34em; margin: 22px auto 0; color: var(--muted); font-size: 19px; }

.btns { display: flex; flex-wrap: wrap; justify-content: center; gap: 12px; margin-top: 32px; }
.btn {
  padding: 13px 22px;
  border-radius: 7px;
  font-weight: 500;
  font-size: 16px;
  transition: transform .15s, background .15s, border-color .15s, color .15s;
}
.btn:hover { transform: translateY(-2px); }
.btn-main { background: var(--accent); color: var(--ink); font-weight: 700; }
.btn-line { border: 1px solid var(--accent-text); color: var(--accent-text); }
.btn-line:hover { background: var(--accent); border-color: var(--accent); color: var(--ink); }

.shot {
  display: block;
  overflow: hidden;
  background: var(--bg-2);
  border: 1px solid var(--frame);
  border-radius: var(--radius);
}
.bar { display: block; height: 18px; background: var(--bar); border-bottom: 1px solid var(--frame); }
.bar::before {
  content: "";
  display: block;
  width: 6px;
  height: 6px;
  margin: 5px 0 0 9px;
  border-radius: 50%;
  background: var(--dot);
  box-shadow: 11px 0 var(--dot), 22px 0 var(--dot);
}

/* Seções */
.section { padding-block: 104px; }
.section-line { border-top: 1px solid var(--line); }
h2 {
  font-size: clamp(32px, 4vw, 48px);
  font-weight: 700;
  line-height: 1.1;
  letter-spacing: -.02em;
}
.lead { max-width: 36em; margin-top: 14px; color: var(--muted); font-size: 19px; }

/* Portfólio */
.work {
  display: grid;
  grid-template-columns: 1.35fr 1fr;
  gap: 56px;
  align-items: center;
  margin-top: 72px;
}
.work:nth-of-type(even) { grid-template-columns: 1fr 1.35fr; }
.work:nth-of-type(even) .shot { order: 2; }
.shot { transition: border-color .2s; }
a.shot:hover { border-color: var(--accent-text); }
.work-kind { color: var(--muted); font-size: 15px; }
.work h3 {
  margin-top: 8px;
  font-size: clamp(25px, 2.6vw, 32px);
  font-weight: 700;
  line-height: 1.15;
  letter-spacing: -.015em;
}
.work-text > p:not(.work-kind):not(.more-note) { margin-top: 14px; }
.chips { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 20px; }
.chips li {
  padding: 4px 11px;
  border: 1px solid var(--line);
  border-radius: 99px;
  color: var(--muted);
  font-size: 14px;
}
.more {
  display: inline-block;
  margin-top: 24px;
  color: var(--accent-text);
  font-weight: 500;
  border-bottom: 1px solid transparent;
  transition: border-color .15s;
}
.more:hover { border-color: var(--accent-text); }
.more-note { margin-top: 24px; color: var(--muted); font-size: 15px; }

/* Serviços e Sobre */
.split { display: grid; grid-template-columns: 1fr 2fr; gap: 56px; }
.services li { padding-block: 26px; border-top: 1px solid var(--line); }
.services li:first-child { padding-top: 0; border-top: 0; }
.services h3 { font-size: 22px; font-weight: 500; }
.services p { margin-top: 4px; color: var(--muted); }

.about-big { font-size: clamp(23px, 2.6vw, 31px); font-weight: 500; line-height: 1.28; letter-spacing: -.01em; }
.about p + p { margin-top: 18px; color: var(--muted); }

/* Contato */
.contact { padding-block: 104px; background: var(--accent); color: var(--ink); }
.contact h2 { max-width: 15em; font-size: clamp(36px, 5.6vw, 72px); line-height: 1.04; text-wrap: balance; }
.contact p { margin-top: 18px; font-size: 19px; }
.contact-links { display: flex; flex-wrap: wrap; align-items: center; gap: 16px 28px; margin-top: 34px; }
.contact-btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 14px 24px;
  background: var(--ink);
  color: var(--on-ink);
  border-radius: 7px;
  font-weight: 500;
  transition: transform .15s;
}
.contact-btn:hover { transform: translateY(-2px); }
.contact-mail { font-weight: 500; overflow-wrap: anywhere; border-bottom: 2px solid var(--ink); }
.contact :focus-visible { outline-color: var(--ink); }

.foot { padding-block: 26px; color: var(--muted); font-size: 14px; }

.wpp-float {
  position: fixed;
  right: 22px;
  bottom: 22px;
  z-index: 15;
  display: grid;
  place-items: center;
  width: 58px;
  height: 58px;
  border-radius: 50%;
  background: #25d366;
  color: #08130b;
  box-shadow: 0 8px 24px rgb(0 0 0 / .4);
  transition: transform .15s;
}
.wpp-float:hover { transform: scale(1.07); }

/* Entrada suave ao rolar */
.js .reveal { opacity: 0; transform: translateY(18px); transition: opacity .6s, transform .6s; }
.js .reveal.in { opacity: 1; transform: none; }

@media (max-width: 900px) {
  body { font-size: 16px; }
  .hero-in { padding-block: 56px; }
  .hero-sub, .lead { font-size: 17px; }
  .section, .contact { padding-block: 72px; }
  .work, .work:nth-of-type(even) { grid-template-columns: 1fr; gap: 24px; margin-top: 56px; }
  .work:nth-of-type(even) .shot { order: 0; }
  .split { grid-template-columns: 1fr; gap: 32px; }
  .contact p { font-size: 17px; }
  .menu-btn { display: block; }
  .menu {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    padding: 6px 24px 14px;
    background: var(--bg);
    border-bottom: 1px solid var(--line);
    color: var(--text);
  }
  .menu.open { display: flex; }
  .menu a { padding-block: 12px; }
  .controls {
    flex-wrap: wrap;
    justify-content: space-between;
    margin: 8px 0 0;
    padding-top: 14px;
    border-top: 1px solid var(--line);
  }
  .lang { flex: 1 1 auto; }
  .lang-list { position: static; width: 100%; margin-top: 8px; box-shadow: none; }
}

@media (max-width: 640px) {
  .wpp-float { right: 16px; bottom: 16px; width: 54px; height: 54px; }
  .foot { padding-bottom: 86px; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { transition: none !important; }
  .js .reveal { opacity: 1; transform: none; }
}
