@font-face {
  font-family: "Geist";
  src: url("assets/fonts/Geist-Variable.woff2") format("woff2");
  font-style: normal;
  font-weight: 100 900;
  font-display: swap;
}

:root {
  --paper: #f0efeb;
  --ink: #171716;
  --muted-ink: #55544f;
  --focus: #315ee7;
  --page-x: clamp(1.5rem, 3vw, 3.5rem);
  --page-y: clamp(1.5rem, 3.2vw, 3rem);
  --ease-out: cubic-bezier(0.23, 1, 0.32, 1);
}

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

html {
  min-width: 20rem;
  background: var(--paper);
  color-scheme: light;
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-width: 20rem;
  overflow-x: hidden;
  background: var(--paper);
  color: var(--ink);
  font-family: "Geist", "Helvetica Neue", Arial, sans-serif;
  font-synthesis: none;
  text-rendering: optimizeLegibility;
}

html.lenis,
html.lenis body {
  height: auto;
}

html.lenis {
  scroll-behavior: auto;
}

.lenis:not(.lenis-autoToggle).lenis-stopped {
  overflow: clip;
}

.lenis [data-lenis-prevent],
.lenis [data-lenis-prevent-wheel],
.lenis [data-lenis-prevent-touch],
.lenis [data-lenis-prevent-vertical],
.lenis [data-lenis-prevent-horizontal] {
  overscroll-behavior: contain;
}

.lenis.lenis-smooth iframe {
  pointer-events: none;
}

.lenis.lenis-autoToggle {
  transition-behavior: allow-discrete;
  transition-duration: 1ms;
  transition-property: overflow;
}

::selection {
  background: var(--ink);
  color: var(--paper);
}

a,
button {
  color: inherit;
  -webkit-tap-highlight-color: transparent;
}

a {
  text-decoration-thickness: 0.075em;
  text-underline-offset: 0.22em;
}

button {
  font: inherit;
}

:focus-visible {
  outline: 2px solid var(--focus);
  outline-offset: 0.35rem;
}

.skip-link {
  position: fixed;
  z-index: 20;
  top: 1rem;
  left: var(--page-x);
  padding: 0.7rem 1rem;
  background: var(--ink);
  color: var(--paper);
  transform: translateY(-200%);
}

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

.hero {
  position: relative;
  isolation: isolate;
  width: 100%;
  height: 100svh;
  min-height: 38rem;
  overflow: hidden;
  background: var(--paper);
}

.hero-service-link {
  position: absolute;
  z-index: 3;
  top: 43%;
  left: var(--page-x);
  max-width: 16ch;
  font-size: clamp(1rem, 1.35vw, 1.35rem);
  font-weight: 550;
  letter-spacing: -0.025em;
  line-height: 1.2;
  text-decoration: none;
  text-wrap: balance;
}

.site-header {
  position: relative;
  z-index: 3;
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 2rem;
  padding: var(--page-y) var(--page-x) 0;
  animation: header-enter 700ms var(--ease-out) both;
}

.identity {
  display: flex;
  align-items: baseline;
  gap: 0.9rem;
  color: inherit;
  text-decoration: none;
  white-space: nowrap;
}

.identity__name,
.site-nav a,
.language-toggle {
  font-size: clamp(0.875rem, 1.08vw, 1.125rem);
  font-weight: 650;
  letter-spacing: -0.025em;
}

.identity__name {
  text-transform: uppercase;
}

.identity__role {
  color: var(--muted-ink);
  font-size: clamp(0.875rem, 1.08vw, 1.125rem);
  font-weight: 430;
  letter-spacing: -0.02em;
}

.header-actions,
.site-nav {
  display: flex;
  align-items: center;
}

.header-actions {
  gap: clamp(1.4rem, 2.4vw, 2.5rem);
}

.site-nav {
  gap: clamp(1.25rem, 2vw, 2.25rem);
}

.site-nav a {
  position: relative;
  text-decoration: none;
}

