@font-face {
  font-family: CasarotiSans;
  src: url('assets/Manrope.ttf') format('truetype');
  font-display: swap;
  font-weight: 100 900;
}

:root {
  --bg: #171b22;
  --surface: #20262f;
  --ink: #f8f9fa;
  --muted: #b4bac3;
  --line: #3b424b;
  --orange: #f47735;
  --light: #f5f6f7;
  --dark: #171b22;
  --light-line: #d3d8de;
  color-scheme: dark;
  font-family: CasarotiSans, Arial, Helvetica, sans-serif;
  font-synthesis: none;
}

* {
  box-sizing: border-box;
}

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

body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-size: 16px;
  line-height: 1.6;
}

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

button,
input,
select,
textarea {
  font: inherit;
}

button,
a,
input,
select,
textarea,
summary {
  -webkit-tap-highlight-color: transparent;
}

a,
button {
  touch-action: manipulation;
}

button {
  cursor: pointer;
}

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

h1,
h2,
h3,
p {
  margin: 0;
}

h1,
h2,
h3 {
  line-height: 1.12;
  font-weight: 600;
}

h1,
h2 {
  letter-spacing: -0.05em;
}

h2 {
  font-size: clamp(2.4rem, 4.3vw, 4.4rem);
}

h3 {
  font-size: 1.75rem;
  letter-spacing: -0.035em;
}

em {
  font-style: normal;
  color: var(--orange);
}

:focus-visible {
  outline: 3px solid var(--orange);
  outline-offset: 6px;
}

.wrap {
  width: min(1280px, calc(100% - 112px));
  margin-inline: auto;
}

.eyebrow {
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 0.13em;
  line-height: 1.5;
  margin-bottom: 24px;
}

.skip {
  position: fixed;
  z-index: 99;
  top: 12px;
  left: 12px;
  transform: translateY(-150%);
  padding: 10px 18px;
  background: var(--orange);
  color: var(--dark);
}

.skip:focus {
  transform: translateY(0);
}

.header {
  min-height: 104px;
  padding: 24px 56px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-bottom: 1px solid var(--line);
  max-width: 1600px;
  margin: auto;
  gap: 24px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  flex-shrink: 0;
}

.brand img {
  object-fit: contain;
}

.brand strong {
  font-size: 1.2rem;
  letter-spacing: 0.09em;
  line-height: 1.2;
  display: block;
}

.brand small {
  font-size: 0.8rem;
  letter-spacing: 0.045em;
  display: block;
  margin-top: 2px;
  color: var(--muted);
}

nav {
  display: flex;
  align-items: center;
  gap: 38px;
  font-size: 0.9rem;
}

nav a:not(.nav-contact) {
  padding: 8px 0;
}

nav a:hover {
  color: var(--orange);
}

.nav-contact {
  border: 1px solid #78808b;
  padding: 11px 18px;
  display: flex;
  gap: 28px;
}

.nav-contact:hover {
  border-color: var(--orange);
}

.menu-toggle {
  display: none;
}

.hero {
  padding-top: 100px;
  display: grid;
  grid-template-columns: 1.8fr 1fr;
  gap: 55px 48px;
}

.hero h1 {
  font-size: clamp(3.5rem, 6.4vw, 6.5rem);
  line-height: 1.035;
  margin-bottom: 32px;
  font-weight: 600;
}

.hero-description {
  max-width: 565px;
  font-size: 1.125rem;
  color: var(--muted);
  line-height: 1.7;
}

.actions {
  display: flex;
  align-items: center;
  gap: 26px;
  flex-wrap: wrap;
  margin-top: 35px;
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 26px;
  padding: 17px 22px;
  font-size: 0.94rem;
  font-weight: 600;
  line-height: 1.4;
  border: 1px solid transparent;
  transition: background 0.2s, transform 0.2s;
  min-height: 52px;
}

.button:hover {
  transform: translateY(-2px);
}

.orange {
  background: var(--orange);
  color: #14181f;
}

.orange:hover {
  background: #ff935b;
}

.text-link {
  font-size: 0.91rem;
  display: inline-flex;
  align-items: center;
  gap: 15px;
  border-bottom: 1px solid currentColor;
  padding: 6px 0;
}

.text-link:hover {
  color: var(--orange);
}

.hero-aside {
  align-self: center;
  padding-top: 12px;
}

