/* ============================================================
   Editorial Premium Tech — Renato Novaes
   Design System: Syne + DM Sans, Near-black palette
   ============================================================ */

/* ============================================================
   CSS Custom Properties
   ============================================================ */
:root {
  /* Colors */
  --c-bg:           #0b0b0e;
  --c-bg-2:         #111116;
  --c-bg-card:      #16161d;
  --c-blue:         #3d6eeb;
  --c-purple:       #7c3aed;
  --c-cyan:         #22d3ee;
  --c-white:        #f2f2f6;
  --c-muted:        #6b6b7e;
  --c-border:       rgba(242, 242, 246, 0.07);
  --c-border-strong: rgba(242, 242, 246, 0.15);

  /* Typography */
  --font-display:   'Syne', sans-serif;
  --font-body:      'DM Sans', sans-serif;

  /* Spacing */
  --section-pad-v:  140px;
  --section-pad-v-mobile: 80px;
  --container-max:  1200px;
  --container-pad:  40px;
  --gap-large:      80px;
  --gap-medium:     48px;
  --gap-small:      24px;

  /* Transitions */
  --transition-fast:  0.2s ease;
  --transition-base:  0.3s ease;
  --transition-slow:  0.7s ease;
}

/* ============================================================
   Reset & Base
   ============================================================ */
*,
*::before,
*::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
  font-size: 16px;
}

body {
  background: var(--c-bg);
  color: var(--c-white);
  font-family: var(--font-body);
  font-weight: 400;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
  max-width: 100vw;
}

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

a {
  color: inherit;
  text-decoration: none;
}

ul,
ol {
  list-style: none;
}

button {
  font-family: inherit;
  cursor: pointer;
  background: none;
  border: none;
}

input,
textarea,
select {
  font-family: inherit;
}

/* Custom scrollbar */
::-webkit-scrollbar {
  width: 6px;
}

::-webkit-scrollbar-track {
  background: var(--c-bg-2);
}

::-webkit-scrollbar-thumb {
  background: var(--c-border-strong);
  border-radius: 3px;
}

::-webkit-scrollbar-thumb:hover {
  background: var(--c-muted);
}

/* ============================================================
   Utility Classes
   ============================================================ */
.container {
  max-width: var(--container-max);
  margin: 0 auto;
  padding: 0 var(--container-pad);
}

.section-label {
  display: block;
  font-family: var(--font-body);
  font-weight: 500;
  font-size: 11px;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--c-muted);
  margin-bottom: 24px;
}

.section-label--center {
  text-align: center;
}

.section-title {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: clamp(36px, 4.5vw, 68px);
  line-height: 1.05;
  color: var(--c-white);
  margin-bottom: 24px;
}

.section-title--center {
  text-align: center;
}

.section-sub {
  font-family: var(--font-body);
  font-weight: 400;
  font-size: 17px;
  color: var(--c-muted);
  line-height: 1.7;
  max-width: 560px;
  margin-bottom: 64px;
}

.section-sub--center {
  margin-left: auto;
  margin-right: auto;
  text-align: center;
}

.body-text {
  font-family: var(--font-body);
  font-weight: 400;
  font-size: clamp(15px, 1.2vw, 17px);
  color: var(--c-muted);
  line-height: 1.75;
  margin-bottom: 20px;
}

.body-text:last-of-type {
  margin-bottom: 0;
}

/* ============================================================
   Buttons
   ============================================================ */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-body);
  font-weight: 500;
  font-size: 14px;
  letter-spacing: 0.03em;
  padding: 14px 28px;
  border-radius: 4px;
  transition: opacity var(--transition-fast), background var(--transition-fast), border-color var(--transition-fast);
  cursor: pointer;
  white-space: nowrap;
  text-decoration: none;
}

.btn--primary {
  background: var(--c-blue);
  color: #fff;
  border: 1px solid transparent;
}

.btn--primary:hover {
  opacity: 0.88;
}

.btn--ghost {
  background: transparent;
  color: var(--c-white);
  border: 1px solid var(--c-border-strong);
}

.btn--ghost:hover {
  border-color: var(--c-white);
}

/* ============================================================
   Scroll Animations
   ============================================================ */
.animate-on-scroll {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity var(--transition-slow), transform var(--transition-slow);
}

.animate-on-scroll.visible {
  opacity: 1;
  transform: translateY(0);
}