.site-nav a::after {
  position: absolute;
  right: 0;
  bottom: -0.3rem;
  left: 0;
  height: 1px;
  background: currentColor;
  content: "";
  opacity: 0;
  transform: scaleX(0.45);
  transition:
    opacity 180ms ease,
    transform 180ms var(--ease-out);
}

.language-toggle {
  display: grid;
  width: 2.35rem;
  height: 2.35rem;
  padding: 0;
  place-items: center;
  border: 1px solid color-mix(in srgb, var(--ink) 28%, transparent);
  border-radius: 50%;
  background: transparent;
  cursor: pointer;
  line-height: 1;
  transition:
    color 160ms ease,
    background-color 160ms ease,
    border-color 160ms ease,
    transform 140ms var(--ease-out);
}

html[data-js="false"] .language-toggle {
  visibility: hidden;
}

.language-toggle:active {
  transform: scale(0.96);
}

.portrait {
  position: absolute;
  z-index: 1;
  top: 22.75%;
  left: 50%;
  width: clamp(14.5rem, 20vw, 22rem);
  aspect-ratio: 4 / 5;
  overflow: hidden;
  background: #f7f7f5;
  clip-path: inset(0 0 0 0);
  transform: translateX(-50%);
  animation: portrait-reveal 900ms 120ms var(--ease-out) both;
}

.portrait img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.hero-title {
  position: absolute;
  z-index: 2;
  right: 0;
  bottom: clamp(1rem, 2.4vw, 2.5rem);
  left: 0;
  margin: 0;
  overflow: hidden;
  font-size: 14.25vw;
  font-weight: 520;
  letter-spacing: -0.04em;
  line-height: 0.78;
  text-align: center;
  text-transform: uppercase;
  white-space: nowrap;
  pointer-events: none;
}

.hero-title__copy {
  display: block;
  transform: translateY(0);
  animation: title-enter 850ms 170ms var(--ease-out) both;
}

.hero-title__break {
  display: inline;
}

.services-section,
.projects-section,
.projects-scroll,
.approach-section,
.contact-section {
  scroll-margin-top: 2rem;
}

@media (prefers-reduced-motion: no-preference) {
  html[data-js="true"] [data-section-reveal] .projects-section__header {
    clip-path: inset(0 0 100% 0);
    opacity: 0;
    transform: translateY(0.55rem);
    transition: clip-path 600ms var(--ease-out), opacity 420ms var(--ease-out), transform 520ms var(--ease-out);
  }

  html[data-js="true"] [data-section-reveal][data-section-visible="true"] .projects-section__header {
    clip-path: inset(0);
    opacity: 1;
    transform: none;
  }

  html[data-js="true"] [data-section-reveal] .contact-section__title {
    clip-path: inset(0 0 100% 0);
    opacity: 0;
    transform: translateY(0.45rem);
    transition: clip-path 650ms var(--ease-out), opacity 440ms var(--ease-out), transform 560ms var(--ease-out);
  }

  html[data-js="true"] [data-section-reveal] .contact-section__footer {
    opacity: 0;
    transform: translateY(0.65rem);
    transition: opacity 380ms var(--ease-out) 90ms, transform 480ms var(--ease-out) 90ms;
  }

  html[data-js="true"] [data-section-reveal][data-section-visible="true"] .contact-section__title {
    clip-path: inset(0);
    opacity: 1;
    transform: none;
  }

  html[data-js="true"] [data-section-reveal][data-section-visible="true"] .contact-section__footer {
    opacity: 1;
    transform: none;
  }
}

.services-section,
.approach-section {
  padding: clamp(6rem, 10vw, 10rem) var(--page-x);
  border-top: 1px solid color-mix(in srgb, var(--ink) 18%, transparent);
  background: var(--paper);
}

.services-section {
  display: grid;
  grid-template-columns: minmax(0, 0.85fr) minmax(0, 1.15fr);
  column-gap: clamp(3rem, 7vw, 8rem);
}

.approach-section {
  background: #e5e4dc;
}

.services-section__intro,
.approach-section__heading {
  display: grid;
  grid-template-columns: minmax(9rem, 0.33fr) minmax(0, 1fr);
  gap: clamp(2rem, 7vw, 8rem);
}