.monogram-stage {
  position: relative;
  border: 1px solid var(--line);
  aspect-ratio: 1 / 1;
  display: flex;
  align-items: center;
  justify-content: center;
  background: #1b2028;
  overflow: hidden;
}

.monogram-stage img {
  width: 72%;
  height: 72%;
  object-fit: contain;
}

.stage-caption {
  position: absolute;
  bottom: 20px;
  left: 0;
  right: 0;
  text-align: center;
  letter-spacing: 0.17em;
  font-size: 0.75rem;
  color: var(--muted);
}

.aside-bottom {
  display: flex;
  justify-content: center;
  align-items: center;
  text-align: center;
  gap: 0;
  margin-top: 19px;
  padding: 0 10px;
  font-size: 0.8rem;
  line-height: 1.55;
  color: var(--muted);
}

.hero-footer {
  grid-column: 1 / -1;
  display: flex;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
  border-top: 1px solid var(--line);
  padding: 26px 0 32px;
  font-size: 0.83rem;
  color: var(--muted);
}

.hero-footer span:last-child {
  margin-left: auto;
}

.light {
  background: var(--light);
  color: var(--dark);
  color-scheme: light;
}

.projects,
.process,
.faq {
  padding: 95px 0;
}

.section-heading {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  gap: 36px;
  margin-bottom: 46px;
}

.section-heading > p {
  font-size: 1rem;
  line-height: 1.8;
  color: var(--muted);
  max-width: 390px;
}

.light .section-heading > p {
  color: #616975;
}

.project-visual {
  display: block;
  background: #e2e8ee;
  transition: box-shadow 0.25s;
}

.project-visual:hover {
  box-shadow: 0 16px 32px #17202e13;
}

.project-address {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 14px 22px;
  font-size: 0.8rem;
  color: #4b5763;
  background: #e8ecf0;
}

.project-visual > img {
  width: 100%;
  height: auto;
  aspect-ratio: 16 / 7;
  object-fit: cover;
  background: #d1dce7;
}

.visual-caption {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 15px;
  padding: 22px;
  font-size: 0.8rem;
  letter-spacing: 0.05em;
  background: #e8ecf0;
}

.visual-caption span:last-child {
  font-weight: 600;
  letter-spacing: 0;
}

.project-details {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 30px;
  margin-top: 32px;
}

.project-details .eyebrow,
.personal-copy .eyebrow {
  font-size: 0.75rem;
  margin-bottom: 10px;
  color: #636b77;
}

.project-details h3 {
  font-size: 2.2rem;
  margin-bottom: 14px;
}

.project-details p:not(.eyebrow) {
  color: #59636f;
  max-width: 700px;
}

.tags {
  list-style: none;
  padding: 0;
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  margin: 20px 0 0;
}

.tags li {
  font-size: 0.75rem;
  border: 1px solid var(--line);
  padding: 5px 11px;
  line-height: 1.6;
  color: var(--muted);
}

.light .tags li {
  color: #59636f;
  border-color: #c8d0d8;
}

.round-link {
  display: grid;
  place-items: center;
  width: 66px;
  height: 66px;
  border-radius: 50%;
  border: 1px solid #a9b3bd;
  font-size: 2rem;
  flex-shrink: 0;
}

.round-link:hover {
  background: var(--orange);
  border-color: var(--orange);
}

.personal-project {
  display: flex;
  align-items: center;
  gap: 32px;
  border-top: 1px solid #c6cfd6;
  margin-top: 55px;
  padding-top: 32px;
}

.project-index {
  font-size: 3rem;
  letter-spacing: -0.07em;
  color: #a5adb6;
  font-weight: 500;
}

.personal-copy {
  flex: 1;
}

.personal-copy h3 {
  font-size: 1.6rem;
  margin-bottom: 9px;
}

.personal-copy > p:last-child {
  color: #59636f;
  max-width: 560px;
}

.outline {
  border-color: #aeb7c0;
  flex-shrink: 0;
}

.outline:hover {
  background: #e2e7eb;
}

.services {
  padding-block: 95px;
}

.service-row {
  display: grid;
  grid-template-columns: 35px 230px 1fr 100px;
  gap: 28px;
  border-top: 1px solid var(--line);
  padding: 35px 0;
  align-items: start;
}

.service-row:last-child {
  border-bottom: 1px solid var(--line);
}

.service-number {
  font-size: 0.85rem;
  color: var(--orange);
  padding-top: 5px;
}

