:root {
  --color-ink: #1f1c1a;
  --color-text: #403d39;
  --color-muted: #645c55;
  --color-sand: #ece7e4;
  --color-taupe: #cec4bc;
  --color-surface: #ffffff;
  --color-contrast: #403d39;
  --color-line: rgba(31, 28, 26, 0.08);
  --shadow-soft: 0 22px 60px rgba(31, 28, 26, 0.12);
  --shadow-card: 0 30px 70px rgba(31, 28, 26, 0.18);
  --ease-out: cubic-bezier(0.22, 1, 0.36, 1);
  --container-width: min(1120px, calc(100vw - 48px));
  --header-height: 84px;
  --section-space: clamp(88px, 10vw, 144px);
  --font-sans: "Poppins", "Segoe UI", sans-serif;
}

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

html {
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--header-height) + 18px);
}

body {
  margin: 0;
  min-width: 320px;
  font-family: var(--font-sans);
  color: var(--color-text);
  background: var(--color-surface);
  overflow-x: hidden;
  text-rendering: optimizeLegibility;
  -webkit-font-smoothing: antialiased;
}

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

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

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

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

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.container {
  width: var(--container-width);
  margin: 0 auto;
}

.eyebrow,
.section-label {
  color: var(--color-surface);
  font-size: 0.82rem;
  letter-spacing: 0.22em;
  line-height: 1.6;
  text-transform: uppercase;
}

.eyebrowe {
  color: var(--color-muted);
  font-size: 0.82rem;
  letter-spacing: 0.22em;
  line-height: 1.6;
  text-transform: uppercase;
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  min-height: 48px;
  padding: 0 1.6rem;
  border-radius: 999px;
  border: 1px solid transparent;
  font-size: 0.98rem;
  font-weight: 500;
  transition: transform 0.35s var(--ease-out), box-shadow 0.35s var(--ease-out),
    background-color 0.35s var(--ease-out), color 0.35s var(--ease-out);
}

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

.button--dark {
  color: var(--color-surface);
  background: var(--color-ink);
  box-shadow: var(--shadow-soft);
}

.button--dark:hover {
  box-shadow: 0 26px 64px rgba(31, 28, 26, 0.2);
}

.button--compact {
  min-height: 46px;
  padding: 0 1.5rem;
}

.button_contact{
  justify-content: left;
  display: flex;
  position: absolute;
  bottom: 1.8rem;
}

.text-link {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  color: var(--color-ink);
  left: 20px;
  font-size: 1rem;
  font-weight: 500;
  position: relative;
}

.text-link::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: -0.35rem;
  width: 100%;
  height: 1px;
  background: currentColor;
  transform: scaleX(0.3);
  transform-origin: left center;
  opacity: 0;
  transition: transform 0.35s var(--ease-out), opacity 0.35s var(--ease-out);
}

.text-link:hover::after,
.text-link:focus-visible::after {
  transform: scaleX(1);
  opacity: 1;
}

.section {
  padding: var(--section-space) 0;
}

.section-heading {
  display: grid;
  gap: 1rem;
  max-width: 34rem;
}

.section-heading--center {
  justify-items: center;
  text-align: center;
  margin: 0 auto;
  max-width: 52rem;
}

.section-heading h2,
.projects__heading h2,
.contact-callout h2 {
  color: var(--color-ink);
  font-size: clamp(2.6rem, 4.2vw, 4rem);
  font-weight: 400;
  letter-spacing: -0.05em;
  line-height: 0.98;
}

.section-heading p,
.contact-callout p:last-child,
.clients__copy p:last-child {
  color: var(--color-muted);
  font-size: 1.04rem;
  line-height: 1.85;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  backdrop-filter: blur(18px);
  background: rgba(255, 255, 255, 0.84);
  border-bottom: 1px solid var(--color-line);
}

.site-header__inner {
  min-height: var(--header-height);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 2rem;
}

.brand {
  display: inline-flex;
  align-items: center;
  flex: 0 0 auto;
}

.brand img {
  width: min(220px, 48vw);
  height: auto;
}

.site-nav {
  display: flex;
  align-items: center;
  gap: clamp(1.1rem, 2vw, 2rem);
}

.site-nav a:not(.button) {
  color: var(--color-text);
  font-size: 0.98rem;
  transition: color 0.3s ease, transform 0.3s ease;
}

