/* ===== RESET & BASE ===== */
*, *::before, *::after {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

:root {
  --bg: hsl(45, 40%, 96%);
  --fg: hsl(160, 60%, 12%);
  --primary: hsl(160, 55%, 22%);
  --primary-fg: hsl(45, 40%, 96%);
  --secondary-bg: hsl(45, 25%, 90%);
  --muted: hsl(160, 20%, 40%);
  --accent: hsl(300, 40%, 75%);
  --card-bg: hsl(45, 30%, 94%);
  --border: hsl(45, 20%, 88%);
  --gradient-hero: linear-gradient(160deg, hsl(45, 50%, 92%), hsl(140, 30%, 88%), hsl(45, 40%, 94%));
  --shadow-card: 0 4px 24px -4px hsla(160, 30%, 20%, 0.08);
  --shadow-card-hover: 0 8px 32px -4px hsla(160, 30%, 20%, 0.14);
  --font-display: 'DM Serif Display', Georgia, serif;
  --font-body: 'DM Sans', system-ui, sans-serif;
  --font-mono: 'JetBrains Mono', monospace;
}

html {
  scroll-behavior: smooth;
}

body {
  background: var(--bg);
  color: var(--fg);
  font-family: var(--font-body);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

h1, h2, h3, h4 {
  font-family: var(--font-display);
  font-weight: 400;
  color: var(--primary);
}

em { font-style: normal; }
a { text-decoration: none; color: inherit; }
img { display: block; max-width: 100%; }

/* ===== UTILITIES ===== */
.nowrap { white-space: nowrap; }

.btn {
  display: inline-block;
  background: var(--primary);
  color: var(--primary-fg);
  padding: 1rem 2.5rem;
  border-radius: 9999px;
  font-size: 1rem;
  font-weight: 500;
  letter-spacing: 0.02em;
  transition: opacity 0.2s;
}
.btn:hover { opacity: 0.9; }

/* ===== STARS ===== */
.star {
  position: absolute;
  fill: var(--primary);
  opacity: 0.3;
  pointer-events: none;
}
.star--hero-1 { top: 12%; right: 15%; opacity: 0.3; }
.star--hero-2 { bottom: 25%; left: 10%; opacity: 0.2; }
.star--hero-3 { top: 30%; left: 20%; fill: var(--accent); opacity: 0.25; }
.star--inline {
  position: relative;
  display: inline-block;
  vertical-align: middle;
  margin-left: 0.5rem;
  opacity: 0.5;
  transform: translateY(-0.15em);
}
.star--section { position: static; display: block; margin: 0 auto 0.75rem; }
.star--footer { position: static; display: block; margin: 0 auto 2rem; opacity: 0.4; fill: var(--accent); }

/* ===== NAVBAR ===== */
.navbar {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 50;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 2rem;
  padding: 1.25rem 1.5rem;
  background: hsla(45, 40%, 96%, 0.8);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
}
.navbar a {
  font-size: 0.875rem;
  font-weight: 500;
  color: var(--muted);
  transition: color 0.2s;
}
.navbar a:hover { color: var(--primary); }

/* ===== HERO ===== */
.hero {
  position: relative;
  overflow: hidden;
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 6rem 1.5rem;
  background: var(--gradient-hero);
}
.hero__content {
  max-width: 56rem;
  text-align: center;
  position: relative;
  z-index: 1;
  animation: fadeInUp 0.6s ease-out both;
}
.hero__content h1 {
  font-size: clamp(2.8rem, 8vw, 7.5rem);
  line-height: 1.05;
  letter-spacing: -0.02em;
  margin-bottom: 2rem;
}
.hero__content p {
  font-size: clamp(1rem, 2vw, 1.25rem);
  color: var(--muted);
  max-width: 36rem;
  margin: 0 auto 3rem;
  font-weight: 300;
  line-height: 1.7;
}

/* ===== TRABALHOS ===== */
.trabalhos {
  padding: 6rem 1.5rem;
  background: hsla(45, 25%, 90%, 0.5);
}
.trabalhos h2 {
  text-align: center;
  font-size: clamp(1.75rem, 4vw, 3rem);
  margin-bottom: 4rem;
}
.trabalhos__grid {
  max-width: 64rem;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.5rem;
}
@media (min-width: 640px) {
  .trabalhos__grid { grid-template-columns: 1fr 1fr; }
}
.projeto {
  display: block;
  border-radius: 1.5rem;
  overflow: hidden;
  transition: transform 0.3s;
}
.projeto:hover { transform: translateY(-4px); }
.projeto--streetway { background: linear-gradient(135deg, hsl(160, 55%, 22%), hsl(160, 40%, 32%)); }
.projeto--accidental { background: linear-gradient(135deg, hsl(300, 40%, 75%), hsl(280, 35%, 65%)); }
.projeto { padding: 2rem 2rem 0; }
.projeto__label {
  display: block;
  font-size: 0.6875rem;
  font-weight: 500;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: hsla(45, 40%, 96%, 0.7);
}
.projeto h3 {
  color: var(--primary-fg);
  font-size: clamp(1.4rem, 3vw, 1.875rem);
  margin: 0.25rem 0 1.5rem;
}
.projeto__img-wrap {
  border-radius: 0.75rem 0.75rem 0 0;
  overflow: hidden;
  box-shadow: 0 4px 20px rgba(0,0,0,0.15);
}
.projeto__img-wrap img {
  width: 100%;
  object-fit: cover;
  transition: transform 0.5s;
}
.projeto:hover .projeto__img-wrap img { transform: scale(1.02); }

/* ===== SERVIÇOS ===== */
.servicos {
  padding: 6rem 1.5rem;
  background: hsla(45, 25%, 90%, 0.5);
  text-align: center;
}
.servicos h2 {
  font-size: clamp(1.75rem, 4vw, 3rem);
  margin-bottom: 4rem;
}
.servicos__grid {
  max-width: 64rem;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.5rem;
}
@media (min-width: 768px) {
  .servicos__grid { grid-template-columns: 1fr 1fr 1fr; }
}
.servico-card {
  background: var(--card-bg);
  border-radius: 1rem;
  padding: 2rem;
  text-align: left;
  box-shadow: var(--shadow-card);
  transition: box-shadow 0.3s;
}
.servico-card:hover { box-shadow: var(--shadow-card-hover); }
.servico-card h3 {
  font-size: 1.25rem;
  margin-bottom: 0.75rem;
}
.servico-card p {
  color: var(--muted);
  font-weight: 300;
  line-height: 1.7;
}

/* ===== SOBRE ===== */
.sobre {
  padding: 6rem 1.5rem 4rem;
  max-width: 64rem;
  margin: 0 auto;
}
.sobre__heading {
  font-size: clamp(3.5rem, 8vw, 8rem);
  line-height: 1.05;
  letter-spacing: -0.02em;
  margin-bottom: 4rem;
}
.sobre__content {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 2.5rem;
  margin-bottom: 3rem;
}
@media (min-width: 768px) {
  .sobre__content {
    flex-direction: row;
    align-items: flex-start;
    gap: 4rem;
  }
}
.sobre__photo-wrap {
  flex-shrink: 0;
  width: 14rem;
  height: 14rem;
  border-radius: 50%;
  overflow: hidden;
  background: hsl(40, 45%, 88%);
}
@media (min-width: 768px) {
  .sobre__photo-wrap { width: 16rem; height: 16rem; }
}
.sobre__photo-wrap img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.sobre__text h3 {
  font-size: clamp(1.4rem, 3vw, 2.25rem);
  line-height: 1.3;
  margin-bottom: 1.5rem;
}
.sobre__text p {
  font-size: 1.125rem;
  color: var(--muted);
  font-weight: 300;
  line-height: 1.7;
  margin-bottom: 1rem;
}

/* ===== EXPERIENCE LADDER ===== */
.escada { margin-top: 3rem; }

/* Desktop: timeline overlap */
.escada__desktop {
  display: none;
  flex-direction: column-reverse;
  gap: 0.75rem;
}
@media (min-width: 768px) {
  .escada__desktop { display: flex; }
  .escada__mobile { display: none; }
}

.escada__step { position: relative; }

.escada__bar {
  background: var(--primary);
  color: var(--primary-fg);
  border-radius: 0.5rem;
  padding: 1rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.5rem;
  box-shadow: var(--shadow-card);
  min-width: 180px;
  transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}
.escada__bar:hover { transform: translateY(-4px); }
.escada__bar--current { box-shadow: var(--shadow-card-hover); }

.escada__info {
  display: flex;
  flex-direction: column;
  min-width: 0;
}
.escada__company {
  font-size: 0.875rem;
  font-weight: 500;
  line-height: 1.2;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.escada__role {
  font-size: 0.75rem;
  opacity: 0.75;
  line-height: 1.2;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.escada__date {
  font-family: var(--font-mono);
  font-size: 0.75rem;
  opacity: 0.6;
  white-space: nowrap;
  flex-shrink: 0;
}

/* Mobile: uniform full-width */
.escada__mobile {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}
@media (min-width: 768px) {
  .escada__mobile { display: none; }
}
.escada__mobile .escada__bar {
  padding: 0.75rem 1rem;
}

/* ===== CTA FOOTER ===== */
.cta-footer {
  padding: 6rem 1.5rem;
  text-align: center;
  max-width: 48rem;
  margin: 0 auto;
}
.cta-footer h2 {
  font-size: clamp(1.75rem, 4vw, 3rem);
  line-height: 1.3;
  margin-bottom: 1.5rem;
}
.cta-footer > p {
  font-size: 1.125rem;
  color: var(--muted);
  font-weight: 300;
  max-width: 36rem;
  margin: 0 auto 2.5rem;
  line-height: 1.7;
}
.cta-footer small {
  display: block;
  margin-top: 4rem;
  font-size: 0.875rem;
  color: var(--muted);
  opacity: 0.6;
}

/* ===== ANIMATION ===== */
@keyframes fadeInUp {
  from { opacity: 0; transform: translateY(16px); }
  to   { opacity: 1; transform: translateY(0); }
}