.service-row > div > p {
  max-width: 490px;
  color: var(--muted);
}

.service-row h3 {
  font-size: 1.8rem;
  line-height: 1.2;
}

.service-cta {
  font-size: 0.9rem;
  display: flex;
  justify-content: space-between;
  gap: 12px;
  padding: 4px 0;
}

.service-cta:hover {
  color: var(--orange);
}

.steps {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  list-style: none;
  padding: 0;
  margin: 0;
  gap: 30px;
}

.steps li {
  border-top: 1px solid #c7cfd5;
  padding-top: 20px;
}

.steps li > span {
  font-size: 1rem;
  font-weight: 600;
  color: #a44112;
}

.steps h3 {
  font-size: 1.5rem;
  margin: 24px 0 14px;
}

.steps p {
  color: #616975;
  font-size: 1rem;
}

.about {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 100px;
  padding-block: 110px;
}

.about-name h2 {
  font-size: clamp(3rem, 6vw, 6.4rem);
  line-height: 1.05;
  margin-bottom: 25px;
}

.about-name h2 > span {
  color: var(--orange);
}

.about-name > p:last-child {
  color: var(--muted);
  font-size: 0.95rem;
}

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

.about-copy > p {
  color: var(--muted);
  margin-bottom: 18px;
}

.about-copy .large-copy {
  font-size: 1.5rem;
  color: var(--ink);
  line-height: 1.45;
  letter-spacing: -0.02em;
}

.tech-list {
  display: flex;
  flex-wrap: wrap;
  gap: 10px 20px;
  font-size: 0.83rem;
  padding: 22px 0;
  border-top: 1px solid var(--line);
  margin-top: 28px;
  color: var(--muted);
}

.faq-layout {
  display: grid;
  grid-template-columns: 1fr 1.3fr;
  gap: 100px;
}

.faq details {
  border-bottom: 1px solid #c6cfd6;
  padding: 20px 0;
}

.faq details:first-child {
  border-top: 1px solid #c6cfd6;
}

.faq summary {
  font-weight: 600;
  font-size: 1.03rem;
  cursor: pointer;
  padding-right: 20px;
}

.faq details p {
  color: #59636f;
  line-height: 1.7;
  margin: 18px 0 4px;
}

.contact {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 100px;
  padding-block: 110px;
}

.contact h2 {
  font-size: clamp(3.2rem, 5.4vw, 5.5rem);
  line-height: 1.045;
  margin-bottom: 25px;
}

.contact-copy > p:not(.eyebrow) {
  color: var(--muted);
  max-width: 350px;
  margin-bottom: 36px;
}

.direct-contact {
  display: block;
  margin-top: 23px;
  max-width: 100%;
  overflow-wrap: anywhere;
}

.direct-contact small {
  font-size: 0.75rem;
  letter-spacing: 0.12em;
  color: var(--muted);
  display: block;
  margin-bottom: 6px;
}

.direct-contact > span {
  font-size: 1.2rem;
}

.direct-contact:hover > span {
  color: var(--orange);
}

.brief-form {
  padding: 36px;
  background: var(--surface);
  align-self: start;
  border: 1px solid var(--line);
}

.brief-form h3 {
  font-size: 1.65rem;
  line-height: 1.25;
}

.brief-form > p:first-of-type {
  color: var(--muted);
  font-size: 0.9rem;
  margin: 12px 0 22px;
}

.brief-form label {
  display: block;
  margin: 19px 0 8px;
  font-size: 0.875rem;
  font-weight: 500;
}

.brief-form label span {
  color: var(--muted);
  font-weight: 400;
}

.brief-form input,
.brief-form select,
.brief-form textarea {
  display: block;
  width: 100%;
  padding: 12px 14px;
  background: var(--bg);
  color: var(--ink);
  border: 1px solid #606a77;
  border-radius: 0;
  line-height: 1.5;
  min-height: 48px;
}

.brief-form select {
  appearance: auto;
}

.brief-form input::placeholder,
.brief-form textarea::placeholder {
  color: #a0a8b3;
  opacity: 1;
}

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

.brief-form > .button {
  width: 100%;
  margin-top: 22px;
  justify-content: space-between;
}

.brief-form .form-note {
  font-size: 0.78rem;
  color: var(--muted);
  margin-top: 15px;
  line-height: 1.6;
}