.services-section__intro {
  display: block;
}

.services-section__intro h2 {
  margin-top: clamp(2.5rem, 4vw, 4rem);
  font-size: clamp(3.2rem, 5.5vw, 6rem);
}

.section-eyebrow {
  margin: 0;
  color: var(--muted-ink);
  font-size: clamp(0.88rem, 1vw, 1rem);
  font-weight: 600;
  letter-spacing: -0.015em;
}

.services-section__intro h2,
.approach-section__heading h2 {
  max-width: 13ch;
  margin: 0;
  font-size: clamp(3.2rem, 7vw, 7rem);
  font-weight: 500;
  letter-spacing: -0.055em;
  line-height: 0.95;
  text-wrap: balance;
}

.services-section__intro p:last-child {
  max-width: 52ch;
  margin: clamp(2rem, 4vw, 4rem) 0 0;
  color: var(--muted-ink);
  font-size: clamp(1.15rem, 1.6vw, 1.55rem);
  letter-spacing: -0.025em;
  line-height: 1.4;
}

.service-list {
  margin-top: 0;
  border-top: 1px solid var(--ink);
}

.service-item {
  display: grid;
  align-items: start;
  padding: clamp(1.5rem, 2.4vw, 2.5rem) 0;
  grid-template-columns: 3rem minmax(0, 1fr);
  gap: clamp(1rem, 2vw, 2rem);
  border-bottom: 1px solid color-mix(in srgb, var(--ink) 22%, transparent);
}

.service-item__body {
  grid-column: 2;
}

.service-item__number {
  align-self: start;
  padding-top: 0.2rem;
}

.service-item__detail {
  display: block;
  margin-bottom: 0.75rem;
}

.service-item__number,
.service-item__detail,
.approach-steps > li > span {
  color: var(--muted-ink);
  font-size: clamp(0.9rem, 1vw, 1rem);
  font-variant-numeric: tabular-nums;
}

.service-item h3,
.approach-steps h3 {
  margin: 0;
  font-size: clamp(2rem, 3.2vw, 3.4rem);
  font-weight: 530;
  letter-spacing: -0.045em;
  line-height: 1;
}

.service-item p,
.approach-steps p {
  max-width: 47ch;
  margin: 1rem 0 0;
  color: var(--muted-ink);
  font-size: clamp(1rem, 1.2vw, 1.15rem);
  line-height: 1.5;
  text-wrap: pretty;
}

.services-section__closing {
  display: flex;
  align-items: end;
  justify-content: space-between;
  margin-top: clamp(3rem, 6vw, 6rem);
  padding-top: 1.4rem;
  grid-column: 1 / -1;
  gap: 2rem;
  border-top: 1px solid color-mix(in srgb, var(--ink) 25%, transparent);
}

.services-section__closing p {
  max-width: 62ch;
  margin: 0;
  color: var(--muted-ink);
  font-size: clamp(1rem, 1.2vw, 1.15rem);
  line-height: 1.5;
}

.services-section__closing a {
  flex: 0 0 auto;
  font-size: clamp(1.05rem, 1.4vw, 1.3rem);
  font-weight: 600;
  text-decoration-thickness: 1px;
}

.approach-section__heading h2 {
  max-width: 14ch;
}

.approach-steps {
  display: grid;
  margin: clamp(5rem, 9vw, 9rem) 0 0;
  padding: 0;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: clamp(1rem, 2.5vw, 3rem);
  list-style: none;
}

.approach-steps li {
  padding-top: 1.25rem;
  border-top: 1px solid var(--ink);
}

.approach-steps > li > span {
  color: color-mix(in srgb, var(--ink) 48%, transparent);
  font-size: clamp(2.8rem, 5vw, 5rem);
  font-weight: 450;
  letter-spacing: -0.06em;
  line-height: 1;
}

.approach-steps h3 {
  margin-top: clamp(2rem, 3vw, 3rem);
  font-size: clamp(1.55rem, 2vw, 2.25rem);
}

.project-card__type {
  margin-left: 0.8rem;
  color: var(--project-paper);
  font-size: 0.85em;
}

