:root {
  --green: #193b30;
  --cream: #f5f2e9;
  --line: #cbcfc4;
  --muted: #667166;
  --wash: #eaece3;
  --sans: Montserrat, Arial, sans-serif;
  --serif: "Crimson Text", Georgia, serif;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; background: var(--cream); color: var(--green); font: 400 1rem/1.65 var(--sans); isolation: isolate; }
body::before {
  content: "";
  position: fixed;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  background: url("abstract-lines.svg") center / cover no-repeat;
  opacity: .22;
}
a { color: inherit; text-decoration: none; }
a:focus-visible, video:focus-visible { outline: 2px dashed currentColor; outline-offset: 5px; }
img { display: block; max-width: 100%; }
figure, h1, h2, h3, p { margin: 0; }
.shell { width: min(1240px, 100% - clamp(36px, 10vw, 150px)); margin-inline: auto; }
.skip { position: absolute; z-index: 2; top: 12px; left: 12px; padding: 10px 18px; background: var(--green); color: var(--cream); transform: translateY(-150%); }
.skip:focus { transform: none; }
.site-header { display: flex; align-items: center; justify-content: space-between; gap: 24px; min-height: 84px; border-bottom: 1px solid var(--line); font-size: .83rem; font-weight: 600; }
.brand { display: inline-flex; align-items: center; gap: 12px; }
.monogram { display: grid; place-items: center; width: 40px; height: 40px; background: var(--green); color: var(--cream); border-radius: 50%; font-weight: 700; letter-spacing: -.07em; }
nav { display: flex; gap: clamp(16px, 3.2vw, 46px); }
nav a:hover, .header-cv:hover, .site-footer a:hover { text-decoration: underline; text-underline-offset: .25em; }
.header-cv { white-space: nowrap; }
.header-cv span { margin-left: 5px; }

.hero { display: grid; grid-template-columns: minmax(0, 1.4fr) minmax(250px, 1fr); gap: clamp(26px, 6vw, 90px); align-items: center; padding-block: clamp(48px, 6vw, 86px) clamp(45px, 6vw, 80px); }
.eyebrow { font-size: .71rem; font-weight: 700; letter-spacing: .13em; text-transform: uppercase; }
.location { display: flex; align-items: center; gap: 10px; margin-bottom: 22px; }
.location::before { content: ""; width: 7px; height: 7px; border-radius: 50%; background: var(--muted); }
h1, .section-heading h2, .experience h2, .contact h2 { font-weight: 600; letter-spacing: -.065em; line-height: 1.03; }
h1 { font-size: clamp(2.65rem, 5.25vw, 5.1rem); }
.intro { margin-top: 24px; max-width: 31ch; font: 400 clamp(1.35rem, 2.15vw, 1.88rem)/1.25 var(--serif); }
.actions { display: flex; flex-wrap: wrap; gap: 11px; margin-top: 29px; }
.button { min-height: 48px; display: inline-flex; align-items: center; justify-content: center; gap: 16px; padding: 10px 20px; border: 1px solid var(--green); border-radius: 99px; background: var(--green); color: var(--cream); font-size: .78rem; font-weight: 600; }
.button span { font-size: 1.05rem; }
.button.outline { background: transparent; color: var(--green); }
.button:hover { background: var(--cream); color: var(--green); }
.button.outline:hover { background: var(--green); color: var(--cream); }
.portrait { width: min(100%, 355px); justify-self: end; position: relative; isolation: isolate; margin: 12px 14px 12px 0; }
.portrait::before {
  content: "";
  position: absolute;
  inset: -12px -14px 12px 14px;
  z-index: -1;
  border: 1px solid var(--muted);
  border-radius: 48% 48% 46% 46% / 40% 40% 60% 60%;
  transform: rotate(8deg);
}
.portrait img { width: 100%; height: auto; border-radius: 48% 48% 46% 46% / 40% 40% 60% 60%; }