.form-status:empty {
  display: none;
}

.form-status {
  font-size: 0.85rem;
  margin-top: 15px;
  color: var(--ink);
}

#form-fallback {
  margin-top: 14px;
  font-size: 0.85rem;
}

.footer {
  border-top: 1px solid var(--line);
  padding-block: 32px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

.footer > p {
  font-size: 0.8rem;
  color: var(--muted);
}

.footer > div {
  display: flex;
  gap: 22px;
  font-size: 0.8rem;
}

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

@media (min-width: 1500px) {
  .hero {
    padding-top: 115px;
  }
}

@media (max-width: 1100px) {
  .wrap {
    width: calc(100% - 64px);
  }

  .header {
    padding: 22px 32px;
  }

  nav {
    gap: 24px;
  }

  .hero {
    gap: 38px 30px;
    padding-top: 70px;
    grid-template-columns: 1.6fr 1fr;
  }

  .hero h1 {
    font-size: 5.8vw;
  }

  .service-row {
    grid-template-columns: 28px 185px 1fr;
    gap: 22px;
  }

  .service-cta {
    grid-column: 3;
    justify-content: flex-start;
  }

  .about,
  .contact,
  .faq-layout {
    gap: 50px;
  }

  .brief-form {
    padding: 28px;
  }

  .personal-project {
    gap: 22px;
  }

  .personal-project .button {
    max-width: 190px;
  }

  .steps {
    gap: 22px;
  }

  .footer {
    flex-wrap: wrap;
  }

  .hero-footer span:last-child {
    margin-left: 0;
  }
}

@media (max-width: 760px) {
  .wrap {
    width: calc(100% - 40px);
  }

  .header {
    padding: 20px;
    min-height: 85px;
    position: relative;
    flex-wrap: wrap;
  }

  .brand strong {
    font-size: 1.1rem;
  }

  .brand img {
    width: 34px;
    height: 34px;
  }

  .brand small {
    font-size: 0.75rem;
  }

  .menu-toggle {
    display: flex;
    gap: 10px;
    align-items: center;
    background: transparent;
    color: var(--ink);
    border: 1px solid #737d88;
    padding: 8px 12px;
    min-height: 44px;
    font-size: 0.85rem;
  }

  nav {
    display: flex;
    flex-wrap: wrap;
    width: 100%;
    gap: 10px 24px;
    font-size: 0.9rem;
  }

  html.js nav {
    display: none;
  }

  html.js nav.open {
    display: flex;
  }

  .nav-contact {
    padding: 8px 12px;
    gap: 12px;
  }

  .hero {
    grid-template-columns: 1fr;
    padding-top: 53px;
    gap: 34px;
  }

  .hero h1 {
    font-size: clamp(3rem, 10.5vw, 5rem);
    line-height: 1.08;
    letter-spacing: -0.055em;
  }

  .eyebrow {
    font-size: 0.75rem;
    margin-bottom: 20px;
  }

  .hero-description {
    font-size: 1rem;
    max-width: 510px;
  }

  .actions {
    gap: 17px;
    margin-top: 27px;
  }

  .button {
    padding: 16px 18px;
    gap: 15px;
  }

  .hero-aside {
    display: none;
  }

  .hero-footer {
    gap: 14px 23px;
    font-size: 0.8rem;
    padding: 22px 0 26px;
  }

  .hero-footer span:last-child {
    flex-basis: 100%;
  }

  .section-heading {
    display: block;
    margin-bottom: 32px;
  }

  .section-heading > p {
    margin-top: 20px;
    max-width: 500px;
  }

  h2 {
    font-size: clamp(2.3rem, 8.5vw, 3.5rem);
  }

  .projects,
  .process,
  .faq {
    padding-block: 60px;
  }

  .project-address {
    padding: 11px 13px;
    font-size: 0.75rem;
  }

  .project-visual > img {
    aspect-ratio: 16 / 9;
    object-fit: contain;
  }

  .visual-caption {
    padding: 15px;
    font-size: 0.7rem;
    letter-spacing: 0;
    flex-wrap: wrap;
  }

  .project-details {
    gap: 16px;
    margin-top: 24px;
    align-items: flex-start;
  }

  .project-details h3 {
    font-size: 1.9rem;
  }

  .round-link {
    width: 46px;
    height: 46px;
    font-size: 1.4rem;
  }

  .tags {
    gap: 7px;
  }

  .tags li {
    font-size: 0.75rem;
    padding: 4px 9px;
  }

  .personal-project {
    display: grid;
    grid-template-columns: 32px 1fr;
    gap: 15px;
    margin-top: 36px;
    padding-top: 25px;
  }

  .project-index {
    font-size: 1.7rem;
  }

  .personal-project .button {
    grid-column: 2;
    justify-self: start;
    max-width: none;
  }

  .personal-copy h3 {
    font-size: 1.5rem;
  }

  .services {
    padding-block: 60px;
  }

  .service-row {
    grid-template-columns: 25px 1fr;
    padding: 27px 0;
    gap: 15px 12px;
  }

  .service-row h3 {
    font-size: 1.75rem;
  }

  .service-row h3 br {
    display: none;
  }

  .service-row > div,
  .service-cta {
    grid-column: 2;
  }

  .service-row > div > p {
    max-width: 100%;
  }

  .service-cta {
    justify-content: flex-start;
    padding-top: 8px;
  }

  .steps {
    grid-template-columns: 1fr 1fr;
    gap: 30px 22px;
  }

  .steps h3 {
    margin: 17px 0 11px;
  }

  .about,
  .contact,
  .faq-layout {
    grid-template-columns: 1fr;
    gap: 34px;
  }

  .about,
  .contact {
    padding-block: 65px;
  }

  .about-name h2 {
    font-size: clamp(3rem, 13vw, 4.5rem);
  }

  .about-copy {
    padding-top: 0;
  }

  .about-copy .large-copy {
    font-size: 1.35rem;
  }

  .faq-layout {
    gap: 28px;
  }

  .faq summary {
    font-size: 1rem;
  }

  .contact h2 {
    font-size: clamp(3rem, 12vw, 4.8rem);
  }

  .contact-copy > p:not(.eyebrow) {
    max-width: 100%;
  }

  .contact h2 br:nth-child(2) {
    display: none;
  }

  .direct-contact > span {
    font-size: 1.12rem;
  }

  .brief-form {
    padding: 24px 20px;
  }

  .brief-form h3 {
    font-size: 1.5rem;
  }

  .footer {
    align-items: flex-start;
    padding-block: 26px;
  }

  .footer > p {
    order: 3;
    flex-basis: 100%;
  }

  .footer > div {
    flex-wrap: wrap;
    gap: 12px 22px;
    font-size: 0.8rem;
  }
}

@media (max-width: 380px) {
  .wrap {
    width: calc(100% - 32px);
  }

  .hero h1 {
    font-size: 2.9rem;
  }

  .hero .button {
    width: 100%;
    font-size: 0.85rem;
  }

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

  .project-details .round-link {
    display: none;
  }

  .brief-form {
    padding: 22px 16px;
  }

  .direct-contact > span {
    font-size: 1rem;
  }
}

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

  *,
  *::before,
  *::after {
    transition: none !important;
    animation: none !important;
  }
}

