/* Endurecode: design tokens */
:root {
  --bg-primary: #090D16;
  --bg-surface: #111827;
  --bg-surface-2: #0D1320;
  --border-subtle: #1F2937;
  --border-strong: #334155;
  --accent-primary: #10B981;
  --accent-primary-hover: #34D399;
  --accent-secondary: #3B82F6;
  --text-primary: #F8FAFC;
  --text-secondary: #94A3B8;
  --on-accent: #052E1F;
  --gradient: linear-gradient(90deg, var(--accent-secondary), var(--accent-primary));

  --font-sans: "Plus Jakarta Sans", Inter, system-ui, -apple-system, "Segoe UI", sans-serif;
  --font-mono: "JetBrains Mono", ui-monospace, "SFMono-Regular", Consolas, monospace;

  --radius-sm: 8px;
  --radius: 14px;
  --radius-lg: 22px;
  --container: 1180px;
  --gutter: clamp(16px, 4vw, 32px);
  --section-y: clamp(72px, 11vw, 128px);
  --header-h: 72px;

  --ease-out: cubic-bezier(.22, 1, .36, 1);
  --dur-fast: 160ms;
  --dur: 260ms;
  --dur-slow: 600ms;

  color-scheme: dark;
}

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

html {
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--header-h) + 16px);
  -webkit-text-size-adjust: 100%;
}

body {
  margin: 0;
  background: var(--bg-primary);
  color: var(--text-primary);
  font-family: var(--font-sans);
  font-size: 1rem;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}