.projects-scroll {
  background: var(--ink);
}

.projects-section {
  --project-paper: #f0efeb;
  --project-ink: #171716;
  min-height: 100svh;
  padding: clamp(6rem, 9vw, 9rem) 0 clamp(6rem, 9vw, 9rem);
  overflow: hidden;
  background: var(--project-ink);
  color: var(--project-paper);
}

.projects-section__header {
  display: grid;
  align-items: end;
  padding: 0 var(--page-x) clamp(2.5rem, 5vw, 5rem);
  grid-template-columns: minmax(0, 1fr) auto auto;
  gap: clamp(1.25rem, 3vw, 3rem);
}

.projects-section__header h2 {
  margin: 0;
  font-size: clamp(4rem, 10.2vw, 10rem);
  font-weight: 500;
  letter-spacing: -0.04em;
  line-height: 0.76;
  text-transform: uppercase;
}

.carousel-status {
  display: flex;
  min-width: 5.5rem;
  align-items: baseline;
  justify-content: flex-end;
  gap: 0.4rem;
  font-size: clamp(1rem, 1.6vw, 1.4rem);
  font-variant-numeric: tabular-nums;
  font-weight: 560;
  letter-spacing: -0.025em;
}

.carousel-status [data-carousel-current] {
  font-size: clamp(1.8rem, 3vw, 3rem);
}

.carousel-controls {
  display: none;
  gap: 0.55rem;
}

html[data-js="true"] .carousel-controls {
  display: flex;
}

.carousel-controls button {
  display: grid;
  width: 3.25rem;
  height: 3.25rem;
  padding: 0;
  place-items: center;
  border: 1px solid color-mix(in srgb, var(--project-paper) 40%, transparent);
  border-radius: 0;
  background: transparent;
  color: inherit;
  cursor: pointer;
  transition:
    background-color 160ms ease,
    color 160ms ease,
    border-color 160ms ease,
    opacity 160ms ease,
    transform 140ms var(--ease-out);
}

.carousel-controls button:not(:disabled):active {
  transform: scale(0.96);
}

.carousel-controls button:disabled {
  opacity: 0.32;
  cursor: default;
}

.carousel-controls svg {
  width: 1.35rem;
  fill: none;
  stroke: currentColor;
  stroke-linecap: square;
  stroke-linejoin: miter;
  stroke-width: 1.6;
}

.project-carousel {
  width: 100%;
  min-width: 0;
  overflow: hidden;
  outline-offset: -2px;
}

.project-carousel:focus-visible {
  outline: 2px solid var(--focus);
}

.project-track {
  display: flex;
  width: 100%;
  margin: 0;
  padding: 0 max(var(--page-x), calc((100vw - 92rem) / 2));
  overflow-x: auto;
  gap: clamp(1.25rem, 2.5vw, 2.5rem);
  list-style: none;
  overscroll-behavior-x: contain;
  scroll-behavior: smooth;
  scroll-padding-inline: max(var(--page-x), calc((100vw - 92rem) / 2));
  scroll-snap-type: x mandatory;
  scrollbar-color: color-mix(in srgb, var(--project-paper) 44%, transparent) transparent;
  scrollbar-width: thin;
}

.project-track::-webkit-scrollbar {
  height: 3px;
}

.project-track::-webkit-scrollbar-track {
  background: transparent;
}

.project-track::-webkit-scrollbar-thumb {
  background: color-mix(in srgb, var(--project-paper) 44%, transparent);
}

.project-slide {
  min-width: 0;
  flex: 0 0 min(78vw, 68rem);
  scroll-snap-align: start;
}

.project-card__media {
  position: relative;
  display: block;
  aspect-ratio: 16 / 9;
  overflow: hidden;
  background: #d8d7d2;
}

.project-card__media::after {
  position: absolute;
  inset: 0;
  border: 1px solid color-mix(in srgb, var(--project-paper) 22%, transparent);
  content: "";
  pointer-events: none;
}

.project-card__media img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: top center;
  transition: transform 700ms var(--ease-out);
}

