/* ==========================================================================
   Alex Santos (alexlivre) — Folha de estilo
   Princípios: dark mode com propósito · tipografia contrastante · bento assimétrico
   ========================================================================== */

/* ---------- Fontes self-hosted (JetBrains Mono, compartilhada com a home) ---------- */
@font-face {
  font-family: 'JetBrains Mono';
  font-style: normal;
  font-weight: 400;
  src: url('/fonts/JetBrainsMono-Regular.woff2') format('woff2');
  font-display: optional;
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: 'JetBrains Mono';
  font-style: normal;
  font-weight: 500;
  src: url('/fonts/JetBrainsMono-Medium.woff2') format('woff2');
  font-display: optional;
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: 'JetBrains Mono';
  font-style: normal;
  font-weight: 700;
  src: url('/fonts/JetBrainsMono-Bold.woff2') format('woff2');
  font-display: optional;
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

/* ---------- Tokens ---------- */
:root {
  /* Cores — sem purple-to-blue, sem cream/beige, sem neon genérico */
  --bg-0: #0B0D11;
  --bg-1: #14171D;
  --bg-2: #1C2029;
  --bg-3: #262B36;
  --border: #2A2F3A;
  --border-strong: #3A4150;

  --text-0: #ECEDEF;
  --text-1: #9CA0AA;
  --text-2: #5C616B;
  --text-3: #3E424C;

  --amber: #FFB432;
  --amber-dim: #B07E1F;
  --petrol: #4ECDC4;
  --petrol-dim: #2A8A82;
  --green: #7FD962;
  --red: #E84C5A;

  /* Tipografia */
  --font-display: "Instrument Serif", "Iowan Old Style", "Apple Garamond", Georgia, serif;
  --font-body: "Manrope", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  --font-mono: "JetBrains Mono", ui-monospace, "SF Mono", Menlo, Consolas, monospace;

  /* Espaçamento — múltiplos de 4px com ritmo */
  --s-1: 4px;
  --s-2: 8px;
  --s-3: 12px;
  --s-4: 16px;
  --s-5: 24px;
  --s-6: 32px;
  --s-7: 48px;
  --s-8: 64px;
  --s-9: 96px;
  --s-10: 128px;

  /* Outros */
  --radius-s: 6px;
  --radius-m: 10px;
  --radius-l: 16px;
  --maxw: 1240px;
  --nav-h: 64px;
}

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

html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }

body {
  margin: 0;
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.6;
  color: var(--text-0);
  background: var(--bg-0);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  font-feature-settings: "ss01", "cv11";
  overflow-x: hidden;
}

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

a {
  color: inherit;
  text-decoration: none;
  text-underline-offset: 3px;
  transition: color 160ms ease-out;
}

button, input { font: inherit; }

/* ---------- Skip link ---------- */
.skip-link {
  position: absolute;
  left: -9999px;
  top: 8px;
  background: var(--amber);
  color: var(--bg-0);
  padding: var(--s-2) var(--s-4);
  border-radius: var(--radius-s);
  font-weight: 700;
  z-index: 999;
}
.skip-link:focus { left: 8px; }

/* ---------- Focus visível ---------- */
:focus-visible {
  outline: 2px solid var(--amber);
  outline-offset: 3px;
  border-radius: 3px;
}

/* ---------- Nav ---------- */
.nav {
  position: sticky;
  top: 0;
  z-index: 50;
  display: flex;
  align-items: center;
  gap: var(--s-6);
  height: var(--nav-h);
  padding: 0 var(--s-6);
  background: color-mix(in srgb, var(--bg-0) 88%, transparent);
  backdrop-filter: saturate(180%) blur(10px);
  -webkit-backdrop-filter: saturate(180%) blur(10px);
  border-bottom: 1px solid var(--border);
}

.nav__logo {
  font-family: var(--font-mono);
  font-size: 14px;
  font-weight: 500;
  letter-spacing: -0.01em;
  display: inline-flex;
  align-items: baseline;
  gap: 1px;
}
.nav__logo-prompt { color: var(--green); }
.nav__logo-sep { color: var(--text-2); }
.nav__logo-path { color: var(--text-0); }
.nav__logo-cursor {
  color: var(--amber);
  margin-left: 6px;
  animation: blink 1.1s steps(2, end) infinite;
}