/* Stagger delays for grouped children */
.sobre-left.animate-on-scroll { transition-delay: 0.1s; }
.sobre-right.animate-on-scroll { transition-delay: 0.2s; }

.ia-card.animate-on-scroll:nth-child(1) { transition-delay: 0.05s; }
.ia-card.animate-on-scroll:nth-child(2) { transition-delay: 0.15s; }
.ia-card.animate-on-scroll:nth-child(3) { transition-delay: 0.25s; }

.stack-category.animate-on-scroll:nth-child(1) { transition-delay: 0.05s; }
.stack-category.animate-on-scroll:nth-child(2) { transition-delay: 0.10s; }
.stack-category.animate-on-scroll:nth-child(3) { transition-delay: 0.15s; }
.stack-category.animate-on-scroll:nth-child(4) { transition-delay: 0.20s; }
.stack-category.animate-on-scroll:nth-child(5) { transition-delay: 0.25s; }
.stack-category.animate-on-scroll:nth-child(6) { transition-delay: 0.30s; }

/* ============================================================
   Tech Pills
   ============================================================ */
.tech-pill {
  display: inline-block;
  font-family: var(--font-body);
  font-weight: 500;
  font-size: 12px;
  letter-spacing: 0.05em;
  padding: 5px 12px;
  border: 1px solid var(--c-border);
  border-radius: 3px;
  color: var(--c-muted);
  background: transparent;
  transition: border-color var(--transition-fast), color var(--transition-fast);
}

.tech-pill:hover {
  border-color: var(--c-border-strong);
  color: var(--c-white);
}

/* ============================================================
   Navbar
   ============================================================ */
.site-header {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  z-index: 100;
  padding: 0 var(--container-pad);
  height: 70px;
  background: transparent;
  transition: background var(--transition-base), border-color var(--transition-base);
  border-bottom: 1px solid transparent;
}

.site-header.scrolled {
  background: var(--c-bg);
  border-bottom-color: var(--c-border);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  max-width: var(--container-max);
  margin: 0 auto;
  height: 100%;
}

.nav-logo {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 20px;
  color: var(--c-white);
  text-decoration: none;
  letter-spacing: -0.02em;
  transition: color var(--transition-fast);
}

.nav-logo:hover {
  color: var(--c-blue);
}

.nav-desktop {
  display: flex;
  align-items: center;
  gap: 32px;
}

.nav-link {
  font-family: var(--font-body);
  font-weight: 400;
  font-size: 14px;
  color: var(--c-muted);
  text-decoration: none;
  transition: color var(--transition-fast);
}

.nav-link:hover {
  color: var(--c-white);
}

.nav-link.active {
  color: var(--c-white);
}

.header-cta {
  border: 1px solid var(--c-border-strong);
  padding: 8px 20px;
  border-radius: 4px;
  color: var(--c-white);
}

.header-cta:hover {
  background: var(--c-white);
  color: var(--c-bg);
  border-color: var(--c-white);
}

/* Hamburger */
.nav-hamburger {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 32px;
  height: 32px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 4px;
}

.hamburger-line {
  display: block;
  width: 100%;
  height: 1px;
  background: var(--c-white);
  transition: transform var(--transition-base), opacity var(--transition-base);
  transform-origin: center;
}

.nav-hamburger.open .hamburger-line:nth-child(1) {
  transform: translateY(6px) rotate(45deg);
}

.nav-hamburger.open .hamburger-line:nth-child(2) {
  opacity: 0;
}

.nav-hamburger.open .hamburger-line:nth-child(3) {
  transform: translateY(-6px) rotate(-45deg);
}

/* Mobile overlay */
.nav-mobile {
  position: fixed;
  inset: 0;
  z-index: 200;
  background: var(--c-bg);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  opacity: 0;
  pointer-events: none;
  transition: opacity var(--transition-base);
}

.nav-mobile.open {
  opacity: 1;
  pointer-events: all;
}

.nav-mobile-close {
  position: absolute;
  top: 20px;
  right: 32px;
  font-size: 32px;
  color: var(--c-muted);
  cursor: pointer;
  transition: color var(--transition-fast);
  line-height: 1;
  background: none;
  border: none;
}

.nav-mobile-close:hover {
  color: var(--c-white);
}

.nav-mobile-links {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 40px;
}

.nav-mobile-link {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: clamp(28px, 6vw, 48px);
  color: var(--c-muted);
  text-decoration: none;
  transition: color var(--transition-fast);
}