.skills { background: var(--green); color: var(--cream); }
.skills ul { display: grid; grid-template-columns: repeat(3, 1fr); list-style: none; padding: 25px 0; margin-block: 0; }
.skills li { display: flex; align-items: center; gap: 15px; padding-inline: clamp(12px, 2.5vw, 34px); }
.skills li:first-child { padding-left: 0; }
.skills li + li { border-left: 1px solid #f5f2e94d; }
.skills img { flex: none; object-fit: contain; filter: invert(100%); }
.skills h2 { font-size: .95rem; font-weight: 600; }
.skills p { font-size: .74rem; color: var(--wash); margin-top: 3px; }
.section { padding-block: clamp(58px, 7vw, 100px); scroll-margin-top: 20px; }
.section-heading { display: flex; align-items: baseline; justify-content: space-between; flex-wrap: wrap; gap: 14px 24px; margin-bottom: 32px; }
.section-heading h2, .experience h2, .contact h2 { font-size: clamp(2.1rem, 4.3vw, 3.65rem); }
.social-cases, .projects { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: clamp(24px, 3vw, 42px); }
.social-case { padding: clamp(22px, 3.4vw, 44px); border: 1px solid var(--line); }
.social-feature { background: #eaece3c9; }
.social-case h3 { font-weight: 600; font-size: clamp(1.35rem, 2.5vw, 2.15rem); letter-spacing: -.04em; line-height: 1.15; margin: 9px 0 12px; }
.social-case > p:last-of-type { max-width: 48ch; font-size: .93rem; }
.social-case .eyebrow { color: var(--muted); }
.social-gallery { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; margin-top: 22px; }
.social-gallery img { width: 100%; height: auto; aspect-ratio: 1; object-fit: cover; }
.social-gallery figcaption { margin-top: 7px; font-size: .74rem; font-weight: 600; line-height: 1.45; }
.social-more { border-bottom: 1px solid var(--line); margin-top: 22px; padding-bottom: 13px; }
.social-more summary { width: fit-content; cursor: pointer; padding: 6px 0; font-size: .86rem; font-weight: 700; }
.social-more summary:hover { text-decoration: underline; text-underline-offset: .25em; }
.social-more summary:focus-visible { outline: 2px dashed currentColor; outline-offset: 4px; }
.social-more .social-gallery { grid-template-columns: repeat(4, minmax(0, 1fr)); padding-bottom: 3px; }
.video-section { border-top: 1px solid var(--line); padding-top: clamp(36px, 5vw, 65px); }
.project { border: 1px solid var(--line); background: #f5f2e9e6; }
#wow-video, #trabalhos { scroll-margin-top: 24px; }
.motion-project { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.5fr); align-items: center; margin-top: clamp(24px, 3vw, 42px); }
.media { display: block; position: relative; aspect-ratio: 16/9; overflow: hidden; background: var(--wash); }
.media img, .media video { width: 100%; height: 100%; object-fit: cover; }
.youtube { background: var(--green); }
.youtube img { transition: transform .25s ease; }
.youtube:hover img { transform: scale(1.035); }
.motion video { display: block; object-fit: contain; background: #fcfcfc; }
.motion-toggle { position: absolute; right: 12px; bottom: 12px; padding: 9px 13px; border: 1px solid var(--green); border-radius: 99px; color: var(--green); background: var(--cream); font: 600 .8rem var(--sans); cursor: pointer; }
.motion-toggle:hover { background: var(--green); color: var(--cream); }
.motion-toggle:focus-visible { outline: 2px dashed var(--green); outline-offset: 3px; }
.media-action { position: absolute; bottom: 14px; left: 14px; display: inline-flex; gap: 9px; align-items: center; padding: 8px 14px; background: var(--cream); color: var(--green); border-radius: 99px; font-size: .72rem; font-weight: 700; }
.project-copy { padding: clamp(18px, 2.4vw, 30px); }
.project-copy .eyebrow, .career .eyebrow { color: var(--muted); }
.project h3, .career h3 { margin: .35em 0; font-size: clamp(1.17rem, 2vw, 1.52rem); font-weight: 600; line-height: 1.25; letter-spacing: -.035em; }
.project-copy p:last-child, .career p:last-child { font-size: .89rem; }
.experience-section { background: #eaece3c9; }
.experience { display: grid; grid-template-columns: minmax(0, .82fr) minmax(0, 1fr); gap: clamp(28px, 7vw, 100px); }
.toolkit { margin-top: clamp(28px, 4vw, 52px); transform: translateX(-24px); }
.toolkit img { width: 100%; height: auto; }
.accent { max-width: 23ch; margin-top: 15px; font: italic 400 clamp(1.55rem, 3vw, 2.5rem)/1.07 var(--serif); }
.accent + p { margin-top: 19px; font-size: .89rem; }
.text-link { display: inline-block; margin-top: 22px; font-size: .82rem; font-weight: 700; text-decoration: underline; text-underline-offset: .35em; }
.career article { border-top: 1px solid var(--line); padding: 16px 0; }
.career article:last-child { border-bottom: 1px solid var(--line); }
.contact { display: flex; align-items: end; justify-content: space-between; flex-wrap: wrap; gap: 24px; }
.email { display: inline-block; margin: 15px 0 8px; font-size: clamp(1rem, 3vw, 2rem); font-weight: 600; overflow-wrap: anywhere; }
.email:hover, .contact p a:hover { text-decoration: underline; }
.contact p, .site-footer { font-size: .82rem; }
.site-footer { display: flex; justify-content: space-between; gap: 16px; border-top: 1px solid var(--line); padding-block: 21px; }

@media (min-width: 960px) {
  .projects { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}

@media (max-width: 900px) {
  h1 { font-size: clamp(2.45rem, 5.15vw, 4.4rem); }
  .hero { gap: 26px; }
  .skills li { align-items: flex-start; gap: 10px; }
  .skills img { width: 26px; height: 26px; }
}

@media (max-width: 760px) {
  .site-header { display: grid; grid-template-columns: 1fr auto; gap: 0 18px; padding-top: 13px; }
  .header-cv { grid-column: 2; grid-row: 1; }
  nav { grid-column: 1 / -1; justify-content: space-between; flex-wrap: wrap; gap: 0 10px; padding: 11px 0; }
  nav a { padding-block: 5px; }
  .hero { grid-template-columns: 1fr; gap: 32px; }
  h1 { font-size: clamp(2.45rem, 9.1vw, 4.3rem); }
  .intro { margin-top: 17px; }
  .actions { margin-top: 21px; }
  .button { padding-inline: 14px; gap: 9px; }
  .portrait { width: min(82%, 355px); justify-self: center; margin-inline: 0; }
  .skills ul, .social-cases, .projects, .motion-project, .experience { grid-template-columns: 1fr; }
  .social-more .social-gallery { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .toolkit { transform: none; }
  .skills ul { padding-block: 8px; }
  .skills li, .skills li:first-child { padding: 13px 0; gap: 13px; align-items: center; }
  .skills li + li { border-left: 0; border-top: 1px solid #f5f2e94d; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .media img { transition: none; }
}
