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

:root {
  --bg: #F7F5F0;
  --bg-alt: #EFECE5;
  --ink: #1A1916;
  --ink-muted: #6B6760;
  --accent: #C8432B;
  --border: #DDD9D1;
  --max-w: 1120px;
}

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

body {
  background: var(--bg);
  color: var(--ink);
  font-family: 'DM Sans', system-ui, sans-serif;
  font-size: 16px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

/* ── NAV ── */
nav {
  position: sticky;
  top: 0;
  z-index: 100;
  background: var(--bg);
  border-bottom: 1px solid var(--border);
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 40px;
  height: 64px;
}

.nav-logo {
  font-family: 'DM Serif Display', serif;
  font-size: 1.1rem;
  letter-spacing: 0.01em;
  color: var(--ink);
  text-decoration: none;
}

.nav-links {
  display: flex;
  gap: 36px;
  list-style: none;
}

.nav-links a {
  font-size: 0.875rem;
  font-weight: 400;
  color: var(--ink-muted);
  text-decoration: none;
  letter-spacing: 0.02em;
  transition: color 0.2s;
}

.nav-links a:hover {
  color: var(--ink);
}

/* ── LANG SWITCHER ── */
.lang-switcher {
  display: flex;
  align-items: center;
  gap: 2px;
  margin-left: 32px;
  border: 1px solid var(--border);
  border-radius: 4px;
  overflow: hidden;
}

.lang-btn {
  background: none;
  border: none;
  padding: 5px 9px;
  font-family: 'DM Sans', sans-serif;
  font-size: 0.7rem;
  font-weight: 500;
  letter-spacing: 0.08em;
  color: var(--ink-muted);
  cursor: pointer;
  transition: all 0.15s;
}

.lang-btn:hover {
  color: var(--ink);
  background: var(--bg-alt);
}

.lang-btn.active {
  background: var(--ink);
  color: var(--bg);
}

/* ── HERO ── */
#hero {
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 100px 40px 80px;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 80px;
  align-items: center;
}

.hero-text h1 {
  font-family: 'DM Serif Display', serif;
  font-size: clamp(2.8rem, 5vw, 4.5rem);
  line-height: 1.05;
  letter-spacing: -0.02em;
  margin-bottom: 28px;
}

.hero-text h1 em {
  font-style: italic;
  color: var(--accent);
}

.hero-text p {
  font-size: 1.05rem;
  color: var(--ink-muted);
  max-width: 420px;
  margin-bottom: 36px;
  line-height: 1.7;
}

.hero-actions {
  display: flex;
  gap: 14px;
  flex-wrap: wrap;
}

.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 12px 24px;
  font-family: 'DM Sans', sans-serif;
  font-size: 0.875rem;
  font-weight: 500;
  border-radius: 4px;
  text-decoration: none;
  transition: all 0.2s;
  cursor: pointer;
  border: none;
}

.btn-primary {
  background: var(--ink);
  color: var(--bg);
}

.btn-primary:hover {
  background: var(--accent);
}

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

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

.hero-image {
  position: relative;
}

.hero-image img {
  width: 100%;
  aspect-ratio: 4/5;
  object-fit: cover;
  border-radius: 4px;
  display: block;
}

.hero-tag {
  position: absolute;
  bottom: 24px;
  left: -24px;
  background: var(--bg);
  border: 1px solid var(--border);
  padding: 12px 18px;
  border-radius: 4px;
  font-size: 0.8rem;
  color: var(--ink-muted);
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.hero-tag strong {
  font-size: 1.1rem;
  color: var(--ink);
  font-weight: 500;
}

/* placeholder when no photo */
.photo-placeholder {
  width: 100%;
  aspect-ratio: 4/5;
  background: var(--bg-alt);
  border-radius: 4px;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 1px solid var(--border);
}

.photo-placeholder span {
  font-family: 'DM Serif Display', serif;
  font-size: 6rem;
  color: var(--border);
  font-style: italic;
}

/* ── STRIP ── */
.strip {
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
  background: var(--bg-alt);
  overflow: hidden;
  padding: 14px 0;
}

.strip-track {
  display: flex;
  gap: 48px;
  animation: marquee 24s linear infinite;
  white-space: nowrap;
}

.strip-track span {
  font-size: 0.8rem;
  font-weight: 500;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--ink-muted);
  flex-shrink: 0;
}