.nav-mobile-link:hover {
  color: var(--c-white);
}

/* ============================================================
   Hero
   ============================================================ */
.hero {
  min-height: 100svh;
  position: relative;
  display: flex;
  align-items: center;
  padding: 120px var(--container-pad) 80px;
  background:
    radial-gradient(ellipse 80% 60% at 50% 40%, rgba(61, 110, 235, 0.07) 0%, transparent 70%),
    var(--c-bg);
}

.hero-inner {
  max-width: var(--container-max);
  width: 100%;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 55fr 45fr;
  gap: var(--gap-large);
  align-items: center;
}

.hero-label {
  font-family: var(--font-body);
  font-weight: 400;
  font-size: 14px;
  color: var(--c-muted);
  letter-spacing: 0.05em;
  margin-bottom: 24px;
}

.hero-title {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: clamp(52px, 7.5vw, 110px);
  line-height: 0.95;
  color: var(--c-white);
  display: flex;
  flex-direction: column;
  letter-spacing: -0.02em;
}

.hero-title span {
  display: block;
}

.hero-title-accent {
  color: var(--c-blue);
}

.hero-cta-group {
  display: flex;
  gap: 16px;
  margin-top: 48px;
  flex-wrap: wrap;
}

/* Hero right */
.hero-aside {
  border-left: 1px solid var(--c-border);
  padding-left: 48px;
}

.hero-aside-label {
  font-family: var(--font-body);
  font-weight: 500;
  font-size: 11px;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--c-muted);
  margin-bottom: 32px;
}

.hero-stats {
  display: flex;
  flex-direction: column;
}

.hero-stat-item {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  padding: 16px 0;
  border-bottom: 1px solid var(--c-border);
  gap: 16px;
}

.hero-stat-num {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 28px;
  color: var(--c-white);
  white-space: nowrap;
  flex-shrink: 0;
}

.hero-stat-desc {
  font-family: var(--font-body);
  font-weight: 400;
  font-size: 13px;
  color: var(--c-muted);
  text-align: right;
  line-height: 1.4;
}

/* Hero scroll indicator */
.hero-scroll {
  position: absolute;
  bottom: 40px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  color: var(--c-muted);
  font-size: 11px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  font-family: var(--font-body);
  animation: scrollBounce 2.5s ease-in-out infinite;
}

@keyframes scrollBounce {
  0%, 100% { transform: translateX(-50%) translateY(0); }
  50% { transform: translateX(-50%) translateY(6px); }
}

/* ============================================================
   Sections — Base
   ============================================================ */
.section {
  padding: var(--section-pad-v) var(--container-pad);
  position: relative;
  border-top: 1px solid var(--c-border);
}

.section--impacto,
.section--contato {
  background: var(--c-bg-2);
}

/* ============================================================
   Sobre
   ============================================================ */
.sobre-grid {
  display: grid;
  grid-template-columns: 2fr 3fr;
  gap: var(--gap-large);
  margin-top: 8px;
}

.pull-quote {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: clamp(20px, 2.5vw, 34px);
  line-height: 1.2;
  color: var(--c-white);
  border-left: 2px solid var(--c-blue);
  padding-left: 32px;
  font-style: normal;
  word-break: break-word;
  position: sticky;
  top: 120px;
}

/* Timeline */
.timeline-h {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 0;
  margin-top: 64px;
  border-top: 1px solid var(--c-border);
}

.tl-item {
  padding-top: 20px;
  padding-right: 16px;
  position: relative;
}

.tl-item::before {
  content: '';
  position: absolute;
  top: -5px;
  left: 0;
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: var(--c-muted);
  transform: translateY(50%);
}

.tl-item--active::before {
  background: var(--c-blue);
  box-shadow: 0 0 0 3px rgba(61, 110, 235, 0.2);
}

.tl-year {
  display: block;
  font-family: var(--font-body);
  font-weight: 400;
  font-size: 12px;
  color: var(--c-muted);
  margin-bottom: 6px;
}

.tl-name {
  display: block;
  font-family: var(--font-body);
  font-weight: 500;
  font-size: 13px;
  color: var(--c-white);
  line-height: 1.4;
}

.tl-item--active .tl-name {
  color: var(--c-blue);
}

/* ============================================================
   Impacto — Stats
   ============================================================ */
.stats-row {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 0;
  border: 1px solid var(--c-border);
  margin-top: 40px;
}