@keyframes blink {
  to { opacity: 0; }
}

.nav__links {
  display: flex;
  gap: var(--s-6);
  margin-left: auto;
  font-size: 14px;
  color: var(--text-1);
}
.nav__links a {
  position: relative;
  padding: 6px 0;
}
.nav__links a:hover { color: var(--text-0); }
.nav__links a::after {
  content: "";
  position: absolute;
  left: 0; right: 100%;
  bottom: 2px;
  height: 1px;
  background: var(--amber);
  transition: right 200ms ease-out;
}
.nav__links a:hover::after { right: 0; }

.nav__cta {
  font-family: var(--font-mono);
  font-size: 13px;
  font-weight: 500;
  padding: 8px 14px;
  border: 1px solid var(--border-strong);
  border-radius: var(--radius-s);
  color: var(--text-0);
  transition: transform 160ms ease-out, border-color 160ms ease-out, background 160ms ease-out;
}
.nav__cta:hover {
  border-color: var(--amber);
  background: color-mix(in srgb, var(--amber) 10%, transparent);
  transform: translateY(-1px);
}

/* ---------- Hero ---------- */
.hero {
  position: relative;
  padding: var(--s-9) var(--s-6) var(--s-10);
  border-bottom: 1px solid var(--border);
  overflow: hidden;
}

.hero::before {
  /* grade sutil para dar textura sem ser decoração genérica */
  content: "";
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(to right, var(--border) 1px, transparent 1px),
    linear-gradient(to bottom, var(--border) 1px, transparent 1px);
  background-size: 64px 64px;
  background-position: -1px -1px;
  opacity: 0.18;
  mask-image: radial-gradient(ellipse 80% 60% at 50% 30%, black 30%, transparent 80%);
  -webkit-mask-image: radial-gradient(ellipse 80% 60% at 50% 30%, black 30%, transparent 80%);
  pointer-events: none;
}

.hero__inner {
  position: relative;
  max-width: var(--maxw);
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1.15fr 1fr;
  gap: var(--s-8);
  align-items: center;
}

@media (max-width: 900px) {
  .hero__inner {
    grid-template-columns: 1fr;
    gap: var(--s-7);
  }
}

.hero__eyebrow {
  display: inline-flex;
  align-items: center;
  gap: var(--s-2);
  font-family: var(--font-mono);
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--text-1);
  margin: 0 0 var(--s-5);
  padding: 6px 12px;
  border: 1px solid var(--border);
  border-radius: 999px;
  background: var(--bg-1);
}

.dot {
  display: inline-block;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  flex-shrink: 0;
}
.dot--green { background: var(--green); box-shadow: 0 0 8px color-mix(in srgb, var(--green) 60%, transparent); }
.dot--amber { background: var(--amber); }
.dot--petrol { background: var(--petrol); }

.hero__title {
  font-family: var(--font-display);
  font-weight: 400;
  font-size: clamp(40px, 6vw, 72px);
  line-height: 1.05;
  letter-spacing: -0.02em;
  margin: 0 0 var(--s-5);
  color: var(--text-0);
}
.hero__title em {
  font-style: italic;
  color: var(--amber);
}

.hero__sub {
  font-size: clamp(16px, 1.4vw, 18px);
  line-height: 1.6;
  color: var(--text-1);
  max-width: 56ch;
  margin: 0 0 var(--s-6);
}

.hero__ctas {
  display: flex;
  gap: var(--s-3);
  flex-wrap: wrap;
  margin-bottom: var(--s-7);
}