.project-card__meta {
  display: grid;
  align-items: end;
  padding-top: 1.4rem;
  grid-template-columns: minmax(10rem, 0.75fr) minmax(14rem, 1fr) auto;
  gap: clamp(1rem, 2.4vw, 2.5rem);
}

.project-card__index,
.project-card__link {
  margin: 0;
  font-size: clamp(0.9rem, 1vw, 1.05rem);
  line-height: 1.45;
}

.project-card__index {
  margin-bottom: 0.35rem;
  color: color-mix(in srgb, var(--project-paper) 58%, transparent);
  font-variant-numeric: tabular-nums;
}

.project-card h3 {
  margin: 0;
  font-size: clamp(2rem, 3.5vw, 3.8rem);
  font-weight: 500;
  letter-spacing: -0.04em;
  line-height: 0.95;
}

.project-card__summary {
  max-width: 34ch;
}

.project-card__summary-label,
.project-card__summary-copy {
  margin: 0;
  letter-spacing: -0.02em;
}

.project-card__summary-label {
  margin-bottom: 0.35rem;
  color: color-mix(in srgb, var(--project-paper) 58%, transparent);
  font-size: clamp(0.78rem, 0.82vw, 0.9rem);
  font-weight: 560;
  line-height: 1.25;
}

.project-card__summary-copy {
  font-size: clamp(0.95rem, 1.1vw, 1.1rem);
  line-height: 1.35;
  text-wrap: pretty;
}

.project-card__link {
  font-weight: 620;
  text-decoration-thickness: 1px;
}

.carousel-dots {
  display: none;
  padding: clamp(2.5rem, 5vw, 4rem) var(--page-x) 0;
  gap: 0.55rem;
}

html[data-js="true"] .carousel-dots {
  display: flex;
}

.carousel-dots button {
  position: relative;
  width: 2.5rem;
  height: 2.75rem;
  padding: 0;
  border: 0;
  background: transparent;
  cursor: pointer;
}

.carousel-dots button::before {
  position: absolute;
  top: 50%;
  right: 0;
  left: 0;
  height: 2px;
  background: var(--project-paper);
  content: "";
  opacity: 0.28;
  transform: translateY(-50%);
  transition:
    opacity 180ms ease,
    transform 180ms var(--ease-out);
}

.carousel-dots button[aria-current="true"]::before {
  opacity: 1;
  transform: translateY(-50%) scaleY(2);
}

.contact-section {
  position: relative;
  isolation: isolate;
  display: grid;
  min-height: 100svh;
  padding: clamp(6rem, 9vw, 9rem) var(--page-x) var(--page-y);
  overflow: hidden;
  grid-template-rows: minmax(0, 1fr) auto;
  gap: clamp(5rem, 12vh, 9rem);
  border-top: 1px solid color-mix(in srgb, var(--paper) 18%, transparent);
  background: var(--ink);
  color: var(--paper);
}