.stat-col {
  padding: 48px 40px;
  border-right: 1px solid var(--c-border);
  min-width: 0;
}

.stat-col:last-child {
  border-right: none;
}

.stat-number {
  display: block;
  font-family: var(--font-display);
  font-weight: 800;
  font-size: clamp(20px, 2.2vw, 40px);
  color: var(--c-white);
  margin-bottom: 8px;
  line-height: 1;
}

.stat-title {
  font-family: var(--font-body);
  font-weight: 500;
  font-size: 15px;
  color: var(--c-white);
  margin-bottom: 12px;
}

.stat-description {
  font-family: var(--font-body);
  font-weight: 400;
  font-size: 13px;
  color: var(--c-muted);
  line-height: 1.6;
}

/* ============================================================
   Projects Accordion
   ============================================================ */
.projects-list {
  display: flex;
  flex-direction: column;
  gap: 0;
  margin-top: 8px;
}

.project-item {
  border-bottom: 1px solid var(--c-border);
}

.project-item:first-child {
  border-top: 1px solid var(--c-border);
}

.project-row {
  display: grid;
  grid-template-columns: 80px 1fr auto auto;
  align-items: center;
  gap: 32px;
  padding: 28px 0;
  cursor: pointer;
  transition: opacity var(--transition-fast);
}

.project-row:hover .project-name {
  color: var(--c-blue);
}

.project-num {
  font-family: var(--font-body);
  font-weight: 300;
  font-size: clamp(32px, 3vw, 52px);
  color: var(--c-border-strong);
  line-height: 1;
  user-select: none;
}

.project-context {
  font-family: var(--font-body);
  font-weight: 500;
  font-size: 12px;
  color: var(--c-blue);
  letter-spacing: 0.05em;
  text-transform: uppercase;
  margin-bottom: 6px;
}

.project-name {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: clamp(18px, 2vw, 26px);
  color: var(--c-white);
  transition: color var(--transition-fast);
  line-height: 1.2;
}

.project-tags-preview {
  display: flex;
  gap: 8px;
  flex-wrap: nowrap;
}

.project-toggle {
  font-family: var(--font-body);
  font-weight: 400;
  font-size: 24px;
  color: var(--c-muted);
  transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1), color var(--transition-fast);
  line-height: 1;
  width: 32px;
  text-align: center;
  user-select: none;
}

.project-item.open .project-toggle {
  transform: rotate(45deg);
  color: var(--c-white);
}

/* Accordion body */
.project-body {
  height: 0;
  overflow: hidden;
  transition: height 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.project-body-inner {
  padding: 0 0 40px 112px;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 40px;
}

.project-body-section-label {
  font-family: var(--font-body);
  font-weight: 500;
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--c-muted);
  margin-bottom: 12px;
}

.project-body-text {
  font-family: var(--font-body);
  font-weight: 400;
  font-size: 15px;
  color: var(--c-white);
  line-height: 1.7;
}

.project-body-tech {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  padding: 0 0 40px 112px;
  margin-top: -16px;
}

/* ============================================================
   Stack
   ============================================================ */
.stack-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--gap-medium);
}

.stack-category {
  padding: 0;
}

.stack-cat-title {
  font-family: var(--font-body);
  font-weight: 500;
  font-size: 11px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--c-muted);
  margin-bottom: 16px;
}

.stack-rule {
  border: none;
  border-top: 1px solid var(--c-border);
  margin-bottom: 20px;
}

.stack-pills {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

/* ============================================================
   IA Cards
   ============================================================ */
.ia-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2px;
}

.ia-card {
  background: var(--c-bg-card);
  padding: 40px;
  border: 1px solid var(--c-border);
  transition: border-color var(--transition-fast);
}

.ia-card:hover {
  border-color: var(--c-border-strong);
}

.ia-card-status {
  font-family: var(--font-body);
  font-weight: 500;
  font-size: 11px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  margin-bottom: 24px;
}

.ia-card-status--live {
  color: #4ade80;
}

.ia-card-status--delivered {
  color: var(--c-muted);
}

.ia-card-context {
  font-family: var(--font-body);
  font-weight: 400;
  font-size: 13px;
  color: var(--c-muted);
  margin-bottom: 8px;
}

.ia-card-title {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 22px;
  color: var(--c-white);
  margin-bottom: 16px;
  line-height: 1.1;
}