.site-nav a:not(.button):hover,
.site-nav a:not(.button):focus-visible {
  color: var(--color-ink);
  transform: translateY(-1px);
}

.nav-toggle {
  display: none;
  width: 48px;
  height: 48px;
  padding: 0;
  border: 1px solid rgba(31, 28, 26, 0.14);
  border-radius: 999px;
  background: #f5f2ef;
  box-shadow: 0 14px 28px rgba(31, 28, 26, 0.08);
  align-items: center;
  justify-content: center;
  flex-direction: column;
  gap: 4px;
  cursor: pointer;
}

.nav-toggle__line {
  width: 18px;
  height: 2px;
  background: var(--color-ink);
  transition: transform 0.3s ease, opacity 0.3s ease;
}

.hero {
  display: grid;
  grid-template-columns: minmax(0, 0.95fr) minmax(0, 1.05fr);
  min-height: min(720px, calc(100svh - var(--header-height)));
  background: var(--color-sand);
}

.hero__content {
  display: flex;
  align-items: center;
  background: var(--color-sand);
}

.hero__content-inner {
  width: min(560px, calc(100% - 4rem));
  margin: 0 auto;
  padding: clamp(4.5rem, 8vw, 7rem) 0;
}

.hero h1 {
  color: var(--color-ink);
  font-size: clamp(3.6rem, 7vw, 6rem);
  font-weight: 400;
  letter-spacing: -0.075em;
  line-height: 0.94;
  margin-top: 1rem;
}

.hero__lead {
  max-width: 34rem;
  margin-top: 1.9rem;
  color: var(--color-muted);
  font-size: clamp(1.02rem, 1.45vw, 1.22rem);
  line-height: 1.9;
}

.hero .text-link {
  margin-top: 2.2rem;
}

.hero__media,
.image-band {
  position: relative;
  overflow: hidden;
}

.hero__media img,
.image-band > img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transform: translate3d(0, var(--parallax-offset, 0px), 0) scale(1.035);
  transform-origin: center center;
  transition: transform 0.45s ease-out;
}

.section--firm {
  background: var(--color-surface);
}

.firm {
  display: grid;
  grid-template-columns: minmax(0, 0.72fr) minmax(0, 1fr);
  gap: clamp(2rem, 8vw, 8rem);
  align-items: start;
}

.firm__heading {
  position: sticky;
  top: calc(var(--header-height) + 2.5rem);
}

.section-label {
  color: var(--color-ink);
  font-size: clamp(2rem, 3vw, 3rem);
  font-weight: 400;
  letter-spacing: -0.05em;
  line-height: 1.05;
  text-transform: none;
}

.firm__content {
  max-width: 37rem;
}

.prose {
  display: grid;
  gap: 1.4rem;
  color: var(--color-muted);
  font-size: 1.04rem;
  line-height: 1.9;
}

.person-badge {
  display: inline-flex;
  align-items: center;
  gap: 1rem;
  margin-top: 2.25rem;
}

.person-badge img,
.member img {
  width: 84px;
  height: 84px;
  border-radius: 50%;
  object-fit: cover;
  border: 3px solid rgba(255, 255, 255, 0.9);
  box-shadow: 0 16px 36px rgba(31, 28, 26, 0.12);
}

.person-badge figcaption,
.member div {
  display: grid;
  gap: 0.2rem;
}

.person-badge strong,
.member h3 {
  color: var(--color-ink);
  font-size: 1.22rem;
  font-weight: 500;
  line-height: 1.2;
}

.person-badge span,
.member p {
  color: var(--color-muted);
  line-height: 1.5;
}

.image-band {
  min-height: clamp(380px, 56vw, 600px);
}

.image-band > img {
  position: absolute;
  inset: 0;
}

.image-band__inner {
  position: relative;
  z-index: 1;
  min-height: inherit;
  display: flex;
  padding: clamp(2rem, 5vw, 4rem) 0;
}

.image-band__text {
  max-width: 19rem;
  gap: 0.55rem;
  align-content: start;
}

.image-band__text p:last-child {
  color: var(--color-muted);
  font-size: 1.02rem;
  line-height: 1.75;
}

.image-band--bottom-right .image-band__inner {
  align-items: center;
  justify-content: end;
}

.image-band--center-right .image-band__inner {
  align-items: center;
  justify-content: end;
}