.btn {
  display: inline-flex;
  align-items: center;
  gap: var(--s-2);
  padding: 14px 22px;
  font-size: 15px;
  font-weight: 600;
  border-radius: var(--radius-s);
  transition: transform 180ms ease-out, background 180ms ease-out, border-color 180ms ease-out, color 180ms ease-out;
  will-change: transform;
}
.btn--primary {
  background: var(--amber);
  color: var(--bg-0);
  border: 1px solid var(--amber);
}
.btn--primary:hover { transform: translateY(-1px); background: #FFC04D; border-color: #FFC04D; }
.btn--ghost {
  background: transparent;
  color: var(--text-0);
  border: 1px solid var(--border-strong);
}
.btn--ghost:hover { border-color: var(--text-0); transform: translateY(-1px); }

.hero__meta {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  gap: var(--s-6);
  flex-wrap: wrap;
  font-family: var(--font-mono);
  font-size: 13px;
  color: var(--text-2);
  border-top: 1px solid var(--border);
  padding-top: var(--s-5);
}
.hero__meta strong {
  color: var(--text-0);
  font-weight: 700;
  margin-right: 4px;
}

/* ---------- Terminal no hero ---------- */
.terminal {
  background: var(--bg-1);
  border: 1px solid var(--border);
  border-radius: var(--radius-m);
  overflow: hidden;
  box-shadow: 0 20px 60px -20px rgba(0,0,0,0.6);
}
.terminal__chrome {
  display: flex;
  align-items: center;
  gap: var(--s-2);
  padding: 10px 14px;
  background: var(--bg-2);
  border-bottom: 1px solid var(--border);
}
.terminal__dot {
  width: 11px;
  height: 11px;
  border-radius: 50%;
  background: var(--bg-3);
}
.terminal__dot:nth-child(1) { background: #FF5F57; }
.terminal__dot:nth-child(2) { background: #FEBC2E; }
.terminal__dot:nth-child(3) { background: #28C840; }
.terminal__title {
  font-family: var(--font-mono);
  font-size: 12px;
  color: var(--text-2);
  margin-left: var(--s-3);
}
.terminal__body {
  font-family: var(--font-mono);
  font-size: 13px;
  line-height: 1.65;
  padding: var(--s-5);
  margin: 0;
  color: var(--text-0);
  min-height: 320px;
  white-space: pre-wrap;
  word-break: break-word;
}
.terminal__caret {
  display: inline-block;
  width: 8px;
  height: 1.2em;
  background: var(--amber);
  vertical-align: text-bottom;
  margin-left: 2px;
  animation: blink 1s steps(2, end) infinite;
}

/* syntax highlight rudimentar */
.tok-cmd { color: var(--green); }
.tok-str { color: var(--petrol); }
.tok-com { color: var(--text-2); font-style: italic; }
.tok-key { color: var(--amber); }
.tok-fn { color: #C792EA; }
.tok-num { color: #F78C6C; }

/* ---------- Section base ---------- */
.section {
  max-width: var(--maxw);
  margin: 0 auto;
  padding: var(--s-10) var(--s-6);
  border-bottom: 1px solid var(--border);
}

.section__head {
  display: grid;
  grid-template-columns: auto 1fr;
  column-gap: var(--s-5);
  row-gap: var(--s-2);
  align-items: baseline;
  margin-bottom: var(--s-8);
  max-width: 760px;
}
.section__num {
  font-family: var(--font-mono);
  font-size: 14px;
  color: var(--amber);
  letter-spacing: 0.05em;
  grid-row: span 2;
  align-self: start;
  padding-top: 14px;
}
.section__title {
  font-family: var(--font-display);
  font-weight: 400;
  font-size: clamp(32px, 4vw, 48px);
  line-height: 1.1;
  letter-spacing: -0.015em;
  margin: 0;
  grid-column: 2;
}
.section__lead {
  font-size: 17px;
  color: var(--text-1);
  margin: 0;
  max-width: 60ch;
  grid-column: 2;
}

/* ---------- Bento (serviços) ---------- */
.bento {
  display: grid;
  grid-template-columns: repeat(8, 1fr);
  gap: var(--s-4);
}

@media (max-width: 1000px) {
  .bento { grid-template-columns: repeat(4, 1fr); }
}
@media (max-width: 700px) {
  .bento { grid-template-columns: 1fr; }
}

.bento__card {
  grid-column: span 2;
  padding: var(--s-6);
  background: var(--bg-1);
  border: 1px solid var(--border);
  border-radius: var(--radius-m);
  display: flex;
  flex-direction: column;
  gap: var(--s-3);
  transition: transform 200ms ease-out, border-color 200ms ease-out, background 200ms ease-out;
}
.bento__card--wide { grid-column: span 4; }

/* Card em destaque principal (conversão rápida): borda âmbar sutil */
.bento__card--featured {
  border-color: color-mix(in srgb, var(--amber) 35%, var(--border));
  background: linear-gradient(160deg, color-mix(in srgb, var(--amber) 4%, var(--bg-1)), var(--bg-1));
}
.bento__card--featured:hover {
  border-color: var(--amber);
}

.bento__card:hover {
  transform: translateY(-2px);
  border-color: var(--border-strong);
  background: var(--bg-2);
}

.bento__icon {
  font-family: var(--font-mono);
  font-size: 22px;
  color: var(--amber);
  width: 44px;
  height: 44px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 1px solid var(--border);
  border-radius: var(--radius-s);
  background: var(--bg-0);
}

.bento__title {
  font-family: var(--font-display);
  font-weight: 400;
  font-size: 26px;
  line-height: 1.15;
  margin: 0;
  color: var(--text-0);
}

.bento__body {
  margin: 0;
  font-size: 15px;
  color: var(--text-1);
  line-height: 1.6;
}
.bento__body strong { color: var(--text-0); font-weight: 600; }

.bento__price {
  margin: auto 0 0 0;
  padding-top: var(--s-3);
  border-top: 1px dashed var(--border);
  font-family: var(--font-mono);
  font-size: 12px;
  color: var(--amber);
  letter-spacing: 0.02em;
}

/* ---------- Processo ---------- */
.process {
  list-style: none;
  padding: 0;
  margin: 0;
  display: grid;
  gap: var(--s-5);
}

.process__step {
  display: grid;
  grid-template-columns: 56px 1fr;
  gap: var(--s-5);
  padding: var(--s-5) 0;
  border-top: 1px solid var(--border);
}
.process__step:last-child { border-bottom: 1px solid var(--border); }

.process__rail {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
}
.process__bullet {
  font-family: var(--font-mono);
  font-size: 13px;
  color: var(--amber);
  letter-spacing: 0.05em;
}
.process__line {
  width: 1px;
  flex: 1;
  background: var(--border);
}

.process__body h3 {
  font-family: var(--font-display);
  font-weight: 400;
  font-size: 26px;
  line-height: 1.2;
  margin: 0 0 var(--s-2);
  color: var(--text-0);
}
.process__body p {
  margin: 0;
  font-size: 16px;
  color: var(--text-1);
  max-width: 64ch;
}

/* ---------- Stack ---------- */
.stack {
  display: grid;
  grid-template-columns: 1.2fr 1fr;
  gap: var(--s-6);
}
@media (max-width: 800px) { .stack { grid-template-columns: 1fr; } }

.stack__col {
  padding: var(--s-6);
  background: var(--bg-1);
  border: 1px solid var(--border);
  border-radius: var(--radius-m);
}

.stack__heading {
  display: flex;
  align-items: center;
  gap: var(--s-2);
  font-family: var(--font-mono);
  font-size: 13px;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--text-1);
  margin: 0 0 var(--s-5);
}

.stack__list {
  margin: 0;
  display: grid;
  gap: var(--s-4);
}
.stack__list > div {
  display: grid;
  grid-template-columns: 180px 1fr;
  gap: var(--s-4);
  padding-bottom: var(--s-3);
  border-bottom: 1px dashed var(--border);
}
.stack__list > div:last-child { border-bottom: none; padding-bottom: 0; }

.stack__list dt {
  font-family: var(--font-mono);
  font-size: 13px;
  color: var(--text-2);
  margin: 0;
}
.stack__list dd {
  margin: 0;
  color: var(--text-0);
  font-size: 15px;
}

.stack__list--no {
  list-style: none;
  padding: 0;
}
.stack__list--no li {
  padding: var(--s-2) 0;
  border-bottom: 1px dashed var(--border);
  color: var(--text-1);
  font-size: 15px;
  display: flex;
  align-items: center;
  gap: var(--s-3);
}
.stack__list--no li::before {
  content: "×";
  color: var(--amber);
  font-family: var(--font-mono);
  font-weight: 700;
  width: 16px;
}
.stack__list--no li:last-child { border-bottom: none; }

@media (max-width: 600px) {
  .stack__list > div { grid-template-columns: 1fr; gap: 4px; }
}

/* ---------- Trabalhos ---------- */
.works {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  gap: var(--s-4);
}
@media (max-width: 1000px) { .works { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 600px) {
  .works { grid-template-columns: 1fr; }
}

.work {
  grid-column: span 2;
  min-width: 0;
  padding: var(--s-5);
  background: var(--bg-1);
  border: 1px solid var(--border);
  border-radius: var(--radius-m);
  display: flex;
  flex-direction: column;
  gap: var(--s-3);
  transition: transform 200ms ease-out, border-color 200ms ease-out;
}
.work:hover { transform: translateY(-2px); border-color: var(--border-strong); }

.work--feature {
  grid-column: span 3;
  background: linear-gradient(160deg, var(--bg-2), var(--bg-1));
}
@media (max-width: 600px) {
  .work, .work--feature { grid-column: 1 / -1; }
}

.work__head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}
.work__tag {
  color: var(--amber);
  padding: 4px 8px;
  border: 1px solid var(--border);
  border-radius: var(--radius-s);
}
.work__year { color: var(--text-2); }

.work__title {
  font-family: var(--font-mono);
  font-weight: 500;
  font-size: 19px;
  margin: 0;
  overflow-wrap: anywhere;
  color: var(--text-0);
}
.work--feature .work__title { font-size: 22px; }

.work__body {
  margin: 0;
  font-size: 14px;
  color: var(--text-1);
  line-height: 1.6;
}
.work--feature .work__body { font-size: 15px; }

.work__stack {
  margin: auto 0 0 0;
  padding-top: var(--s-3);
  border-top: 1px dashed var(--border);
  font-family: var(--font-mono);
  font-size: 12px;
  color: var(--text-2);
  letter-spacing: 0.02em;
}

.work__link {
  font-family: var(--font-mono);
  font-size: 13px;
  color: var(--amber);
  display: inline-flex;
  align-items: center;
  gap: 4px;
  align-self: flex-start;
  margin-top: var(--s-2);
}
.work__link:hover { color: var(--text-0); }

.works__more {
  margin: var(--s-7) 0 0 0;
  font-family: var(--font-mono);
  font-size: 13px;
  color: var(--text-2);
}
.works__more a {
  color: var(--amber);
  border-bottom: 1px dashed var(--amber);
}
.works__more a:hover { color: var(--text-0); border-bottom-color: var(--text-0); }

/* ---------- FAQ ---------- */
.faq {
  list-style: none;
  padding: 0;
  margin: 0;
  display: grid;
  gap: var(--s-3);
  max-width: 820px;
}

.faq__item {
  background: var(--bg-1);
  border: 1px solid var(--border);
  border-radius: var(--radius-m);
  transition: border-color 200ms ease-out;
}
.faq__item[open],
.faq__item:has(details[open]) {
  border-color: var(--border-strong);
}

.faq__item summary {
  list-style: none;
  cursor: pointer;
  padding: var(--s-5) var(--s-6);
  font-family: var(--font-display);
  font-weight: 400;
  font-size: 22px;
  line-height: 1.3;
  color: var(--text-0);
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: var(--s-4);
}
.faq__item summary::-webkit-details-marker { display: none; }
.faq__item summary::after {
  content: "+";
  font-family: var(--font-mono);
  font-size: 22px;
  color: var(--amber);
  transition: transform 200ms ease-out;
}
.faq__item details[open] summary::after { transform: rotate(45deg); }

.faq__item p {
  margin: 0;
  padding: 0 var(--s-6) var(--s-5);
  color: var(--text-1);
  font-size: 15px;
  line-height: 1.7;
  max-width: 64ch;
}
.faq__item p strong { color: var(--text-0); font-weight: 600; }

/* ---------- CTA / contato ---------- */
.contact {
  text-align: center;
  padding-top: var(--s-10);
  padding-bottom: var(--s-10);
  border-bottom: none;
}

.contact__title {
  font-family: var(--font-display);
  font-weight: 400;
  font-size: clamp(36px, 5vw, 64px);
  line-height: 1.05;
  margin: 0 0 var(--s-4);
  letter-spacing: -0.02em;
}
.contact__title em {
  font-style: italic;
  color: var(--amber);
}

.contact__sub {
  font-size: 17px;
  color: var(--text-1);
  margin: 0 auto var(--s-7);
  max-width: 50ch;
}

.contact__terminal {
  display: inline-flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 4px;
  padding: var(--s-5) var(--s-6);
  background: var(--bg-1);
  border: 1px solid var(--border);
  border-radius: var(--radius-m);
  font-family: var(--font-mono);
  font-size: 14px;
  text-align: left;
  margin-bottom: var(--s-7);
}
.contact__prompt { color: var(--green); margin-right: 8px; }
.contact__cmd { color: var(--text-0); }
.contact__output { color: var(--text-2); font-size: 12px; padding-left: 20px; }

.contact__channels {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: var(--s-4);
  max-width: 560px;
  margin: 0 auto;
}
@media (max-width: 700px) {
  .contact__channels { grid-template-columns: 1fr; }
}

.channel {
  padding: var(--s-5);
  background: var(--bg-1);
  border: 1px solid var(--border);
  border-radius: var(--radius-m);
  display: flex;
  flex-direction: column;
  gap: 4px;
  text-align: left;
  transition: transform 200ms ease-out, border-color 200ms ease-out, background 200ms ease-out;
}
.channel:hover {
  transform: translateY(-2px);
  border-color: var(--amber);
  background: var(--bg-2);
}
.channel__label {
  font-family: var(--font-display);
  font-weight: 400;
  font-size: 22px;
  color: var(--text-0);
}
.channel__hint {
  font-family: var(--font-mono);
  font-size: 12px;
  color: var(--text-2);
  letter-spacing: 0.02em;
}

/* ---------- Footer ---------- */
.footer {
  border-top: 1px solid var(--border);
  padding: var(--s-7) var(--s-6);
}
.footer__inner {
  max-width: var(--maxw);
  margin: 0 auto;
  display: flex;
  flex-wrap: wrap;
  gap: var(--s-4);
  justify-content: space-between;
  align-items: center;
  font-family: var(--font-mono);
  font-size: 12px;
  color: var(--text-2);
}
.footer__brand { margin: 0; }
.footer__logo { color: var(--green); margin-right: 4px; }
.footer__meta { margin: 0; }

/* ---------- Reveal on scroll ---------- */
/* Só esconde quando o JS sinalizou que está pronto — fallback gracioso. */
.js [data-reveal]:not(.is-visible) {
  opacity: 0;
  transform: translateY(12px);
}
[data-reveal] {
  transition: opacity 600ms ease-out, transform 600ms ease-out;
}
[data-reveal].is-visible {
  opacity: 1;
  transform: translateY(0);
}

/* stagger para filhos do bento */
.bento [data-reveal]:nth-child(2).is-visible { transition-delay: 60ms; }
.bento [data-reveal]:nth-child(3).is-visible { transition-delay: 120ms; }
.bento [data-reveal]:nth-child(4).is-visible { transition-delay: 180ms; }
.bento [data-reveal]:nth-child(5).is-visible { transition-delay: 240ms; }
.bento [data-reveal]:nth-child(6).is-visible { transition-delay: 300ms; }

.works [data-reveal]:nth-child(2).is-visible { transition-delay: 60ms; }
.works [data-reveal]:nth-child(3).is-visible { transition-delay: 120ms; }
.works [data-reveal]:nth-child(4).is-visible { transition-delay: 180ms; }
.works [data-reveal]:nth-child(5).is-visible { transition-delay: 240ms; }
.works [data-reveal]:nth-child(6).is-visible { transition-delay: 300ms; }
.works [data-reveal]:nth-child(7).is-visible { transition-delay: 360ms; }

/* ---------- Reduced motion ---------- */
@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }
  [data-reveal] { opacity: 1; transform: none; }
}

/* ---------- Responsividade fina ---------- */
@media (max-width: 600px) {
  .nav { padding: 0 var(--s-4); gap: var(--s-3); }
  .nav__links { display: none; }
  .hero { padding: var(--s-7) var(--s-4) var(--s-8); }
  .section { padding: var(--s-8) var(--s-4); }
  .section__head { grid-template-columns: 1fr; }
  .section__num { grid-row: auto; padding-top: 0; }
  .hero__meta { gap: var(--s-4); }
  .work__title { font-size: clamp(13px, 3.9vw, 16px); }
  .work--feature .work__title { font-size: clamp(13px, 4.2vw, 17px); }
}

/* Ajustes do bento precisam vir depois das regras base acima — mesma
   especificidade, entao valem pela ordem. */
@media (max-width: 1000px) {
  .bento__card--wide { grid-column: span 4; }
}
@media (max-width: 700px) {
  .bento__card,
  .bento__card--wide { grid-column: 1 / -1; }
}