@keyframes marquee {
  from { transform: translateX(0); }
  to { transform: translateX(-50%); }
}

/* ── SECTION SHARED ── */
section {
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 64px 40px;
}

.section-label {
  font-size: 0.75rem;
  font-weight: 500;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 20px;
}

h2 {
  font-family: 'DM Serif Display', serif;
  font-size: clamp(2rem, 3.5vw, 3rem);
  line-height: 1.1;
  letter-spacing: -0.015em;
  margin-bottom: 40px;
}

/* ── ABOUT ── */
#sobre {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 80px;
  align-items: start;
  border-top: 1px solid var(--border);
}

.about-body p {
  color: var(--ink-muted);
  line-height: 1.8;
  margin-bottom: 16px;
}

.about-body p:last-child {
  margin-bottom: 0;
}

.about-stats {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 24px;
  margin-top: 40px;
}

.stat {
  padding: 24px;
  border: 1px solid var(--border);
  border-radius: 4px;
}

.stat-num {
  font-family: 'DM Serif Display', serif;
  font-size: 2.2rem;
  line-height: 1;
  margin-bottom: 6px;
}

.stat-label {
  font-size: 0.8rem;
  color: var(--ink-muted);
  letter-spacing: 0.04em;
}

/* ── EXPERIENCE ── */
#experiencia {
  border-top: 1px solid var(--border);
}

.exp-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1px;
  background: var(--border);
  border: 1px solid var(--border);
  border-radius: 4px;
  overflow: hidden;
}

.exp-card {
  background: var(--bg);
  padding: 32px 28px;
  transition: background 0.2s;
}

.exp-card:hover {
  background: var(--bg-alt);
}

.exp-outlet {
  font-size: 0.75rem;
  font-weight: 500;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 12px;
}

.exp-card h3 {
  font-size: 1rem;
  font-weight: 500;
  margin-bottom: 10px;
  line-height: 1.4;
}

.exp-card p {
  font-size: 0.875rem;
  color: var(--ink-muted);
  line-height: 1.65;
}

/* ── PROJECTS ── */
#projetos {
  border-top: 1px solid var(--border);
}

.projects-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}

.project-card {
  border: 1px solid var(--border);
  border-radius: 4px;
  overflow: hidden;
  transition: transform 0.2s, box-shadow 0.2s;
  text-decoration: none;
  color: inherit;
  display: block;
}

.project-thumb-emoji {
  display: flex;
  align-items: center;
  justify-content: center;
  aspect-ratio: 16/9;
  background: var(--bg-alt);
  border-bottom: 1px solid var(--border);
  font-size: 3rem;
}

.project-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 12px 32px rgba(0,0,0,0.06);
}

.project-thumb img {
  width: 100%;
  height: 100%;
  aspect-ratio: 16/9;
  background: var(--bg-alt);
  display: block;
  align-items: center;
  justify-content: center;
  border-bottom: 1px solid var(--border);
  object-fit: cover;
}

.project-body {
  padding: 24px;
}

.project-tag {
  display: inline-block;
  font-size: 0.7rem;
  font-weight: 500;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 10px;
}

.project-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 10px;
}

.project-header .project-tag {
  margin-bottom: 0;
}

.status-badge {
  font-size: 0.65rem;
  font-weight: 500;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  padding: 3px 8px;
  border-radius: 20px;
  flex-shrink: 0;
}

.status-badge.concluido {
  background: var(--bg-alt);
  color: var(--ink-muted);
  border: 1px solid var(--border);
}

.status-badge.em-andamento {
  background: #EAF4EC;
  color: #2A7A4B;
  border: 1px solid #B6DEC0;
}

.project-body h3 {
  font-size: 1rem;
  font-weight: 500;
  margin-bottom: 8px;
  line-height: 1.4;
}