/* =========================================
   AJUSTES DA SEÇÃO DE PROJETOS
   ========================================= */

.projects-heading {
  display: block;
}

.projects-heading > p {
  max-width: 620px;
  margin-top: 24px;
}

.featured-project {
  width: 100%;
  max-width: 980px;
  margin-inline: auto;
}

.featured-project .project-details {
  width: 100%;
}

.project-address,
.visual-caption {
  overflow-wrap: anywhere;
}

/* =========================================
   RESPONSIVIDADE PARA TABLETS E CELULARES
   ========================================= */

@media (max-width: 760px) {
  .projects-heading > p {
    max-width: 100%;
    margin-top: 20px;
  }

  .featured-project {
    max-width: 100%;
  }

  .project-details {
    min-width: 0;
    flex-wrap: wrap;
  }

  .project-details > div {
    min-width: 0;
  }

  .project-visual > img {
    width: 100%;
    height: auto;
    aspect-ratio: 16 / 9;
    object-fit: contain;
  }

  .visual-caption {
    flex-wrap: wrap;
  }
}

/* =========================================
   TELAS MUITO PEQUENAS
   ========================================= */

@media (max-width: 520px) {
  .visual-caption {
    flex-direction: column;
    align-items: flex-start;
  }
}

@media (max-width: 380px) {
  .projects-heading > p {
    font-size: 0.95rem;
  }

  .project-details h3 {
    font-size: 1.7rem;
  }
}