.image-band--center-left .image-band__inner {
  align-items: center;
  justify-content: start;
}

.section--process {
  text-align: center;
}

.process-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: clamp(1.5rem, 3vw, 3rem);
  margin-top: 4rem;
}

.process-card {
  display: grid;
  justify-items: center;
  gap: 1.15rem;
  padding: 0 1rem;
}

.process-card__icon {
  width: 116px;
  height: 116px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  background: var(--color-contrast);
  box-shadow: var(--shadow-soft);
  transition: transform 0.45s var(--ease-out), box-shadow 0.45s var(--ease-out);
}

.process-card__icon img {
  width: 44px;
  height: 44px;
  object-fit: contain;
  filter: brightness(0) invert(1);
}

.process-card:hover .process-card__icon {
  transform: translateY(-8px);
  box-shadow: var(--shadow-card);
}

.process-card h3 {
  color: var(--color-ink);
  font-size: 1.6rem;
  font-weight: 400;
}

.process-card p {
  color: var(--color-muted);
  font-size: 1.02rem;
  line-height: 1.8;
  max-width: 18rem;
}

.section--clients {
  background: var(--color-contrast);
  color: var(--color-surface);
}

.clients {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: clamp(2.5rem, 7vw, 7rem);
  align-items: center;
}

.clients__copy h2 {
  color: var(--color-surface);
  font-size: clamp(2.3rem, 3.8vw, 3.45rem);
  font-weight: 400;
  letter-spacing: -0.05em;
  line-height: 1;
  margin-top: 0.65rem;
}

.clients__copy p:last-child {
  margin-top: 1.35rem;
  color: rgba(255, 255, 255, 0.78);
}

.clients__logos {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 5rem 3.5rem;
  align-items: center;
}

.clients__logos img {
  max-width: 128px;
  width: auto;
  justify-self: center;
  opacity: 0.95;
  transition: opacity 0.35s ease, transform 0.35s ease;
}

.clients__logos img:hover {
  opacity: 1;
  transform: translateY(-3px);
}

.section--projects {
  background: linear-gradient(180deg, #f7f4f2 0%, #f7f4f2 60%, #ffffff 60%);
}

.projects__heading {
  max-width: 33rem;
}

.projects-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1.2rem;
  margin-top: 3.5rem;
}

.project-card {
  position: relative;
  min-height: 28rem;
  overflow: hidden;
  background: #ece7e4;
}

.project-card img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.85s var(--ease-out), filter 0.5s ease;
}

.project-card::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(
    180deg,
    rgba(255, 255, 255, 0.82) 0%,
    rgba(255, 255, 255, 0.08) 46%,
    rgba(31, 28, 26, 0.75) 100%
  );
  opacity: 0;
  transition: opacity 0.45s ease;
}

.project-card__content {
  position: absolute;
  inset: 0;
  z-index: 1;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  padding: 1.8rem;
  opacity: 0;
  transform: translateY(18px);
  transition: opacity 0.45s var(--ease-out), transform 0.45s var(--ease-out);
}

.project-card__meta {
  display: grid;
  gap: 0.3rem;
}

.project-card__meta h3 {
  color: var(--color-ink);
  font-size: 2rem;
  font-weight: 400;
  line-height: 1.05;
  max-width: 10ch;
}

.project-card:hover img,
.project-card:focus-within img {
  transform: scale(1.06);
}

.project-card:hover::after,
.project-card:focus-within::after,
.project-card--active::after {
  opacity: 1;
}

.project-card:hover .project-card__content,
.project-card:focus-within .project-card__content,
.project-card--active .project-card__content {
  opacity: 1;
  transform: translateY(0);
}

.projects__footer {
  display: flex;
  justify-content: center;
  margin-top: 2.7rem;
}

.text-link--center {
  justify-content: center;
}

.section--team {
  background: var(--color-surface);
}

.team {
  display: grid;
  grid-template-columns: minmax(280px, 360px) minmax(0, 1fr);
  gap: clamp(2.5rem, 6vw, 6.5rem);
  align-items: start;
}

.team__intro {
  display: grid;
  gap: 1.75rem;
}

.team__members {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1.65rem 3rem;
}

.member {
  display: flex;
  align-items: center;
  gap: 1rem;
}

.section--contact {
  background: var(--color-taupe);
}