.project-body p {
  font-size: 0.84rem;
  color: var(--ink-muted);
  line-height: 1.65;
}

/* ── ARTICLES ── */
#artigos {
  border-top: 1px solid var(--border);
}

.articles-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}

.article-card {
  border: 1px solid var(--border);
  border-radius: 4px;
  padding: 28px;
  display: flex;
  flex-direction: column;
  gap: 12px;
  transition: transform 0.2s, box-shadow 0.2s;
  text-decoration: none;
  color: inherit;
}

.article-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 12px 32px rgba(0,0,0,0.06);
}

.article-tag {
  font-size: 0.7rem;
  font-weight: 500;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--accent);
}

.article-card h3 {
  font-size: 1rem;
  font-weight: 500;
  line-height: 1.4;
  color: var(--ink);
}

.article-card p {
  font-size: 0.84rem;
  color: var(--ink-muted);
  line-height: 1.65;
  flex: 1;
}

.article-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-top: 16px;
  padding-top: 16px;
  border-top: 1px solid var(--border);
}

.article-date {
  font-size: 0.75rem;
  color: var(--ink-muted);
}

.article-link {
  font-size: 0.75rem;
  font-weight: 500;
  color: var(--ink);
  letter-spacing: 0.02em;
}

/* ── MEDIA / COVERAGE ── */
#cobertura {
  border-top: 1px solid var(--border);
}

.reels-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
}

.reel-item {
  border-radius: 4px;
  overflow: hidden;
  border: 1px solid var(--border);
  background: var(--bg-alt);
}

.reel-item iframe {
  display: block;
  width: 100%;
  height: 480px;
  border: none;
}

/* ── CONTACT ── */
#contato {
  border-top: 1px solid var(--border);
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 80px;
  align-items: start;
}

.contact-text p {
  color: var(--ink-muted);
  line-height: 1.8;
  margin-bottom: 32px;
}

.social-links {
  display: flex;
  flex-direction: row;
  flex-wrap: wrap;
  gap: 10px;
}

.social-link {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 0.8rem;
  color: var(--ink-muted);
  text-decoration: none;
  padding: 10px 14px;
  border: 1px solid var(--border);
  border-radius: 4px;
  transition: all 0.2s;
}

.social-link:hover {
  border-color: var(--ink);
  color: var(--ink);
}

.social-link-icon {
  width: 20px;
  text-align: center;
  font-size: 1rem;
}

.contact-form {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}

input, textarea {
  width: 100%;
  padding: 14px 16px;
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: 4px;
  font-family: 'DM Sans', sans-serif;
  font-size: 0.9rem;
  color: var(--ink);
  outline: none;
  transition: border-color 0.2s;
  resize: none;
}

input::placeholder, textarea::placeholder {
  color: var(--ink-muted);
}

input:focus, textarea:focus {
  border-color: var(--ink);
}

textarea {
  height: 140px;
}

/* ── FOOTER ── */
footer {
  border-top: 1px solid var(--border);
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 28px 40px;
  max-width: 100%;
  font-size: 0.8rem;
  color: var(--ink-muted);
}

footer a {
  color: var(--ink-muted);
  text-decoration: none;
}

footer a:hover {
  color: var(--ink);
}

/* ── RESPONSIVE ── */
@media (max-width: 768px) {
  nav { padding: 0 20px; }
  nav .nav-links { display: none; }

  #hero {
    grid-template-columns: 1fr;
    padding: 60px 20px 40px;
    gap: 40px;
  }

  .hero-image { order: -1; }
  .hero-tag { left: 0; }

  section { padding: 60px 20px; }

  #sobre,
  #contato {
    grid-template-columns: 1fr;
    gap: 40px;
  }

  .exp-grid,
  .projects-grid,
  .articles-grid {
    grid-template-columns: 1fr;
  }

  .reels-grid {
    grid-template-columns: 1fr;
  }

  .about-stats {
    grid-template-columns: 1fr 1fr;
  }

  .form-row { grid-template-columns: 1fr; }

  footer {
    flex-direction: column;
    gap: 12px;
    padding: 24px 20px;
    text-align: center;
  }
}
