* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

:root {
  --black: #000;
  --white: #fff;
  --gray: #f6f6f6;
  --line: #dedede;
  --content: 630px;
}

body {
  margin: 0;
  color: var(--black);
  background: var(--white);
  font-family: "Inter", Arial, sans-serif;
  font-size: 16px;
  font-weight: 300;
  line-height: 1.75;
}

a {
  color: inherit;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 10;
  height: 82px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(255,255,255,.98);
  box-shadow: 0 4px 4px rgba(0,0,0,.03);
}

.brand {
  position: absolute;
  left: max(32px, calc(50% - 822px));
  top: 28px;
  font-size: 13px;
  font-weight: 400;
  line-height: 1;
  letter-spacing: .14em;
  text-decoration: none;
  white-space: nowrap;
}

.brand span {
  letter-spacing: 0;
}

.site-header nav {
  display: flex;
  align-items: center;
  gap: 110px;
}

.site-header nav a {
  padding: 4px 8px;
  font-size: 15px;
  font-weight: 500;
  line-height: 1;
  text-decoration: none;
}

.section {
  position: relative;
}

.section-inner {
  width: var(--content);
  margin: 0 auto;
}

.hero {
  height: 264px;
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  background: var(--white);
}

.hero-copy {
  position: relative;
  z-index: 1;
  text-align: right;
}

.hero h1 {
  margin: 0;
  font-size: 34px;
  line-height: 1.05;
  font-weight: 300;
}

.hero-decoration {
  position: absolute;
  width: 556px;
  height: 168px;
  top: 51px;
  opacity: .08;
  background-repeat: no-repeat;
  background-size: contain;
  background-position: center;
}

.hero-decoration-left {
  right: calc(50% + 180px);
  background-image: url("assets/imagem01.png");
}

.hero-decoration-right {
  left: calc(50% + 318px);
  width: 231px;
  background-image: url("assets/imagem02.png");
}

.portfolio {
  height: 658px;
  background: var(--gray);
}

.portfolio .section-inner {
  padding-top: 40px;
}

.pill {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 4px 16px 5px;
  border: 1.5px solid var(--black);
  border-radius: 100px;
  font-size: 16px;
  font-weight: 500;
  line-height: 1.4;
}

.section-intro {
  margin: 8px 0 10px;
  font-size: 16px;
  line-height: 28px;
}

.project-grid {
  display: grid;
  grid-template-columns: repeat(2, 305px);
  gap: 20px 20px;
}

.project-card {
  height: 136px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 6px;
  background: var(--white);
  text-decoration: none;
  text-align: center;
  transition: transform .18s ease, box-shadow .18s ease;
}

.project-card:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 18px rgba(0,0,0,.06);
}

.project-card strong {
  font-size: 16px;
  font-weight: 500;
  line-height: 28px;
}

.project-card span {
  font-size: 16px;
  line-height: 1.4;
}

.experience {
  height: 677px;
  background: var(--white);
}

.experience .section-inner {
  padding-top: 40px;
}

.timeline {
  margin-top: 0;
}

.experience-item {
  min-height: 119px;
  padding: 19px 0 18px;
  border-bottom: 1px solid var(--line);
}

.experience-item:first-child {
  padding-top: 14px;
}

.experience-item:last-child {
  border-bottom: 0;
}

.experience-item h2 {
  margin: 0;
  font-size: 18px;
  line-height: 28px;
  font-weight: 400;
}

.experience-item h2 strong {
  font-weight: 500;
}

.experience-item h2 span {
  margin: 0 8px;
}

.experience-item p,
.experience-item time {
  display: block;
  margin: 0;
  font-size: 16px;
  line-height: 27px;
}

.about {
  height: 335px;
  overflow: hidden;
  background: var(--gray);
}

.about-shape {
  position: absolute;
  left: 0;
  top: 0;
  width: 1252px;
  height: 335px;
  background: var(--gray);
  border-bottom-right-radius: 100% 42%;
}