img, svg { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
ul, ol { margin: 0; padding: 0; list-style: none; }
h1, h2, h3, p, dl, dd, figure { margin: 0; }
address { font-style: normal; }

h1, h2, h3 { line-height: 1.12; letter-spacing: -0.025em; text-wrap: balance; }
p { text-wrap: pretty; }

.mono { font-family: var(--font-mono); font-size: .75rem; letter-spacing: .02em; }

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

.skip-link {
  position: absolute; left: 16px; top: -60px; z-index: 100;
  padding: 10px 16px; border-radius: var(--radius-sm);
  background: var(--accent-primary); color: var(--on-accent); font-weight: 700;
  transition: top var(--dur) var(--ease-out);
}
.skip-link:focus { top: 16px; }

.container {
  width: 100%;
  max-width: calc(var(--container) + var(--gutter) * 2);
  margin-inline: auto;
  padding-inline: var(--gutter);
}

.grad-text {
  background: var(--gradient);
  -webkit-background-clip: text; background-clip: text;
  color: transparent;
}

/* Grade estrutural de 1px */
.grid-bg {
  position: absolute; inset: 0; pointer-events: none;
  background-image:
    linear-gradient(to right, rgba(148, 163, 184, .07) 1px, transparent 1px),
    linear-gradient(to bottom, rgba(148, 163, 184, .07) 1px, transparent 1px);
  background-size: 56px 56px;
  -webkit-mask-image: radial-gradient(ellipse 80% 70% at 50% 30%, #000 30%, transparent 80%);
          mask-image: radial-gradient(ellipse 80% 70% at 50% 30%, #000 30%, transparent 80%);
}

/* Botões */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: .5rem;
  min-height: 48px; padding: 0 22px;
  border-radius: 999px; border: 1px solid transparent;
  font-weight: 600; font-size: .975rem; line-height: 1;
  cursor: pointer; white-space: nowrap;
  transition: background-color var(--dur-fast) ease, border-color var(--dur-fast) ease,
              color var(--dur-fast) ease, transform var(--dur-fast) ease, box-shadow var(--dur) ease;
}
.btn:active { transform: translateY(1px); }
.btn-primary {
  background: var(--accent-primary); color: var(--on-accent);
  box-shadow: 0 0 0 0 rgba(16, 185, 129, 0);
}
.btn-primary:hover { background: var(--accent-primary-hover); box-shadow: 0 8px 30px -8px rgba(16, 185, 129, .55); }
.btn-ghost { border-color: var(--border-strong); color: var(--text-primary); background: rgba(17, 24, 39, .4); }
.btn-ghost:hover { border-color: var(--text-secondary); background: var(--bg-surface); }
.btn-sm { min-height: 40px; padding: 0 18px; font-size: .9rem; }

/* Header */
.site-header {
  position: sticky; top: 0; z-index: 50;
  height: var(--header-h);
  background: rgba(9, 13, 22, .72);
  -webkit-backdrop-filter: blur(14px) saturate(140%);
          backdrop-filter: blur(14px) saturate(140%);
  border-bottom: 1px solid transparent;
  transition: border-color var(--dur) ease, background-color var(--dur) ease;
}
.site-header.is-scrolled { border-bottom-color: var(--border-subtle); background: rgba(9, 13, 22, .88); }
.header-inner { height: 100%; display: flex; align-items: center; justify-content: space-between; gap: 24px; }

.brand { display: inline-flex; align-items: center; gap: 10px; min-height: 44px; }
.brand img { width: 54px; height: auto; }
.wordmark { font-size: 1.3rem; letter-spacing: -0.02em; color: var(--text-secondary); font-weight: 400; }
.wordmark b { color: var(--text-primary); font-weight: 700; }

.nav { display: flex; align-items: center; gap: 28px; }
.nav ul { display: flex; gap: 4px; }
.nav ul a {
  display: inline-flex; align-items: center; min-height: 40px; padding: 0 12px;
  color: var(--text-secondary); font-size: .93rem; font-weight: 500; border-radius: 8px;
  transition: color var(--dur-fast) ease, background-color var(--dur-fast) ease;
}
.nav ul a:hover, .nav ul a[aria-current="true"] { color: var(--text-primary); background: rgba(31, 41, 55, .6); }

.nav-toggle {
  display: none; width: 44px; height: 44px; padding: 0; border: 1px solid var(--border-subtle);
  border-radius: 10px; background: transparent; cursor: pointer;
  flex-direction: column; align-items: center; justify-content: center; gap: 6px;
}
.nav-toggle span { display: block; width: 18px; height: 2px; background: var(--text-primary); border-radius: 2px; transition: transform var(--dur) var(--ease-out); }
.nav-toggle[aria-expanded="true"] span:first-child { transform: translateY(4px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] span:last-child { transform: translateY(-4px) rotate(-45deg); }

/* Hero */
.hero { position: relative; overflow: hidden; padding: clamp(48px, 9vw, 112px) 0 clamp(64px, 10vw, 120px); }
.hero-inner { position: relative; display: grid; grid-template-columns: 1.15fr .85fr; gap: clamp(32px, 5vw, 72px); align-items: center; }

.eyebrow {
  display: inline-flex; align-items: center; gap: 10px;
  padding: 6px 14px 6px 10px; margin-bottom: 28px;
  border: 1px solid var(--border-subtle); border-radius: 999px; background: rgba(17, 24, 39, .6);
  color: var(--text-secondary); font-family: var(--font-mono); font-size: .75rem;
}
.dot { width: 8px; height: 8px; border-radius: 50%; background: var(--accent-primary); box-shadow: 0 0 0 4px rgba(16, 185, 129, .18); }

.hero h1 { font-size: clamp(2.1rem, 5.2vw, 3.9rem); font-weight: 800; max-width: 17ch; }
.lead { margin-top: 24px; max-width: 56ch; color: var(--text-secondary); font-size: clamp(1.05rem, 1.6vw, 1.2rem); line-height: 1.65; }
.hero-ctas { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 36px; }

.hero-facts { display: grid; grid-template-columns: repeat(3, 1fr); gap: 0; margin-top: 56px; border-top: 1px solid var(--border-subtle); }
.hero-facts li { padding: 18px 16px 0 0; display: flex; flex-direction: column; gap: 4px; }
.hero-facts li + li { padding-left: 16px; border-left: 1px solid var(--border-subtle); }
.hero-facts .mono { color: var(--accent-primary); }
.hero-facts span:last-child { color: var(--text-secondary); font-size: .9rem; }

.hero-visual { position: relative; }
.hero-visual svg { width: 100%; height: auto; }
.svg-mono { font-family: var(--font-mono); font-size: 10px; letter-spacing: .12em; fill: #64748B; }
.svg-label { font-family: var(--font-sans); font-size: 13px; font-weight: 600; fill: var(--text-primary); }

.flow path { stroke-dasharray: 6 10; animation: flow 1.6s linear infinite; }
@keyframes flow { to { stroke-dashoffset: -32; } }
.core { transform-origin: 220px 210px; animation: pulse 3.2s var(--ease-out) infinite; }
@keyframes pulse { 0%, 100% { transform: scale(1); } 50% { transform: scale(1.04); } }

/* Seções */
.section { position: relative; padding: var(--section-y) 0; border-top: 1px solid var(--border-subtle); }
.section-alt { background: var(--bg-surface-2); }

.section-head { max-width: 720px; margin-bottom: clamp(40px, 6vw, 64px); }
.kicker { display: inline-flex; align-items: center; gap: 12px; margin-bottom: 18px; color: var(--accent-primary); font-weight: 600; font-size: .9rem; }
.kicker .mono { color: var(--text-secondary); padding: 3px 8px; border: 1px solid var(--border-subtle); border-radius: 6px; }
h2 { font-size: clamp(1.75rem, 3.6vw, 2.6rem); font-weight: 700; }
.section-lead { margin-top: 18px; color: var(--text-secondary); font-size: 1.075rem; max-width: 62ch; }
.section-lead strong { color: var(--text-primary); font-weight: 600; }

.card {
  position: relative;
  background: var(--bg-surface);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-lg);
  padding: clamp(24px, 3vw, 32px);
  transition: border-color var(--dur) ease, transform var(--dur) var(--ease-out);
}
.card::before {
  content: ""; position: absolute; inset: -1px; border-radius: inherit; padding: 1px;
  background: var(--gradient); opacity: 0; transition: opacity var(--dur) ease;
  -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
  -webkit-mask-composite: xor; mask-composite: exclude; pointer-events: none;
}
.card:hover::before { opacity: .8; }
.card:hover { transform: translateY(-2px); }
.card h3 { font-size: 1.3rem; font-weight: 700; }
.card p { color: var(--text-secondary); margin-top: 10px; }

/* Pilares */
.pillars { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.icon {
  width: 48px; height: 48px; margin-bottom: 22px; display: grid; place-items: center;
  border-radius: 12px; border: 1px solid var(--border-subtle);
  background: linear-gradient(135deg, rgba(59, 130, 246, .14), rgba(16, 185, 129, .14));
}
.icon svg { width: 22px; height: 22px; fill: none; stroke: var(--accent-primary); stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }

/* Serviços */
.services { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.service { display: flex; flex-direction: column; }
.tag { align-self: flex-start; margin-bottom: 20px; padding: 4px 10px; border-radius: 6px; background: rgba(59, 130, 246, .12); color: #93C5FD; }
.checklist { margin-top: 24px; padding-top: 20px; border-top: 1px solid var(--border-subtle); display: grid; gap: 12px; }
.checklist li { position: relative; padding-left: 28px; color: var(--text-primary); font-size: .95rem; }
.checklist li::before {
  content: ""; position: absolute; left: 0; top: .3em; width: 16px; height: 16px; border-radius: 4px;
  background: rgba(16, 185, 129, .14) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16' fill='none' stroke='%2310B981' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m4 8.5 2.5 2.5L12 5.5'/%3E%3C/svg%3E") center / 14px no-repeat;
}

/* Split */
.split { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(40px, 6vw, 96px); align-items: center; }

.steps-mini { display: grid; gap: 14px; }
.steps-mini li {
  display: grid; grid-template-columns: 44px 1fr; gap: 16px; align-items: start;
  padding: 22px; border: 1px solid var(--border-subtle); border-radius: var(--radius); background: var(--bg-surface);
}
.steps-mini .mono {
  width: 44px; height: 44px; display: grid; place-items: center; border-radius: 10px;
  background: var(--gradient); color: var(--bg-primary); font-weight: 600; font-size: .9rem;
}
.steps-mini strong { font-size: 1.05rem; }
.steps-mini p { margin-top: 4px; color: var(--text-secondary); font-size: .95rem; }

/* Tecnologias */
.tech-chips { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 28px; }
.tech-chips li {
  display: inline-flex; align-items: center; gap: 8px; min-height: 38px; padding: 0 14px;
  border: 1px solid var(--border-subtle); border-radius: 999px; background: var(--bg-surface);
  font-weight: 600; font-size: .92rem; color: var(--text-primary);
}
.tech-chips li::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: var(--accent-secondary); }
.tech-chips .chip-ai { border-color: rgba(16, 185, 129, .45); background: rgba(16, 185, 129, .1); }
.tech-chips .chip-ai::before { background: var(--accent-primary); }
.tech-note { margin-top: 18px; color: var(--accent-primary); font-weight: 600; }

/* Timeline */
.timeline { display: grid; grid-template-columns: repeat(4, 1fr); gap: 0; counter-reset: s; }
.timeline li { position: relative; padding: 28px 24px 0 0; border-top: 1px solid var(--border-strong); }
.timeline li::before {
  content: ""; position: absolute; top: -6px; left: 0; width: 11px; height: 11px; border-radius: 3px;
  transform: rotate(45deg); background: var(--bg-surface-2); border: 2px solid var(--accent-primary);
}
.timeline .step { display: block; color: var(--accent-primary); margin-bottom: 12px; }
.timeline h3 { font-size: 1.15rem; font-weight: 700; }
.timeline p { margin-top: 8px; color: var(--text-secondary); font-size: .95rem; }

/* Sobre */
.stats { display: grid; grid-template-columns: 1fr 1fr; border: 1px solid var(--border-subtle); border-radius: var(--radius-lg); overflow: hidden; }
.stats div { padding: 28px; background: var(--bg-surface); }
.stats div:nth-child(odd) { border-right: 1px solid var(--border-subtle); }
.stats div:nth-child(-n+2) { border-bottom: 1px solid var(--border-subtle); }
.stats dt { color: var(--accent-primary); text-transform: uppercase; letter-spacing: .1em; }
.stats dd { margin-top: 10px; font-weight: 600; font-size: 1.05rem; line-height: 1.4; }

/* CTA */
.cta-section { padding-top: clamp(48px, 8vw, 96px); }
.cta-box {
  position: relative; overflow: hidden; text-align: center;
  padding: clamp(48px, 8vw, 96px) clamp(20px, 5vw, 64px);
  border: 1px solid var(--border-subtle); border-radius: 28px;
  background:
    radial-gradient(60% 80% at 50% 0%, rgba(16, 185, 129, .16), transparent 70%),
    radial-gradient(50% 60% at 15% 100%, rgba(59, 130, 246, .14), transparent 70%),
    var(--bg-surface);
}
.cta-box > *:not(.grid-bg) { position: relative; }
.cta-box h2 { max-width: 20ch; margin-inline: auto; font-size: clamp(1.9rem, 4.2vw, 3rem); }
.cta-box .section-lead { margin-inline: auto; }
.cta-box .hero-ctas { justify-content: center; }
.cta-note { margin-top: 20px; color: var(--text-secondary); }

/* Contato com formulário */
.contact-box { display: grid; grid-template-columns: .9fr 1.1fr; gap: clamp(32px, 5vw, 64px); align-items: start; text-align: left; padding: clamp(28px, 5vw, 64px); }
.contact-box h2 { margin-inline: 0; max-width: 16ch; font-size: clamp(1.75rem, 3.4vw, 2.5rem); }
.contact-box .section-lead { margin-inline: 0; }
.contact-steps { margin-top: 32px; display: grid; gap: 14px; }
.contact-steps li { display: flex; align-items: baseline; gap: 12px; color: var(--text-primary); font-weight: 500; }
.contact-steps .mono { color: var(--accent-primary); }

.contact-form {
  padding: clamp(20px, 3vw, 32px); border-radius: var(--radius-lg);
  background: rgba(9, 13, 22, .7); border: 1px solid var(--border-subtle);
}
.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 18px 16px; }
.field { display: flex; flex-direction: column; gap: 8px; min-width: 0; }
.field-full { grid-column: 1 / -1; }
.field label { font-size: .9rem; font-weight: 600; color: var(--text-primary); }
.req { color: var(--accent-primary); }
.field input, .field select, .field textarea {
  width: 100%; min-height: 48px; padding: 12px 14px;
  font: inherit; font-size: 1rem; color: var(--text-primary);
  background: var(--bg-surface); border: 1px solid var(--border-strong); border-radius: 10px;
  transition: border-color var(--dur-fast) ease, box-shadow var(--dur-fast) ease;
}
.field textarea { resize: vertical; min-height: 128px; line-height: 1.5; }
.field select {
  appearance: none; cursor: pointer; padding-right: 40px;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16' fill='none' stroke='%2394A3B8' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m4 6 4 4 4-4'/%3E%3C/svg%3E");
  background-repeat: no-repeat; background-position: right 14px center; background-size: 16px;
}
.field input:hover, .field select:hover, .field textarea:hover { border-color: #475569; }
.field input:focus, .field select:focus, .field textarea:focus {
  outline: none; border-color: var(--accent-primary); box-shadow: 0 0 0 3px rgba(16, 185, 129, .25);
}
.field [aria-invalid="true"] { border-color: #F87171; }
.field [aria-invalid="true"]:focus { box-shadow: 0 0 0 3px rgba(248, 113, 113, .25); }
.field-hint { font-size: .85rem; color: var(--text-secondary); }
.field-error { font-size: .85rem; color: #FCA5A5; min-height: 0; }
.field-error:empty { display: none; }

.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }

.form-footer { display: flex; flex-wrap: wrap; align-items: center; gap: 14px 20px; margin-top: 24px; }
.form-privacy { color: var(--text-secondary); font-size: .85rem; }
.form-privacy a { color: var(--text-primary); text-decoration: underline; text-decoration-color: var(--border-strong); text-underline-offset: 3px; }
.form-privacy a:hover { color: var(--accent-primary); text-decoration-color: var(--accent-primary); }
.footer-policies { display: flex; flex-wrap: wrap; gap: 4px 20px; }
.footer-policies a { display: inline-flex; align-items: center; min-height: 36px; color: var(--text-secondary); transition: color var(--dur-fast) ease; }
.footer-policies a:hover { color: var(--accent-primary); }
.contact-form .btn { position: relative; }
.spinner {
  display: none; width: 18px; height: 18px; border-radius: 50%;
  border: 2px solid rgba(5, 46, 31, .35); border-top-color: var(--on-accent);
  animation: spin .8s linear infinite;
}
.contact-form.is-sending .spinner { display: inline-block; }
.contact-form.is-sending .btn { cursor: progress; opacity: .85; }
@keyframes spin { to { transform: rotate(360deg); } }

.form-status:empty { display: none; }
.form-status { margin-top: 20px; padding: 16px 18px; border-radius: 12px; border: 1px solid var(--border-subtle); font-size: .95rem; }
.form-status:focus { outline: none; }
.form-status.is-error { border-color: rgba(248, 113, 113, .45); background: rgba(248, 113, 113, .08); color: #FECACA; }

.form-success { display: flex; flex-direction: column; align-items: flex-start; gap: 14px; padding: clamp(8px, 2vw, 16px) 0; }
.form-success .success-icon {
  width: 52px; height: 52px; display: grid; place-items: center; border-radius: 14px;
  background: rgba(16, 185, 129, .14); border: 1px solid rgba(16, 185, 129, .4);
}
.form-success .success-icon svg { width: 26px; height: 26px; fill: none; stroke: var(--accent-primary); stroke-width: 2.5; stroke-linecap: round; stroke-linejoin: round; }
.form-success h3 { font-size: 1.35rem; }
.form-success p { color: var(--text-secondary); }
.form-success:focus { outline: none; }

/* Footer */
.site-footer { border-top: 1px solid var(--border-subtle); padding: 64px 0 32px; background: var(--bg-primary); }
.footer-inner { display: grid; grid-template-columns: 1.3fr .7fr 1.2fr; gap: 48px; }
.footer-brand p { margin-top: 16px; max-width: 36ch; color: var(--text-secondary); font-size: .95rem; }
.footer-title { color: var(--text-secondary); text-transform: uppercase; letter-spacing: .12em; margin-bottom: 16px; }
.footer-nav ul { display: grid; gap: 4px; }
.footer-nav a { display: inline-flex; min-height: 36px; align-items: center; color: var(--text-primary); font-size: .95rem; transition: color var(--dur-fast) ease; }
.footer-nav a:hover { color: var(--accent-primary); }
.footer-legal p { color: var(--text-secondary); font-size: .92rem; line-height: 1.6; }
.footer-legal p + p { margin-top: 8px; }
.footer-legal strong { color: var(--text-primary); font-weight: 600; }
.footer-mail {
  display: inline-flex; align-items: center; min-height: 44px;
  color: var(--text-primary); font-weight: 500;
  text-decoration: underline; text-decoration-color: var(--border-strong); text-underline-offset: 4px;
  transition: color var(--dur-fast) ease, text-decoration-color var(--dur-fast) ease;
}
.footer-mail:hover { color: var(--accent-primary); text-decoration-color: var(--accent-primary); }
.footer-bottom {
  display: flex; flex-wrap: wrap; justify-content: space-between; gap: 12px;
  margin-top: 48px; padding-top: 24px; border-top: 1px solid var(--border-subtle);
  color: var(--text-secondary); font-size: .85rem;
}

/* Reveal ao rolar */
.js .reveal { opacity: 0; transform: translateY(16px); transition: opacity var(--dur-slow) var(--ease-out), transform var(--dur-slow) var(--ease-out); transition-delay: var(--d, 0ms); }
.js .reveal.is-visible { opacity: 1; transform: none; }

/* Responsivo */
@media (max-width: 1024px) {
  .hero-inner { grid-template-columns: 1fr; }
  .hero-visual { max-width: 460px; margin-inline: auto; width: 100%; }
  .services, .pillars { grid-template-columns: 1fr 1fr; }
  .services .service:last-child { grid-column: 1 / -1; }
  .pillars .pillar:last-child { grid-column: 1 / -1; }
  .timeline { grid-template-columns: 1fr 1fr; row-gap: 40px; }
  .footer-inner { grid-template-columns: 1fr 1fr; }
  .footer-brand { grid-column: 1 / -1; }
}

@media (max-width: 900px) {
  .nav-toggle { display: inline-flex; }
  .nav {
    position: fixed; inset: var(--header-h) 0 auto 0; z-index: 49;
    flex-direction: column; align-items: stretch; gap: 16px;
    padding: 16px var(--gutter) 24px;
    background: rgba(9, 13, 22, .97); border-bottom: 1px solid var(--border-subtle);
    transform: translateY(-8px); opacity: 0; visibility: hidden;
    transition: opacity var(--dur) ease, transform var(--dur) var(--ease-out), visibility 0s linear var(--dur);
  }
  .nav.is-open { transform: none; opacity: 1; visibility: visible; transition-delay: 0s; }
  .nav ul { flex-direction: column; gap: 2px; }
  .nav ul a { min-height: 48px; font-size: 1rem; padding: 0 12px; }
  .nav-cta { min-height: 48px; }
  .split { grid-template-columns: 1fr; }
  .contact-box { grid-template-columns: 1fr; }
}

@media (max-width: 640px) {
  .wordmark { font-size: 1.15rem; }
  .brand img { width: 46px; }
  .services, .pillars, .timeline { grid-template-columns: 1fr; }
  .services .service:last-child, .pillars .pillar:last-child { grid-column: auto; }
  .hero-facts { grid-template-columns: 1fr; }
  .hero-facts li, .hero-facts li + li { padding: 14px 0; border-left: 0; border-bottom: 1px solid var(--border-subtle); }
  .hero-ctas .btn { flex: 1 1 100%; }
  .stats { grid-template-columns: 1fr; }
  .form-grid { grid-template-columns: 1fr; }
  .form-footer .btn { flex: 1 1 100%; }
  .contact-form { padding: 18px; }
  .stats div:nth-child(odd) { border-right: 0; }
  .stats div:not(:last-child) { border-bottom: 1px solid var(--border-subtle); }
  .footer-inner { grid-template-columns: 1fr; gap: 36px; }
}

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