.contact-callout {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 2rem;
}

.contact-callout .eyebrow {
  margin-bottom: 0.75rem;
}

.contact-callout h2 {
  max-width: 13ch;
}

.site-footer {
  padding: 3rem 0 3.8rem;
}

.site-footer__inner {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 2rem;
}

.site-footer__copy {
  display: grid;
  gap: 0.35rem;
}

.brand--footer {
  margin-bottom: 0.7rem;
}

.site-footer__copy p {
  color: var(--color-muted);
  line-height: 1.7;
}

.socials {
  display: flex;
  align-items: center;
  gap: 0.85rem;
}

.socials a {
  width: 46px;
  height: 46px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  transition: transform 0.35s var(--ease-out), background-color 0.35s ease;
}

.socials a:hover {
  transform: translateY(-3px);
}

.socials img {
  width: 20px;
  height: 20px;
  object-fit: contain;
}

[data-reveal] {
  opacity: 0;
  transition: opacity 0.9s var(--ease-out), transform 0.9s var(--ease-out);
  transition-delay: var(--delay, 0ms);
}

[data-reveal="up"] {
  transform: translate3d(0, 34px, 0);
}

[data-reveal="left"] {
  transform: translate3d(42px, 0, 0);
}

[data-reveal="right"] {
  transform: translate3d(-42px, 0, 0);
}

[data-reveal].is-visible {
  opacity: 1;
  transform: translate3d(0, 0, 0);
}

@media (max-width: 1100px) {
  .hero {
    grid-template-columns: 1fr;
  }

  .hero__content {
    order: 1;
  }

  .hero__media {
    order: 2;
    min-height: 54svh;
  }

  .firm,
  .clients,
  .team,
  .contact-callout {
    grid-template-columns: 1fr;
  }

  .firm__heading {
    position: static;
  }

  .projects-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .project-card:last-child {
    grid-column: 1 / -1;
  }
}

@media (max-width: 1100px) {
  :root {
    --container-width: min(100vw - 32px, 1120px);
  }

  .site-header__inner {
    align-items: center;
    flex-wrap: wrap;
    gap: 0.85rem;
    padding: 0.85rem 0;
  }

  .nav-toggle {
    display: none !important;
  }

  .site-nav {
    position: static;
    width: 100%;
    display: flex;
    gap: 0.9rem;
    overflow-x: auto;
    padding: 0 0 0.2rem;
    background: transparent;
    border: 0;
    border-radius: 0;
    box-shadow: none;
    opacity: 1;
    pointer-events: auto;
    transform: none;
    scrollbar-width: none;
  }

  .site-nav::-webkit-scrollbar {
    display: none;
  }

  .site-nav a {
    white-space: nowrap;
    flex: 0 0 auto;
  }

  .site-nav .button {
    margin-left: auto;
  }

  .projects-grid,
  .team__members {
    grid-template-columns: 1fr;
  }

  .project-card:last-child {
    grid-column: auto;
  }

  .process-grid {
    grid-template-columns: 1fr;
    justify-items: center;
  }

  .clients__logos {
    gap: 1.5rem;
  }
}

@media (max-width: 640px) {
  :root {
    --header-height: 74px;
    --section-space: clamp(72px, 16vw, 112px);
  }

  .site-header__inner {
    min-height: var(--header-height);
  }

  .hero__content-inner {
    width: min(100%, calc(100% - 1rem));
  }

  .hero__media {
    min-height: 38svh;
  }

  .hero h1 {
    max-width: 7ch;
  }

  .hero__lead {
    max-width: 20rem;
  }

  .brand img {
    width: min(200px, 58vw);
  }

  .site-nav .button {
    display: none;
  }

  .image-band {
    min-height: 320px;
  }

  .image-band__inner {
    align-items: end;
    justify-content: start;
  }

  .image-band__text {
    max-width: 15.5rem;
  }

  .project-card {
    min-height: 23rem;
  }

  .project-card__meta h3 {
    font-size: 1.75rem;
  }

  .contact-callout {
    align-items: start;
  }

  .site-footer__inner {
    flex-direction: column;
    align-items: start;
  }
}

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

  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }

  [data-reveal] {
    opacity: 1 !important;
    transform: none !important;
  }

  .hero__media img,
  .image-band > img {
    transform: none !important;
  }
}