.ia-card-desc {
  font-family: var(--font-body);
  font-weight: 400;
  font-size: 14px;
  color: var(--c-muted);
  line-height: 1.7;
  margin-bottom: 24px;
}

.ia-card-stack {
  margin-top: 0;
}

/* ============================================================
   Liderança
   ============================================================ */
.lideranca-grid {
  display: grid;
  grid-template-columns: 3fr 2fr;
  gap: var(--gap-large);
  align-items: start;
}

.lideranca-left .section-title {
  margin-bottom: 32px;
}

.lead-stats {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.lead-stat {
  background: var(--c-bg-card);
  border: 1px solid var(--c-border);
  padding: 32px;
  display: flex;
  align-items: baseline;
  gap: 16px;
}

.lead-stat-num {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 52px;
  color: var(--c-blue);
  line-height: 1;
  flex-shrink: 0;
}

.lead-stat-label {
  font-family: var(--font-body);
  font-weight: 400;
  font-size: 14px;
  color: var(--c-muted);
  line-height: 1.4;
}

/* ============================================================
   Contact Form
   ============================================================ */
.contact-form {
  display: flex;
  flex-direction: column;
  gap: 16px;
  max-width: 560px;
  margin: 0 auto;
}

.form-group {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.form-label {
  font-family: var(--font-body);
  font-weight: 500;
  font-size: 12px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--c-muted);
}

.form-input {
  background: var(--c-bg-card);
  border: 1px solid var(--c-border);
  color: var(--c-white);
  padding: 14px 18px;
  font-family: var(--font-body);
  font-size: 15px;
  font-weight: 400;
  border-radius: 4px;
  width: 100%;
  outline: none;
  transition: border-color var(--transition-fast);
  appearance: none;
}

.form-input:focus {
  border-color: var(--c-blue);
}

.form-input::placeholder {
  color: var(--c-muted);
}

.form-textarea {
  min-height: 140px;
  resize: vertical;
}

/* Submit button states */
.btn-submit {
  width: 100%;
  justify-content: center;
  cursor: pointer;
  border: none;
  position: relative;
  overflow: hidden;
  margin-top: 8px;
}

.btn-label {
  transition: opacity var(--transition-fast), transform var(--transition-fast);
}

.btn-label--loading,
.btn-label--success {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  pointer-events: none;
}

.btn-submit.loading .btn-label--default {
  opacity: 0;
}

.btn-submit.loading .btn-label--loading {
  opacity: 1;
}

.btn-submit.success .btn-label--default {
  opacity: 0;
}

.btn-submit.success .btn-label--success {
  opacity: 1;
}

.form-feedback {
  font-family: var(--font-body);
  font-size: 13px;
  color: var(--c-muted);
  text-align: center;
  min-height: 20px;
}

.form-feedback.error {
  color: #f87171;
}

.form-feedback.success {
  color: #4ade80;
}

/* ============================================================
   Contact Links
   ============================================================ */
.contact-links {
  display: flex;
  justify-content: center;
  gap: 48px;
  margin-top: 48px;
  flex-wrap: wrap;
}

.contact-link {
  font-family: var(--font-body);
  font-weight: 400;
  font-size: 14px;
  color: var(--c-muted);
  text-decoration: none;
  display: flex;
  align-items: center;
  gap: 8px;
  transition: color var(--transition-fast);
}

.contact-link:hover {
  color: var(--c-white);
}

/* ============================================================
   Footer
   ============================================================ */
.site-footer {
  border-top: 1px solid var(--c-border);
  padding: 32px var(--container-pad);
  background: var(--c-bg);
}

.footer-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  flex-wrap: wrap;
}

.footer-copy {
  font-family: var(--font-body);
  font-weight: 400;
  font-size: 13px;
  color: var(--c-muted);
}

.footer-back-top {
  display: flex;
  align-items: center;
  gap: 6px;
  font-family: var(--font-body);
  font-weight: 500;
  font-size: 12px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--c-muted);
  text-decoration: none;
  transition: color var(--transition-fast);
}

.footer-back-top:hover {
  color: var(--c-white);
}

/* ============================================================
   Responsive — Tablet (max-width: 1024px)
   ============================================================ */