.about-inner {
  position: relative;
  height: 100%;
  display: flex;
  align-items: flex-start;
}

.about-copy {
  padding-top: 40px;
}

.about-text {
  width: 469px;
  margin-top: 10px;
}

.about-text p {
  margin: 0 0 20px;
  font-size: 16px;
  line-height: 28px;
}

.portrait {
  position: absolute;
  top: 59px;
  left: 503px;
  width: 217px;
  height: 217px;
  padding: 8px;
  border: 1px solid var(--black);
  border-radius: 50%;
}

.portrait::before {
  content: "";
  position: absolute;
  inset: 3px;
  border: 1px solid var(--black);
  border-radius: 50%;
}

.portrait img {
  width: 100%;
  height: 100%;
  display: block;
  object-fit: cover;
  border-radius: 50%;
  position: relative;
}

.contact {
  height: 267px;
  background: var(--white);
}

.contact .section-inner {
  padding-top: 40px;
}

.contact-list {
  margin: 8px 0 0;
  display: flex;
  flex-direction: column;
  gap: 0;
  font-style: normal;
}

.contact-list a,
.contact-list div {
  min-height: 36px;
  display: flex;
  align-items: center;
  gap: 12px;
  text-decoration: none;
  font-size: 16px;
  line-height: 28px;
}

.contact-list a:nth-child(3) {
  color: #10f;
  text-decoration: underline;
}

.contact-list img {
  width: 24px;
  height: 24px;
  flex: 0 0 24px;
}

@media (max-width: 900px) {
  :root {
    --content: min(630px, calc(100vw - 48px));
  }

  .brand {
    left: 24px;
    font-size: 11px;
  }

  .site-header nav {
    gap: 24px;
  }

  .site-header nav a {
    font-size: 13px;
  }

  .hero h1 {
    font-size: clamp(24px, 4vw, 34px);
  }

  .hero-decoration-left {
    right: calc(50% + 130px);
  }

  .hero-decoration-right {
    left: calc(50% + 180px);
  }

  .portrait {
    left: auto;
    right: 0;
  }

  .about-text {
    width: min(469px, calc(100vw - 300px));
  }
}

@media (max-width: 680px) {
  .site-header {
    height: auto;
    min-height: 72px;
    padding: 14px 20px;
    flex-direction: column;
    gap: 10px;
  }

  .brand {
    position: static;
    font-size: 10px;
  }

  .site-header nav {
    gap: 8px;
    justify-content: center;
    flex-wrap: wrap;
  }

  .site-header nav a {
    padding: 3px 6px;
    font-size: 12px;
  }

  .hero {
    height: 230px;
    padding: 24px;
  }

  .hero-copy {
    text-align: center;
  }

  .hero h1 {
    font-size: 24px;
  }

  .hero-decoration {
    display: none;
  }

  .portfolio {
    height: auto;
    padding-bottom: 48px;
  }

  .project-grid {
    grid-template-columns: 1fr;
    gap: 12px;
  }

  .project-card {
    width: 100%;
    height: 112px;
  }

  .desktop {
    display: none;
  }

  .experience {
    height: auto;
    padding-bottom: 32px;
  }

  .experience-item {
    min-height: 0;
    padding: 20px 0;
  }

  .experience-item p,
  .experience-item time {
    font-size: 14px;
    line-height: 22px;
  }

  .about {
    height: auto;
    min-height: 520px;
    padding-bottom: 32px;
  }

  .about-shape {
    width: 100%;
    height: 100%;
    border-radius: 0;
  }

  .about-inner {
    display: block;
  }

  .about-copy {
    padding-top: 40px;
  }

  .about-text {
    width: 100%;
  }

  .portrait {
    position: relative;
    top: auto;
    right: auto;
    left: auto;
    margin: 24px auto 0;
  }

  .contact {
    height: auto;
    padding-bottom: 40px;
  }

  .contact-list a,
  .contact-list div {
    font-size: 14px;
  }
}