.contact-section::before {
  position: absolute;
  z-index: 0;
  right: -4%;
  bottom: 12%;
  width: min(76vw, 72rem);
  aspect-ratio: 3 / 2;
  background: url("assets/decor/flow-convergence.webp") center / cover no-repeat;
  content: "";
  -webkit-mask-image: radial-gradient(ellipse 78% 72% at 72% 58%, #000 48%, transparent 100%);
  mask-image: radial-gradient(ellipse 78% 72% at 72% 58%, #000 48%, transparent 100%);
  filter: invert(1);
  mix-blend-mode: screen;
  opacity: 0.13;
  pointer-events: none;
}

.contact-section > * {
  position: relative;
  z-index: 1;
}

.contact-section__title {
  align-self: start;
  max-width: 9ch;
  margin: 0;
  font-size: clamp(4.5rem, 11vw, 10.5rem);
  font-weight: 500;
  letter-spacing: -0.04em;
  line-height: 0.78;
  text-transform: uppercase;
  text-wrap: balance;
}

.contact-section__title span {
  display: block;
}

.contact-section__footer {
  display: grid;
  align-items: end;
  padding-top: 1.4rem;
  grid-template-columns: minmax(14rem, 1fr) minmax(17rem, 0.85fr) auto;
  gap: clamp(1.5rem, 4vw, 5rem);
  border-top: 1px solid color-mix(in srgb, var(--paper) 35%, transparent);
}

.contact-section__footer p {
  margin: 0;
  font-size: clamp(0.95rem, 1.25vw, 1.2rem);
  letter-spacing: -0.025em;
  line-height: 1.35;
}

.contact-section__footer > p:first-child {
  max-width: 34ch;
  color: color-mix(in srgb, var(--paper) 70%, transparent);
}

.contact-section__actions {
  display: grid;
  justify-items: start;
  gap: 0.65rem;
}

.contact-section__whatsapp {
  display: flex;
  width: 100%;
  min-height: 4rem;
  align-items: center;
  justify-content: space-between;
  padding: 0.9rem 1.25rem;
  gap: 1rem;
  background: var(--paper);
  color: var(--ink);
  font-size: clamp(1.05rem, 1.35vw, 1.3rem);
  font-weight: 620;
  letter-spacing: -0.025em;
  text-decoration: none;
  transition: background-color 200ms ease, transform 200ms var(--ease-out);
}

.contact-section__whatsapp:active {
  transform: scale(0.985);
}

.contact-section__whatsapp span:last-child {
  font-size: 1.35em;
  line-height: 1;
  transition: transform 180ms var(--ease-out);
}

.contact-section__phone,
.contact-section__email-link {
  color: color-mix(in srgb, var(--paper) 82%, transparent);
  font-size: clamp(0.9rem, 1.05vw, 1.05rem);
  text-decoration-thickness: 1px;
  overflow-wrap: anywhere;
}

.contact-section__copyright {
  color: color-mix(in srgb, var(--paper) 65%, transparent);
  white-space: nowrap;
}

@media (hover: hover) and (pointer: fine) {
  .site-nav a:hover::after {
    opacity: 1;
    transform: scaleX(1);
  }

  .language-toggle:hover {
    border-color: var(--ink);
    background: var(--ink);
    color: var(--paper);
  }

  .carousel-controls button:not(:disabled):hover {
    border-color: var(--project-paper);
    background: var(--project-paper);
    color: var(--project-ink);
  }

  .project-card__media:hover img {
    transform: scale(1.018);
  }

  .contact-section__whatsapp:hover {
    background: #deded4;
  }

  .contact-section__whatsapp:hover span:last-child {
    transform: translate(0.18rem, -0.18rem);
  }

}

@media (min-width: 44.01rem) and (prefers-reduced-motion: no-preference) {
  html[data-js="true"] .projects-scroll[data-scroll-ready="true"] {
    height: calc(100svh + var(--projects-scroll-distance, 0px));
  }

  html[data-js="true"] .projects-scroll[data-scroll-ready="true"] .projects-section {
    position: sticky;
    top: 0;
    display: grid;
    height: 100svh;
    min-height: 0;
    padding: clamp(2rem, 4.5vh, 3.5rem) 0 clamp(1rem, 2.2vh, 2rem);
    grid-template-rows: auto minmax(0, 1fr) auto;
  }

  html[data-js="true"] .projects-scroll[data-scroll-ready="true"] .projects-section__header {
    padding-bottom: clamp(1.5rem, 4vh, 3rem);
  }

  html[data-js="true"] .projects-scroll[data-scroll-ready="true"] .projects-section__header h2 {
    font-size: clamp(4rem, min(10.2vw, 14vh), 10rem);
  }

  html[data-js="true"] .projects-scroll[data-scroll-ready="true"] .project-carousel,
  html[data-js="true"] .projects-scroll[data-scroll-ready="true"] .project-track,
  html[data-js="true"] .projects-scroll[data-scroll-ready="true"] .project-slide,
  html[data-js="true"] .projects-scroll[data-scroll-ready="true"] .project-card {
    min-height: 0;
    height: 100%;
  }

  html[data-js="true"] .projects-scroll[data-scroll-ready="true"] .project-track {
    overflow-x: hidden;
    scroll-behavior: auto;
    scroll-snap-type: none;
    scrollbar-width: none;
  }

  html[data-js="true"] .projects-scroll[data-scroll-ready="true"] .project-track::-webkit-scrollbar {
    display: none;
  }

  html[data-js="true"] .projects-scroll[data-scroll-ready="true"] .project-card {
    display: grid;
    grid-template-rows: minmax(0, 1fr) auto;
  }

  html[data-js="true"] .projects-scroll[data-scroll-ready="true"] .project-card__media {
    min-height: 0;
    aspect-ratio: auto;
  }

  html[data-js="true"] .projects-scroll[data-scroll-ready="true"] .project-card__meta {
    padding-top: clamp(0.9rem, 2vh, 1.4rem);
  }

  html[data-js="true"] .projects-scroll[data-scroll-ready="true"] .project-card__identity {
    display: grid;
    min-height: clamp(5.4rem, 8.5vw, 8.75rem);
    align-content: end;
  }

  html[data-js="true"] .projects-scroll[data-scroll-ready="true"] .carousel-dots {
    padding-top: clamp(0.75rem, 1.8vh, 1.5rem);
  }
}

@media (max-width: 44rem) {
  :root {
    --page-x: clamp(1.25rem, 5.4vw, 2rem);
    --page-y: clamp(1.4rem, 6vw, 2.25rem);
  }

  .hero {
    min-height: 36rem;
  }

  .hero-service-link {
    top: 17%;
    max-width: 13ch;
    font-size: 0.85rem;
  }

  .site-header {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    gap: 1rem;
  }

  .identity {
    align-items: flex-start;
    flex-direction: column;
    gap: 0.35rem;
    white-space: normal;
  }

  .identity__name,
  .identity__role,
  .site-nav a,
  .language-toggle {
    font-size: clamp(0.875rem, 3.8vw, 1.125rem);
  }

  .identity__role {
    max-width: 10rem;
    line-height: 1.2;
  }

  .header-actions {
    align-items: flex-start;
    gap: clamp(0.75rem, 3.2vw, 1.25rem);
  }

  .site-nav {
    gap: clamp(0.8rem, 3.5vw, 1.4rem);
  }

  .site-nav a[href="#contato"] {
    display: none;
  }

  .language-toggle {
    width: 2.75rem;
    height: 2.75rem;
    margin-top: 0;
  }

  .site-nav a {
    display: flex;
    min-width: 2.75rem;
    height: 2.75rem;
    align-items: center;
    justify-content: center;
  }

  .portrait {
    top: 25.5%;
    width: clamp(14.5rem, 64vw, 27rem);
  }

  .hero-title {
    bottom: clamp(1.25rem, 5vw, 2rem);
    font-size: 23.5vw;
    line-height: 0.76;
  }

  .hero-title__break {
    display: block;
  }

  .services-section,
  .approach-section {
    padding-top: clamp(5.5rem, 20vw, 8rem);
    padding-bottom: clamp(5.5rem, 20vw, 8rem);
  }

  .services-section {
    display: block;
  }

  .services-section__intro,
  .approach-section__heading {
    display: block;
  }

  .services-section__intro h2,
  .approach-section__heading h2 {
    margin-top: 2rem;
    font-size: clamp(2.7rem, 11vw, 4.5rem);
  }

  .services-section__intro p:last-child {
    margin-top: 2rem;
  }

  .service-list,
  .approach-steps {
    margin-top: 4rem;
  }

  .service-item {
    grid-template-columns: 2rem minmax(0, 1fr);
    gap: 0.75rem;
  }

  .service-item__body {
    grid-column: 2;
    grid-row: 1;
  }

  .service-item h3 {
    font-size: clamp(1.8rem, 7vw, 2.5rem);
  }

  .service-item__detail {
    margin-bottom: 0.9rem;
  }

  .services-section__closing {
    display: block;
  }

  .services-section__closing a {
    display: inline-block;
    margin-top: 1.5rem;
  }

  .approach-steps {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 2rem 1.25rem;
  }

  .projects-section {
    min-height: auto;
    padding-top: clamp(5.5rem, 20vw, 8rem);
    padding-bottom: clamp(5.5rem, 20vw, 8rem);
  }

  .projects-section__header {
    align-items: center;
    padding-bottom: clamp(2.25rem, 10vw, 3.5rem);
    grid-template-columns: minmax(0, 1fr) auto;
    gap: 1.5rem 1rem;
  }

  .projects-section__header h2 {
    grid-column: 1 / -1;
    font-size: clamp(3.6rem, 17vw, 6.4rem);
  }

  .carousel-status {
    grid-column: 1;
    grid-row: 2;
    min-width: auto;
    justify-content: flex-start;
  }

  .carousel-status [data-carousel-current] {
    font-size: 1.65rem;
  }

  .carousel-controls {
    grid-column: 2;
    grid-row: 2;
  }

  .carousel-controls button {
    width: 3rem;
    height: 3rem;
  }

  .project-track {
    padding-inline: var(--page-x);
    gap: 1rem;
    scroll-padding-inline: var(--page-x);
  }

  .project-slide {
    flex-basis: min(84vw, 33rem);
  }

  .project-card__media {
    aspect-ratio: 4 / 3;
  }

  .project-card__meta {
    display: grid;
    padding-top: 1.1rem;
    grid-template-columns: minmax(0, 1fr);
    gap: 1rem;
  }

  .project-card h3 {
    font-size: clamp(2rem, 9vw, 3.25rem);
  }

  .project-card__link {
    display: inline-block;
    width: fit-content;
    margin-top: 0;
    padding-bottom: 0.1rem;
  }

  .project-card__summary {
    max-width: 32ch;
  }

  .carousel-dots {
    padding-top: 2.25rem;
  }

  .contact-section {
    min-height: 100svh;
    padding-top: clamp(6rem, 22vw, 9rem);
    padding-bottom: var(--page-y);
    gap: clamp(6rem, 24vw, 10rem);
  }

  .contact-section__title {
    max-width: none;
    font-size: clamp(2.9rem, 14.5vw, 6.5rem);
    line-height: 0.82;
  }

  .contact-section__footer {
    display: block;
  }

  .contact-section::before {
    right: -52%;
    bottom: 20%;
    width: 145%;
    opacity: 0.12;
  }

  .contact-section__footer > p:first-child {
    margin-bottom: 2.25rem;
  }

  .contact-section__copyright {
    margin-top: clamp(5rem, 22vw, 8rem) !important;
  }

  .contact-section__actions {
    width: 100%;
  }

  .contact-section__whatsapp {
    width: 100%;
  }
}

@media (max-width: 25rem) {
  .hero-service-link {
    top: 17%;
    font-size: 0.75rem;
  }

  .approach-steps {
    grid-template-columns: 1fr;
  }
  .site-header {
    gap: 0.65rem;
  }

  .header-actions {
    gap: 0.65rem;
  }

  .site-nav {
    gap: 0.75rem;
  }

  .identity__name,
  .identity__role,
  .site-nav a,
  .language-toggle {
    font-size: 0.82rem;
  }

  .language-toggle {
    width: 2.75rem;
    height: 2.75rem;
  }
}

@media (max-height: 42rem) and (min-width: 44.01rem) {
  .portrait {
    top: 17.5%;
    width: clamp(13rem, 17vw, 18rem);
  }
}

@keyframes header-enter {
  from {
    opacity: 0;
    transform: translateY(-0.65rem);
  }
}

@keyframes portrait-reveal {
  from {
    clip-path: inset(0 0 100% 0);
    transform: translateX(-50%) translateY(0.9rem);
  }
}

@keyframes title-enter {
  from {
    opacity: 0;
    transform: translateY(28%);
  }
}

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

  .site-header,
  .portrait,
  .hero-title__copy {
    animation-duration: 1ms;
    animation-delay: 0ms;
  }

  .portrait {
    animation-name: reduced-fade;
  }

  .project-track {
    scroll-behavior: auto;
  }

  .project-card__media img,
  .carousel-dots button::before {
    transition: none;
  }

}

@keyframes reduced-fade {
  from {
    opacity: 0;
  }
}