@media (max-width: 1024px) {
  :root {
    --gap-large: 48px;
  }

  .hero-inner {
    grid-template-columns: 1fr;
    gap: 48px;
  }

  .hero-right {
    display: none;
  }

  .sobre-grid {
    grid-template-columns: 1fr;
    gap: 40px;
  }

  .pull-quote {
    position: static;
    max-width: 100%;
  }

  .stats-row {
    grid-template-columns: repeat(2, 1fr);
  }

  .stat-col:nth-child(2) {
    border-right: none;
  }

  .stat-col:nth-child(3) {
    border-top: 1px solid var(--c-border);
    border-right: 1px solid var(--c-border);
  }

  .stat-col:nth-child(4) {
    border-top: 1px solid var(--c-border);
  }

  .stack-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .ia-grid {
    grid-template-columns: 1fr;
    gap: 2px;
  }

  .lideranca-grid {
    grid-template-columns: 1fr;
    gap: 40px;
  }

  .project-body-inner {
    padding-left: 0;
    grid-template-columns: 1fr;
    gap: 24px;
  }

  .project-body-tech {
    padding-left: 0;
  }

  .timeline-h {
    grid-template-columns: repeat(2, 1fr);
    gap: 24px;
  }

  .tl-item::before {
    display: none;
  }
}

/* ============================================================
   Responsive — Mobile (max-width: 768px)
   ============================================================ */
@media (max-width: 768px) {
  :root {
    --section-pad-v: var(--section-pad-v-mobile);
    --container-pad: 24px;
  }

  /* Navbar */
  .nav-desktop {
    display: none;
  }

  .nav-hamburger {
    display: flex;
  }

  /* Hero */
  .hero {
    padding-top: 100px;
    padding-bottom: 60px;
    align-items: flex-start;
  }

  .hero-title {
    font-size: clamp(32px, 9vw, 46px);
  }

  .hero-inner {
    grid-template-columns: 1fr;
    width: 100%;
  }

  .hero-scroll {
    display: none;
  }

  .hero-cta-group {
    flex-direction: column;
    gap: 12px;
  }

  .hero-cta-group .btn {
    width: 100%;
    justify-content: center;
  }

  /* Stats */
  .stats-row {
    grid-template-columns: 1fr;
  }

  .stat-col {
    padding: 32px 24px;
    border-right: none;
    border-bottom: 1px solid var(--c-border);
  }

  .stat-col:last-child {
    border-bottom: none;
  }

  /* Projects */
  .project-row {
    grid-template-columns: auto 1fr auto;
    gap: 16px;
    padding: 20px 0;
  }

  .project-num {
    font-size: 24px;
  }

  .project-tags-preview {
    display: none;
  }

  .project-body-inner {
    padding: 0 0 32px;
    grid-template-columns: 1fr;
    gap: 20px;
  }

  .project-body-tech {
    padding: 0 0 32px;
    margin-top: -8px;
  }

  /* Stack */
  .stack-grid {
    grid-template-columns: 1fr;
    gap: 32px;
  }

  /* IA */
  .ia-grid {
    grid-template-columns: 1fr;
  }

  .ia-card {
    padding: 28px 24px;
  }

  /* Liderança */
  .lead-stat {
    padding: 24px;
  }

  .lead-stat-num {
    font-size: 40px;
  }

  /* Contact */
  .contact-links {
    flex-direction: column;
    align-items: center;
    gap: 24px;
  }

  /* Footer */
  .footer-inner {
    flex-direction: column;
    text-align: center;
    gap: 16px;
  }

  /* Sobre */
  .sobre-grid {
    grid-template-columns: 1fr;
    gap: 32px;
  }

  .pull-quote {
    position: static;
    font-size: clamp(18px, 5vw, 24px);
    padding-left: 20px;
  }

  /* Timeline */
  .timeline-h {
    grid-template-columns: 1fr;
    gap: 0;
    margin-top: 32px;
  }

  .tl-item {
    padding: 16px 0;
    border-bottom: 1px solid var(--c-border);
  }

  .tl-item:last-child {
    border-bottom: none;
  }

  .tl-item::before {
    display: none;
  }

  /* Section sub centered on mobile */
  .section-sub {
    font-size: 15px;
  }

  /* Ensure all grids respect viewport */
  .container {
    width: 100%;
    max-width: 100%;
  }

  .section {
    width: 100%;
    max-width: 100vw;
  }
}

/* ============================================================
   Reduced Motion
   ============================================================ */
@media (prefers-reduced-motion: reduce) {
  .animate-on-scroll {
    opacity: 1;
    transform: none;
    transition: none;
  }

  html {
    scroll-behavior: auto;
  }

  .hero-scroll {
    animation: none;
  }
}
