/* Homepage — Figma home 718:2724 */

body.is-home {
  overflow-x: clip;
}

.home-wrap {
  width: 100%;
  max-width: var(--container);
  margin-inline: auto;
}

/* Hero
   -------------------------------------------------------------------------- */
.home-hero {
  position: relative;
  min-height: 58.125rem;
  height: 100svh;
  max-height: 58.125rem;
  overflow: hidden;
  color: var(--color-primary);
  background: #1a1816;
}

.home-hero__media {
  position: absolute;
  inset: 0;
  z-index: 0;
  overflow: hidden;
  contain: layout paint style;
  pointer-events: none;
}

.home-hero__poster,
.home-hero__video {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
}

/* Still heroes only. Scaling a playing video resamples every frame and reads as shake. */
.home-hero:not(.has-video) .home-hero__poster {
  transform: scale(1);
  transform-origin: center center;
  animation: rma-hero-ken 18s var(--anim-ease, cubic-bezier(0.22, 1, 0.36, 1)) forwards;
}

@keyframes rma-hero-ken {
  from {
    transform: scale(1);
  }
  to {
    transform: scale(1.04);
  }
}

@media (prefers-reduced-motion: reduce) {
  .home-hero:not(.has-video) .home-hero__poster {
    animation: none;
  }
}

.home-hero__poster {
  z-index: 0;
  transition: opacity 0.7s ease;
}

.home-hero__video {
  z-index: 1;
  opacity: 0;
  transition: opacity 0.7s ease;
}

.home-hero__video.is-ready {
  opacity: 1;
}

.home-hero.has-video.is-video-playing .home-hero__poster {
  opacity: 0;
}

.home-hero__copy {
  position: relative;
  z-index: 2;
  display: grid;
  place-items: center;
  height: 100%;
  padding: calc(var(--header-h) + 1rem) var(--gutter) 2rem;
}

.home-hero__title {
  margin: 0;
  max-width: min(72rem, 92vw);
  text-align: center;
  font-weight: 300;
  font-size: var(--fs-hero);
  line-height: 0.9;
  letter-spacing: -0.06em;
  color: var(--color-primary);
}

.home-hero__mist {
  display: block;
}

.home-hero__line {
  display: block;
}

.home-hero__line--bold {
  font-weight: 300;
}

.home-hero__line--sub {
  margin-block-start: 0.35em;
  font-size: var(--fs-hero-sub);
  font-weight: 300;
  line-height: 1.15;
  letter-spacing: -0.03em;
}

.home-hero__wa {
  position: absolute;
  inset-inline-start: 1.5rem;
  inset-block-end: 2rem;
  z-index: 2;
  display: grid;
  place-items: center;
  width: 62px;
  height: 62px;
  border-radius: 50%;
  background: var(--color-primary);
}

.home-hero__wa img {
  width: 30px;
  height: 30px;
}



/* Intro
   -------------------------------------------------------------------------- */
.home-intro {
  position: relative;
  overflow: hidden;
  padding-block: 6.25rem;
  background: var(--color-bg);
}

.home-intro__ornament {
  position: absolute;
  right: 0;
  top: 50%;
  z-index: 0;
  width: min(34vw, 34.75rem); /* 556px */
  height: auto;
  max-height: 53.75rem; /* 860px */
  object-fit: contain;
  object-position: right center;
  transform: translateY(-50%);
  pointer-events: none;
  user-select: none;
}

html[dir="ltr"] .home-intro__ornament {
  right: auto;
  left: 0;
  object-position: left center;
  transform: translateY(-50%) scaleX(-1);
}

.home-intro__grid {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: minmax(0, 0.4fr) minmax(0, 0.6fr);
  gap: 5rem;
  align-items: start;
}

.home-intro__copy {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 1.5rem;
}

.home-intro__text {
  color: var(--color-secondary);
}

.home-intro__text p {
  margin: 0 0 1.1em;
}

.home-intro__text p:last-child {
  margin-bottom: 0;
}

.home-intro__title {
  margin: 0;
  font-size: var(--fs-stat);
  font-weight: 300;
  line-height: 1.05;
  letter-spacing: -0.05em;
  color: var(--color-secondary);
  text-align: start;
}

.home-intro__title strong,
.home-intro__title b,
.home-projects__title strong,
.home-projects__title b,
.home-expertise__title strong,
.home-expertise__title b,
.home-strengths__title strong,
.home-strengths__title b,
.home-process__title strong,
.home-process__title b,
.home-map__title strong,
.home-map__title b {
  font-weight: 600;
}

.rma-rich > *:first-child {
  margin-top: 0;
}

.rma-rich > *:last-child {
  margin-bottom: 0;
}

.rma-rich p {
  margin: 0 0 1em;
}

.rma-rich p:last-child {
  margin-bottom: 0;
}

.rma-rich a {
  /* Warm darkened accent — distinct from body text, ~4.7:1 on --color-bg. */
  color: #8c694a;
  text-decoration: underline;
  text-underline-offset: 0.2em;
  text-decoration-thickness: 1.5px;
  text-decoration-color: color-mix(in srgb, #8c694a 55%, transparent);
  transition: color 0.2s ease, text-decoration-color 0.2s ease;
}

.rma-rich a:hover,
.rma-rich a:focus-visible {
  color: var(--color-secondary, #252525);
  text-decoration-color: currentColor;
}

/* Numbers
   -------------------------------------------------------------------------- */
.home-numbers {
  background: var(--color-bg);
  border-block: 1px solid var(--color-primary);
  padding-inline: 0 !important;
}

.home-numbers__row {
  display: grid;
  grid-template-columns: repeat(var(--numbers-count, 4), minmax(0, 1fr));
  align-items: stretch;
  width: 100%;
  gap: 1px;
  background: var(--color-primary);
}

.home-numbers__item {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 1.5rem;
  padding: clamp(2rem, 1.2rem + 2vw, 3.5rem) clamp(1rem, 0.4rem + 2vw, 4.5rem);
  text-align: center;
  background: var(--color-bg);
}

.home-numbers__value {
  margin: 0;
  font-size: var(--fs-stat);
  font-weight: 300;
  line-height: 0.855;
  letter-spacing: -0.05em;
  color: var(--color-secondary);
}

.home-numbers__text {
  margin: 0;
  max-width: 22rem;
  font-size: var(--fs-body);
  font-weight: 300;
  letter-spacing: var(--track);
  line-height: 1.2;
  color: var(--color-secondary);
}

.home-numbers__text p {
  margin: 0;
}

/* Projects
   -------------------------------------------------------------------------- */
.home-projects {
  /* Intrinsic card art 492×620 — same ratio on every breakpoint */
  --project-media-ratio: 492 / 620;
  --projects-visible: 3;
  --projects-peek: 8%;
  --projects-slide-pad: 2rem;
  position: relative;
  overflow: hidden;
  padding-block: 9.375rem 9.375rem;
  padding-inline: 0;
  background: linear-gradient(
    224deg,
    var(--color-primary) 0%,
    var(--color-bg) 50.5%
  );
  border-bottom: 1px solid var(--color-primary);
}

.home-projects__ornament {
  position: absolute;
  left: 0;
  bottom: 0;
  z-index: 0;
  width: 49rem; /* 784px */
  max-width: 55vw;
  height: auto;
  max-height: 30.5rem; /* 488px */
  object-fit: contain;
  object-position: left bottom;
  pointer-events: none;
  user-select: none;
}

.home-projects__head {
  position: relative;
  z-index: 1;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 2rem;
  margin-bottom: 2.5rem;
  padding-inline: var(--gutter);
}

.home-projects__titles {
  text-align: start;
}

.home-projects__title {
  margin: 0;
  font-size: var(--fs-h2);
  font-weight: 400;
  letter-spacing: -0.05em;
  line-height: 1.1;
  color: var(--color-secondary);
}

.home-projects__text {
  margin: 0.15rem 0 0;
}

.home-projects__slider {
  --projects-slider-inset: max(var(--gutter), calc((100% - var(--container)) / 2 + var(--gutter)));
  position: relative;
  z-index: 1;
  width: 100%;
  padding-inline-start: var(--projects-slider-inset);
  padding-inline-end: 0;
  overflow: hidden;
}

.home-projects__nav {
  position: absolute;
  top: 0;
  z-index: 4;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 20px;
  /* Match first-card media box so arrows stay vertically centered on the image */
  width: calc(
    (100% - var(--projects-slider-inset) - var(--projects-peek)) / var(--projects-visible)
    - var(--projects-slide-pad)
  );
  aspect-ratio: var(--project-media-ratio);
  height: auto;
  pointer-events: none;
  direction: ltr;
}

/* Straddle the first card’s start edge: half on image, half in the side gutter. */
html[dir="rtl"] .home-projects__nav {
  right: var(--projects-slider-inset);
  left: auto;
  transform: translateX(50%);
}

html[dir="ltr"] .home-projects__nav {
  left: var(--projects-slider-inset);
  right: auto;
  transform: translateX(-50%);
}

.home-projects__arrow {
  pointer-events: auto;
  display: grid;
  place-items: center;
  width: 3.25rem;
  height: 3.25rem;
  margin: 0;
  padding: 0;
  border: 1px solid rgb(255 255 255 / 0.55);
  border-radius: 50%;
  color: var(--color-secondary);
  cursor: pointer;
  isolation: isolate;
  background:
    linear-gradient(180deg, rgb(255 255 255 / 0.62) 0%, rgb(255 255 255 / 0.24) 100%),
    rgb(239 231 221 / 0.38);
  box-shadow:
    0 1px 0 rgb(255 255 255 / 0.7) inset,
    0 12px 28px rgb(37 37 37 / 0.12),
    0 2px 8px rgb(37 37 37 / 0.05);
  -webkit-backdrop-filter: saturate(180%) blur(22px);
  backdrop-filter: saturate(180%) blur(22px);
  opacity: 0;
  visibility: hidden;
  transform: translateY(6px) scale(0.94);
  transition:
    opacity 0.35s cubic-bezier(0.22, 1, 0.36, 1),
    visibility 0.35s cubic-bezier(0.22, 1, 0.36, 1),
    transform 0.35s cubic-bezier(0.22, 1, 0.36, 1),
    background 0.3s ease,
    border-color 0.3s ease,
    box-shadow 0.3s ease,
    color 0.3s ease;
}

.home-projects__arrow svg {
  display: block;
  pointer-events: none;
}

.home-projects__arrow--next svg {
  transform: scaleX(-1);
}

.home-projects__slider.has-projects-nav:hover .home-projects__arrow,
.home-projects__slider.has-projects-nav:focus-within .home-projects__arrow {
  opacity: 1;
  visibility: visible;
  transform: translateY(0) scale(1);
}

.home-projects__arrow:hover,
.home-projects__arrow:focus-visible {
  background:
    linear-gradient(180deg, rgb(255 255 255 / 0.78) 0%, rgb(239 231 221 / 0.55) 100%),
    rgb(206 187 170 / 0.35);
  border-color: rgb(206 187 170 / 0.55);
  color: var(--color-secondary);
  box-shadow:
    0 1px 0 rgb(255 255 255 / 0.8) inset,
    0 16px 32px rgb(37 37 37 / 0.14);
  outline: none;
  transform: translateY(-1px) scale(1.03);
}

.home-projects__arrow:active {
  transform: translateY(0) scale(0.98);
}

@media (hover: none), (pointer: coarse) {
  .home-projects__slider.has-projects-nav .home-projects__arrow {
    opacity: 1;
    visibility: visible;
    transform: none;
  }
}

@media (prefers-reduced-motion: reduce) {
  .home-projects__arrow {
    transition: opacity 0.2s ease, visibility 0.2s ease;
    transform: none;
  }

  .home-projects__slider.has-projects-nav:hover .home-projects__arrow,
  .home-projects__slider.has-projects-nav:focus-within .home-projects__arrow,
  .home-projects__arrow:hover,
  .home-projects__arrow:focus-visible,
  .home-projects__arrow:active {
    transform: none;
  }
}

@supports not ((backdrop-filter: blur(1px)) or (-webkit-backdrop-filter: blur(1px))) {
  .home-projects__arrow {
    background: rgb(250 248 245 / 0.92);
  }
}

.home-projects__track {
  position: relative;
  margin: 0;
}

.home-projects__slide {
  padding-inline-start: 0;
  padding-inline-end: 2rem;
  box-sizing: border-box;
  height: auto;
}

.home-projects__slide .project-card,
.home-projects__slide .project-card__link {
  height: 100%;
}

.project-card {
  position: relative;
}

.project-card__statuses {
  position: absolute;
  z-index: 3;
  top: 1rem;
  inset-inline-start: 1rem;
  inset-inline-end: auto;
  display: flex;
  flex-wrap: nowrap;
  align-items: center;
  gap: 0.4rem;
  max-width: calc(100% - 2rem);
  pointer-events: none;
}

.project-card__status {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  margin: 0;
  padding: 0.4rem 0.75rem;
  border-radius: 999px;
  background: #ffffff;
  color: #252525;
  font-size: 0.9375rem;
  font-weight: 500;
  letter-spacing: 0;
  line-height: 1.2;
  box-shadow: 0 6px 18px rgb(37 37 37 / 0.12);
  cursor: default;
}

.project-card__status .icon {
  order: 1;
  display: inline-flex;
  flex: 0 0 auto;
  color: #252525;
}

.project-card__status-label {
  order: 0;
}

html[dir="rtl"] .project-card__status .icon {
  order: 0;
}

html[dir="rtl"] .project-card__status-label {
  order: 1;
}

.project-card__status .icon svg {
  display: block;
  width: 16px;
  height: 16px;
}

.project-card__link {
  display: flex;
  flex-direction: column;
  align-items: stretch;
  color: inherit;
}

.project-card__media {
  position: relative;
  overflow: hidden;
  border-radius: 15px;
  width: 100%;
  aspect-ratio: var(--project-media-ratio, 492 / 620);
  height: auto;
  background: #d7cfc4;
}

.project-card__media::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 1;
  pointer-events: none;
  background: linear-gradient(
    180deg,
    rgb(37 37 37 / 0) 55%,
    rgb(37 37 37 / 0.08) 100%
  );
  opacity: 0.35;
  transition: opacity 0.7s cubic-bezier(0.22, 1, 0.36, 1);
}

.project-card__media img,
.project-card__img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  transform: scale(1);
  transition: transform 0.45s var(--anim-ease, cubic-bezier(0.22, 1, 0.36, 1));
  will-change: transform;
}

.project-card__media--hover .project-card__img--primary,
.project-card__media--hover .project-card__img--secondary {
  position: absolute;
  inset: 0;
}

.project-card__media--hover .project-card__img--secondary {
  z-index: 0;
  opacity: 0;
  transition:
    opacity 0.2s ease,
    transform 0.45s var(--anim-ease, cubic-bezier(0.22, 1, 0.36, 1));
}

@media (hover: hover) and (pointer: fine) {
  .project-card__link:hover .project-card__media--hover .project-card__img--secondary,
  .project-card__link:focus-visible .project-card__media--hover .project-card__img--secondary {
    opacity: 1;
  }
}

@media (prefers-reduced-motion: reduce) {
  .project-card__media--hover .project-card__img--secondary {
    transition: none;
  }
}

.project-card__cta {
  position: absolute;
  inset-inline-end: 1rem;
  inset-block-end: 1rem;
  z-index: 2;
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: #efe7dd;
  color: #252525;
  box-shadow: 0 4px 14px rgb(37 37 37 / 0);
  transform: translateY(0) scale(1);
  transition:
    transform 0.7s cubic-bezier(0.22, 1, 0.36, 1),
    box-shadow 0.7s cubic-bezier(0.22, 1, 0.36, 1),
    background 0.7s cubic-bezier(0.22, 1, 0.36, 1);
}

.project-card__cta-icon {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  color: inherit;
  transition:
    opacity 0.55s cubic-bezier(0.33, 1, 0.68, 1),
    transform 0.7s cubic-bezier(0.22, 1, 0.36, 1),
    filter 0.55s cubic-bezier(0.33, 1, 0.68, 1);
}

.project-card__cta-icon .icon,
.project-card__cta-icon svg {
  width: 18px;
  height: 18px;
  display: block;
}

.project-card__cta-icon--plus {
  opacity: 1;
  transform: scale(1);
  filter: blur(0);
}

.project-card__cta-icon--arrow {
  opacity: 0;
  transform: scale(0.82);
  filter: blur(1.5px);
}

.project-card__link:hover .project-card__media img,
.project-card__link:focus-visible .project-card__media img {
  transform: scale(1.03);
}

.project-card__link:hover .project-card__media::after,
.project-card__link:focus-visible .project-card__media::after {
  opacity: 0.7;
}

.project-card__link:hover .project-card__cta,
.project-card__link:focus-visible .project-card__cta {
  transform: translateY(-3px) scale(1.05);
  box-shadow: 0 10px 22px rgb(37 37 37 / 0.12);
  background: #f4ede4;
}

.project-card__link:hover .project-card__cta-icon--plus,
.project-card__link:focus-visible .project-card__cta-icon--plus {
  opacity: 0;
  transform: scale(0.78);
  filter: blur(1.5px);
  transition-delay: 0s;
}

.project-card__link:hover .project-card__cta-icon--arrow,
.project-card__link:focus-visible .project-card__cta-icon--arrow {
  opacity: 1;
  transform: scale(1);
  filter: blur(0);
  transition-delay: 0.06s;
}

@media (prefers-reduced-motion: reduce) {
  .project-card__media::after,
  .project-card__media img,
  .project-card__cta,
  .project-card__cta-icon {
    transition: none;
  }

  .project-card__cta-icon--arrow {
    filter: none;
  }

  .project-card__link:hover .project-card__media img,
  .project-card__link:focus-visible .project-card__media img,
  .project-card__link:hover .project-card__cta,
  .project-card__link:focus-visible .project-card__cta,
  .project-card__link:hover .project-card__cta-icon--plus,
  .project-card__link:focus-visible .project-card__cta-icon--plus,
  .project-card__link:hover .project-card__cta-icon--arrow,
  .project-card__link:focus-visible .project-card__cta-icon--arrow {
    transform: none;
    filter: none;
  }
}

.project-card__body {
  padding: 1.25rem 0;
  display: grid;
  gap: 0.5rem;
  text-align: start;
}

.project-card__title {
  margin: 0;
  font-size: var(--fs-h4);
  font-weight: 600;
  letter-spacing: -0.05em;
  line-height: 1.2;
}

.project-card__text {
  margin: 0;
  font-size: var(--fs-body);
  font-weight: 300;
  letter-spacing: var(--track);
  line-height: var(--lh-body);
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

/* Expertise + strengths
   -------------------------------------------------------------------------- */
.home-expertise {
  padding-top: 9.375rem;
  background: var(--color-bg);
}

.home-expertise__title {
  text-align: center;
  font-size: var(--fs-h2);
  font-weight: 400;
  letter-spacing: -0.05em;
  line-height: 1.1;
}

.home-expertise__head {
	display: grid;
	gap: 12px;
	justify-items: center;
	margin-bottom: 2.5rem;
	text-align: center;
}

.home-expertise__head .home-expertise__title,
.home-expertise__head .home-expertise__subtitle {
	margin: 0;
	padding: 0;
}

.home-expertise__subtitle {
	max-width: 40rem;
	color: var(--color-muted);
}

.expertise-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1.5rem;
  margin-bottom: 1.5rem;
}

.expertise-card {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  align-items: flex-start;
  gap: 1.25rem;
  height: 32rem;
  min-height: 32rem;
  padding: 2.5rem;
  border-radius: 16px;
  background: var(--color-secondary);
  color: var(--color-primary);
}

.expertise-card__media,
.expertise-card__shade {
  position: absolute;
  inset: 0;
  pointer-events: none;
}

.expertise-card__media {
  z-index: 0;
}

.expertise-card__video {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  /* Visible at rest (paused first frame) under the shade; plays only on hover/focus via JS. */
  opacity: 1;
}

.expertise-card__shade {
  z-index: 1;
  top: auto;
  height: 72%;
  background: linear-gradient(
    to top,
    rgb(37 37 37 / 0.88) 0%,
    rgb(37 37 37 / 0.55) 42%,
    rgb(37 37 37 / 0) 100%
  );
  -webkit-backdrop-filter: blur(6px);
  backdrop-filter: blur(6px);
  -webkit-mask-image: linear-gradient(to top, #000 0%, #000 46%, transparent 100%);
  mask-image: linear-gradient(to top, #000 0%, #000 46%, transparent 100%);
  transition: backdrop-filter 0.55s ease, -webkit-backdrop-filter 0.55s ease;
}

.expertise-card__copy,
.expertise-card__foot {
  position: relative;
  z-index: 2;
}

.expertise-card__copy {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 0.5rem;
  width: 100%;
}

.expertise-card__title {
  margin: 0;
  font-size: var(--fs-h3);
  font-weight: 300;
  letter-spacing: -0.05em;
  line-height: 1.05;
}

.expertise-card__text {
  margin: 0;
  grid-column: 1;
  grid-row: 2;
  transition: opacity 0.28s ease;
}

.expertise-card__foot {
  display: flex;
  align-items: flex-start;
  gap: 1rem;
  width: 100%;
  grid-column: 1;
  grid-row: 2;
  align-self: start;
  opacity: 0;
  transform: translateY(0.4rem);
  pointer-events: none;
  transition: opacity 0.4s ease, transform 0.45s cubic-bezier(0.22, 1, 0.36, 1);
}

@media (hover: hover) and (pointer: fine) {
  .expertise-card:hover .expertise-card__text,
  .expertise-card:focus-within .expertise-card__text {
    opacity: 0;
  }

  .expertise-card:hover .expertise-card__foot,
  .expertise-card:focus-within .expertise-card__foot {
    opacity: 1;
    transform: none;
    pointer-events: auto;
  }

  .expertise-card:hover .expertise-card__shade,
  .expertise-card:focus-within .expertise-card__shade {
    -webkit-backdrop-filter: blur(0px);
    backdrop-filter: blur(0px);
  }
}

@media (hover: none), (pointer: coarse), (max-width: 768px) {
  .expertise-card__text,
  .expertise-card__foot {
    grid-column: auto;
    grid-row: auto;
  }

  .expertise-card__text,
  .expertise-card:hover .expertise-card__text,
  .expertise-card:focus-within .expertise-card__text {
    opacity: 1;
  }

  .expertise-card__foot,
  .expertise-card:hover .expertise-card__foot,
  .expertise-card:focus-within .expertise-card__foot {
    opacity: 1;
    transform: none;
    pointer-events: auto;
  }
}

@media (prefers-reduced-motion: reduce) {
  .expertise-card__text,
  .expertise-card__foot,
  .expertise-card__shade {
    transition: none;
  }
}

.expertise-card__foot .btn-outline {
  flex: 0 1 auto;
  max-width: 100%;
}

.home-strengths {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  margin-top: 0.5rem;
  padding: 3rem;
  border: 1px solid var(--color-accent);
  border-radius: 24px;
  background: var(--color-white);
}

.home-strengths::after {
  content: "";
  position: absolute;
  left: -8rem;
  bottom: -13rem;
  z-index: 0;
  width: 26rem;
  height: 26rem;
  border-radius: 50%;
  background: radial-gradient(circle, rgb(206 187 170 / 0.45), transparent 70%);
  pointer-events: none;
}

.home-strengths__head {
  position: relative;
  z-index: 1;
  margin-bottom: 3.5rem;
  text-align: center;
}

.home-strengths__title {
  margin: 0 0 1rem;
  font-size: var(--fs-h2);
  font-weight: 300;
  letter-spacing: -0.05em;
  line-height: 1.1;
}

.home-strengths__text,
.strength-card__text,
.home-strengths__num-text,
.home-process__text,
.process-step__text,
.home-intro__text,
.home-projects__text,
.home-expertise__subtitle,
.expertise-card__text {
  font-size: var(--fs-body);
  font-weight: 300;
  letter-spacing: var(--track);
  line-height: var(--lh-body);
}

.home-strengths__text,
.strength-card__text {
  margin: 0;
}

.home-strengths__num-text {
  margin: 0;
  max-width: 16rem;
  color: var(--color-secondary);
}

.home-strengths__grid {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 2rem;
}

.home-strengths__numbers {
  position: relative;
  z-index: 1;
  margin-top: 2.75rem;
  padding-top: 2.5rem;
  border-top: 1px solid rgb(206 187 170 / 0.45);
}

.home-strengths__numbers-row {
  display: grid;
  grid-template-columns: repeat(var(--numbers-count, 4), minmax(0, 1fr));
  gap: 1.5rem 2rem;
  align-items: start;
}

.home-strengths__num {
  display: flex;
  flex-direction: column;
  gap: 0.85rem;
  text-align: start;
}

.home-strengths__num-value {
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
  margin: 0;
  font-size: var(--fs-stat-sm);
  font-weight: 300;
  line-height: 0.9;
  letter-spacing: -0.05em;
  color: var(--color-secondary);
}

.home-strengths__num-value span {
  display: inline-block;
}

.home-strengths__num-icon {
  width: 1.75rem;
  height: 1.75rem;
  flex: 0 0 auto;
  object-fit: contain;
  object-position: center;
}

.home-strengths__num-text p {
  margin: 0;
}

.strength-card {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 1rem;
  height: 100%;
  min-height: 0;
  padding: 1.5rem;
  border: 1px solid rgb(255 255 255 / 0.15);
  border-radius: 20px;
  background: rgb(255 255 255 / 0.07);
  backdrop-filter: blur(12px);
}

.strength-card__logo {
  height: 64px;
  display: flex;
  align-items: center;
}

.strength-card__logo img {
  height: 100%;
  width: 100%;
  display: block;
  object-fit: contain;
  object-position: center;
}

.strength-card__title {
  margin: 0;
  font-size: var(--fs-h4);
  font-weight: 400;
  letter-spacing: -0.05em;
  line-height: 1.15;
}

.home-expertise__divider {
  display: flex;
  justify-content: center;
  width: 100%;
  height: 100px;
  overflow: hidden;
  pointer-events: none;
}

.home-expertise__divider img {
  width: 100%;
  height: 100%;
  display: block;
  object-fit: cover;
  object-position: center;
}

/* Process — scroll-pinned scrub
   -------------------------------------------------------------------------- */
.home-process {
  padding-block: 0;
  background: var(--color-bg);
}

.home-process__track {
  position: relative;
  /* One gesture should reach the next sentence. The copy crossfades inside each step. */
  height: calc(var(--process-steps, 1) * 86vh);
  height: calc(var(--process-steps, 1) * 86svh);
}

.home-process__sticky {
  position: sticky;
  top: 0;
  z-index: 2;
  display: flex;
  align-items: center;
  height: 100vh;
  height: 100svh;
  min-height: 100vh;
  min-height: 100svh;
  max-height: 100vh;
  max-height: 100svh;
  padding-block: calc(var(--header-h) + 1.5rem) 3rem;
  box-sizing: border-box;
  overflow: hidden;
  background: var(--color-bg);
}

.home-process__sticky > .home-wrap {
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: clamp(1.25rem, 2.5vh, 2.5rem);
  width: 100%;
  max-height: 100%;
  min-height: 0;
}

.home-process__head {
  max-width: 42.5rem;
  margin: 0 auto;
  flex: 0 0 auto;
  text-align: center;
}

.home-process__title {
  margin: 0;
  font-size: var(--fs-h2);
  font-weight: 400;
  letter-spacing: -0.05em;
  line-height: 1.1;
}

.home-process__text {
  margin: 1rem 0 0;
}

.home-process__stage {
  --process-stage-max: calc(100svh - var(--header-h) - 8rem);
  display: grid;
  grid-template-columns: minmax(0, 0.78fr) minmax(0, 1.32fr);
  gap: clamp(2rem, 3.5vw, 4.5rem);
  align-items: center;
  flex: 1 1 auto;
  width: 100vw;
  max-width: 100vw;
  height: auto;
  max-height: min(100svh, var(--process-stage-max));
  min-height: 0;
  margin-inline: calc(50% - 50vw);
  padding-inline: clamp(1.5rem, 4vw, 4.5rem);
  box-sizing: border-box;
}

.process-media {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  align-self: center;
  width: 100%;
  height: auto;
  max-height: min(70svh, var(--process-stage-max));
  min-height: 0;
  mix-blend-mode: darken;
  border-radius: 0;
}

.process-media__video,
.process-media__frame {
  display: block;
  width: 100%;
  height: auto;
  max-width: 100%;
  max-height: min(70svh, var(--process-stage-max));
  object-fit: contain;
  object-position: center;
}

.process-media__video {
  position: relative;
  inset: auto;
}

.process-media__frames {
  position: relative;
  inset: auto;
  width: 100%;
  max-height: min(70svh, var(--process-stage-max));
}

.process-media__frames[hidden] {
  display: none !important;
}

.process-media.has-video .process-media__frames {
  display: none !important;
}

.process-media__frame {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  max-height: none;
  object-fit: contain;
  object-position: center;
  opacity: 0;
  transition: opacity 0.45s cubic-bezier(0.22, 1, 0.36, 1);
}

.process-media__frame.is-active {
  position: relative;
  inset: auto;
  height: auto;
  max-height: min(70svh, var(--process-stage-max));
  opacity: 1;
}

.process-story {
  display: flex;
  align-items: stretch;
  gap: clamp(1.15rem, 2vw, 1.75rem);
  min-width: 0;
}

.process-copy {
  display: grid;
  position: relative;
  flex: 1 1 auto;
  min-width: 0;
  min-height: 12rem;
  overflow: hidden;
  /* Room for the sentence to drift up before the next one slides in. */
  padding-top: 1.25rem;
  margin-top: -1.25rem;
  text-align: start;
  padding-inline-start: clamp(0.5rem, 2vw, 2rem);
}

.process-rail {
  display: flex;
  flex-direction: column;
  align-items: center;
  flex: 0 0 auto;
  width: 3.4rem;
  min-height: 12rem;
  color: var(--color-text);
}

/* Hebrew: sit on the right edge of the text, not toward the image. */
html[dir="rtl"] .process-rail {
  order: -1;
}

html[dir="rtl"] .process-copy {
  padding-inline-start: 0;
}

.process-rail__index {
  margin: 0 0 0.7rem;
  font-size: 0.75rem;
  font-variant-numeric: tabular-nums;
  letter-spacing: 0.08em;
  line-height: 1;
  text-align: center;
  white-space: nowrap;
  color: var(--color-muted);
}

.process-rail__index [data-process-index-current] {
  color: var(--color-text);
}

.process-rail__index-sep {
  margin-inline: 0.3em;
}

.process-rail__track {
  position: relative;
  flex: 1 1 auto;
  width: 100%;
  min-height: 7.5rem;
}

.process-rail__line,
.process-rail__fill {
  position: absolute;
  inset-inline-start: 50%;
  top: 0;
  bottom: 0;
  width: 1px;
  margin-inline-start: -0.5px;
}

.process-rail__line {
  background: var(--color-accent);
}

.process-rail__fill {
  background: var(--color-secondary);
  transform: scaleY(var(--process-p, 0));
  transform-origin: top center;
}

.process-rail__mark {
  position: absolute;
  top: var(--mark, 0%);
  left: 50%;
  z-index: 1;
  transform: translate(-50%, -50%);
}

.process-rail__dot {
  display: block;
  width: 7px;
  height: 7px;
  box-sizing: border-box;
  border: 1px solid var(--color-accent);
  border-radius: 50%;
  background: var(--color-bg);
  box-shadow: 0 0 0 3px var(--color-bg);
}

.process-rail__mark.is-done .process-rail__dot,
.process-rail__mark.is-active .process-rail__dot {
  border-color: var(--color-secondary);
  background: var(--color-secondary);
}

.process-rail__mark.is-active .process-rail__dot {
  transform: scale(1.45);
}

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

html[dir="ltr"] .process-copy,
html[dir="ltr"] .process-step__title,
html[dir="ltr"] .process-step__text {
  text-align: left;
  direction: ltr;
}

.process-step {
  grid-area: 1 / 1;
  align-self: start;
  opacity: 0;
  visibility: hidden;
  transform: translateY(18px);
  transition:
    opacity 0.45s cubic-bezier(0.22, 1, 0.36, 1),
    transform 0.45s cubic-bezier(0.22, 1, 0.36, 1),
    visibility 0.45s;
  pointer-events: none;
}

.process-step.is-active {
  opacity: 1;
  visibility: visible;
  transform: none;
  pointer-events: auto;
}

/* Scroll writes opacity and position every frame. A transition would lag behind the finger. */
.home-process:not(.is-static):not(.is-paused) .process-step {
  transition: none;
}

.process-step__title {
  margin: 0 0 0.5rem;
  font-size: var(--fs-h3);
  font-weight: 300;
  letter-spacing: -0.05em;
  line-height: 1.15;
}

.process-step__text {
  margin: 0;
}

.home-process.is-static .home-process__track {
  height: auto;
}

.home-process.is-static .home-process__sticky {
  position: relative;
  height: auto;
  min-height: 0;
  max-height: none;
  padding-block: 6.25rem;
  overflow: visible;
}

/* Map
   -------------------------------------------------------------------------- */
.home-map {
  position: relative;
  min-height: min(890px, 100svh);
  overflow: hidden;
  background: var(--color-bg);
}

.home-map__stage {
  position: absolute;
  inset: 0;
  overflow: hidden;
  cursor: grab;
  touch-action: none;
  user-select: none;
}

.home-map__leaflet {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  z-index: 1;
  background: var(--color-primary);
}

/* Site-bg veil above the map, under title/list/card. Keeps map interactive.
   Half-width on the text side only (right in RTL, left in LTR). */
.home-map__veil {
  position: absolute;
  inset-block: 0;
  inset-inline-start: 0;
  inset-inline-end: auto;
  width: 50%;
  z-index: 3;
  pointer-events: none;
  /* Within the half: solid at the page edge, fade toward the map center. */
  background: linear-gradient(
    to left,
    var(--color-bg) 0%,
    var(--color-bg) 40%,
    rgba(250, 248, 245, 0.7) 72%,
    transparent 100%
  );
}

html[dir="ltr"] .home-map__veil {
  background: linear-gradient(
    to right,
    var(--color-bg) 0%,
    var(--color-bg) 40%,
    rgba(250, 248, 245, 0.7) 72%,
    transparent 100%
  );
}

.home-map__leaflet .gm-style {
  font-family: inherit;
}

.home-map__leaflet .gm-bundled-control,
.home-map__leaflet .gmnoprint {
  filter: none;
}

.home-map__leaflet button.gm-control-active,
.home-map__leaflet .gm-control-active > img {
  filter: none !important;
}

.home-map .home-map__stage {
  cursor: grab;
  touch-action: none;
  user-select: none;
}

.home-map .home-map__stage:active {
  cursor: grabbing;
}

/* Mobile: 1 finger scrolls the page; 2 fingers pan/zoom the map (cooperative). */
@media (max-width: 1024px) {
  .home-map .home-map__stage,
  .home-map__stage {
    touch-action: pan-x pan-y !important;
  }
}

@media (pointer: coarse) {
  .home-map__stage {
    touch-action: pan-x pan-y !important;
    cursor: grab;
  }
}

/* Google zoom control — soft brand chrome */
.home-map__leaflet .gm-bundled-control .gmnoprint > div,
.home-map__leaflet .gmnoprint > .gm-style-cc + div {
  border-radius: 8px !important;
  overflow: hidden;
  box-shadow: 0 4px 16px rgb(37 37 37 / 0.08) !important;
}

.home-map__pan,
.home-map__bg,
.home-map__img,
.home-map__pins {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
}

.home-map__img {
  object-fit: cover;
  object-position: center center;
  pointer-events: none;
  user-select: none;
  -webkit-user-drag: none;
}

.home-map__head {
  position: relative;
  z-index: 4;
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  justify-content: center;
  gap: 0.35rem;
  padding: 1.5rem var(--gutter) 0;
  min-height: 6rem;
  direction: ltr;
  text-align: right;
  pointer-events: none;
}

.home-map__badge,
.home-map__titles,
.home-map__title {
  direction: rtl;
}

.home-map__titles {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 0.35rem;
  min-width: 0;
  max-width: 100%;
  text-align: start;
}

.home-map__title-row {
  display: flex;
  flex-direction: row;
  align-items: center;
  justify-content: flex-end;
  gap: 0.75rem 1.5rem;
  direction: ltr;
  width: auto;
  max-width: 100%;
}

html[dir="ltr"] .home-map__head {
  align-items: flex-start;
  justify-content: center;
  direction: ltr;
  text-align: left;
}

html[dir="ltr"] .home-map__titles {
  align-items: flex-start;
}

html[dir="ltr"] .home-map__title-row {
  justify-content: flex-start;
}

html[dir="ltr"] .home-map__badge,
html[dir="ltr"] .home-map__titles,
html[dir="ltr"] .home-map__title {
  direction: ltr;
}

html[dir="ltr"] .home-map__titles {
  align-items: flex-start;
  order: 1;
  text-align: start;
}

html[dir="ltr"] .home-map__badge {
  order: 2;
}

.home-map__badge {
  appearance: none;
  display: inline-flex;
  align-items: center;
  flex: 0 0 auto;
  margin: 0;
  padding: 8px 16px;
  border: 0;
  border-radius: 50px;
  background: var(--color-accent);
  color: var(--color-white);
  font-family: inherit;
  font-size: var(--fs-map-badge);
  letter-spacing: -0.05em;
  line-height: 30px;
  cursor: pointer;
  pointer-events: auto;
  transform: translateY(0) scale(1);
  box-shadow: 0 0 0 0 rgb(37 37 37 / 0);
  transition:
    background-color var(--ease),
    transform var(--ease),
    box-shadow var(--ease),
    color var(--ease);
}

.home-map__badge:hover,
.home-map__badge:focus-visible {
  background: color-mix(in srgb, var(--color-accent) 72%, var(--color-secondary));
  color: var(--color-white);
  transform: translateY(-2px) scale(1.03);
  box-shadow: 0 8px 18px rgb(37 37 37 / 0.12);
  outline: none;
}

.home-map__badge:active {
  transform: translateY(0) scale(0.98);
  box-shadow: 0 2px 8px rgb(37 37 37 / 0.08);
}

@media (prefers-reduced-motion: reduce) {
  .home-map__badge {
    transition: background-color 0.15s ease, color 0.15s ease;
  }

  .home-map__badge:hover,
  .home-map__badge:focus-visible,
  .home-map__badge:active {
    transform: none;
    box-shadow: none;
  }
}

.home-map__title {
  margin: 0;
  font-size: var(--fs-map-title);
  font-weight: 400;
  letter-spacing: -0.05em;
  line-height: 1;
}

.home-map__list {
  position: absolute;
  inset-inline-start: 2.5%;
  top: 19%;
  bottom: 12%;
  z-index: 4;
  display: flex;
  flex-direction: column;
  gap: 1.75rem;
  align-items: flex-start;
  margin: 0;
  padding-block: 0;
  padding-inline-start: 0.5rem;
  padding-inline-end: 0.85rem;
  max-width: min(32vw, 22rem);
  max-height: none;
  overflow-x: hidden;
  overflow-y: auto;
  overscroll-behavior: contain;
  scrollbar-width: thin;
  scrollbar-color: var(--color-accent) transparent;
  pointer-events: auto;
}

.home-map__list::-webkit-scrollbar {
  width: 4px;
}

.home-map__list::-webkit-scrollbar-thumb {
  background: var(--color-accent);
  border-radius: 4px;
}

.home-map__list [data-map-list-item][hidden],
.home-map__list [data-map-list-item].is-out {
  display: none;
}

.home-map__name {
  font-size: var(--fs-map-name);
  font-weight: 400;
  letter-spacing: -0.05em;
  line-height: 1;
  color: var(--color-accent);
  text-align: start;
  transition: color 0.25s ease;
}

.home-map__name.is-active {
  color: var(--color-secondary);
}

.home-map__pins {
  z-index: 2;
  pointer-events: none;
}

.home-map__pin {
  position: absolute;
  width: 42px;
  height: 50px;
  transform: translate(-50%, -100%);
  pointer-events: auto;
  transition: width 0.25s ease, height 0.25s ease, filter 0.25s ease, opacity 0.25s ease;
}

.home-map__pin.is-out {
  opacity: 0.35;
}

.home-map__pin.is-stack-hidden {
  visibility: hidden;
  opacity: 0;
  pointer-events: none;
}

.home-map__pin.is-active {
  width: 56px;
  height: 68px;
  filter: drop-shadow(0 4px 4px #252525);
}

.home-map__pin img {
  width: 100%;
  height: 100%;
  pointer-events: none;
}

.map-card {
  position: absolute;
  z-index: 5;
  left: 12px;
  top: 12px;
  width: min(18rem, calc(100vw - 2rem));
  background: var(--color-white);
  border-radius: 8px;
  box-shadow: var(--shadow-soft);
  transition: opacity 0.22s ease, transform 0.22s ease;
  transform-origin: center top;
}

.map-card[hidden] {
  display: none !important;
}

.map-card.is-anchored {
  right: auto;
}

.map-card.is-leaving {
  opacity: 0;
  transform: translateY(12px) scale(0.96);
  pointer-events: none;
}

.map-card.is-entering {
  opacity: 0;
  transform: translateY(-10px) scale(0.98);
}

.map-card__media img {
  width: 100%;
  height: 11.75rem;
  object-fit: cover;
  border-radius: 8px 8px 0 0;
  border: 1px solid #adbbbb;
  border-bottom: 0;
}

.map-card__body {
  display: grid;
  gap: 0.4rem;
  justify-items: start;
  padding: 0.85rem;
  border: 1px solid var(--color-accent);
  border-top: 0;
  border-radius: 0 0 8px 8px;
}

.map-card .btn-outline {
  width: max-content;
  max-width: 100%;
  justify-self: start;
  white-space: nowrap;
  background: var(--color-accent);
  border-color: var(--color-accent);
  color: var(--color-secondary);
}

.map-card .btn-outline .btn-outline__icon {
  color: var(--color-secondary);
}

.map-card .btn-outline:hover,
.map-card .btn-outline:focus-visible {
  background: var(--color-secondary);
  border-color: var(--color-secondary);
  color: var(--color-white);
}

.map-card .btn-outline:hover .btn-outline__icon,
.map-card .btn-outline:focus-visible .btn-outline__icon {
  color: var(--color-white);
}

.map-card__title {
  margin: 0;
  font-size: calc(var(--fs-map-card) * 0.9);
  font-weight: 500;
  letter-spacing: -0.05em;
  line-height: 1.35;
}

/* Smart agent popup
   -------------------------------------------------------------------------- */
html.is-map-agent-open {
  overflow: hidden;
}

.map-agent {
  position: fixed;
  inset: 0;
  z-index: 1200;
  display: grid;
  place-items: center;
  padding: 1.5rem;
}

.map-agent[hidden] {
  display: none;
}

.map-agent__backdrop {
  position: absolute;
  inset: 0;
  background: rgba(37, 37, 37, 0.42);
  opacity: 0;
  transition: opacity 0.28s ease;
}

.map-agent__dialog {
  position: relative;
  z-index: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 32px;
  width: min(100%, 824px);
  height: 348px;
  max-height: calc(100svh - 2rem);
  padding: 64px 48px;
  overflow: hidden;
  border-radius: 24px;
  background: #faf8f5;
  box-shadow: 0 24px 64px rgba(37, 37, 37, 0.18);
  opacity: 0;
  transform: translateY(18px) scale(0.96);
  transition: opacity 0.28s ease, transform 0.28s ease;
}

.map-agent__ornament {
  position: absolute;
  right: 0;
  bottom: 0;
  z-index: 0;
  width: 387px;
  height: 418px;
  max-width: none;
  pointer-events: none;
  user-select: none;
}

.map-agent__copy,
.map-agent__form {
  position: relative;
  z-index: 1;
}

.map-agent.is-open .map-agent__backdrop {
  opacity: 1;
}

.map-agent.is-open .map-agent__dialog {
  opacity: 1;
  transform: translateY(0) scale(1);
}

.map-agent__close {
  position: absolute;
  top: 1rem;
  inset-inline-end: 1rem;
  z-index: 2;
  display: grid;
  place-items: center;
  width: 2.5rem;
  height: 2.5rem;
  color: var(--color-secondary);
  border-radius: 999px;
  transition: background 0.2s ease, color 0.2s ease;
}

.map-agent__close:hover {
  background: rgba(37, 37, 37, 0.06);
}

.map-agent__copy {
  display: grid;
  gap: 32px;
  text-align: center;
}

.map-agent__eyebrow {
  margin: 0;
  color: var(--color-accent);
  font-weight: 400;
  font-size: var(--fs-agent);
  line-height: 0.9;
  letter-spacing: -0.06em;
}

.map-agent__question {
  margin: 0;
  color: var(--color-secondary);
  font-size: var(--fs-body);
  font-weight: 300;
  letter-spacing: var(--track);
  line-height: var(--lh-body);
}

.map-agent__form {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  width: 100%;
  gap: 0;
  padding: 9px;
  background: var(--color-white);
  border: 1px solid #CEBBAA;
  border-radius: 999px;
  box-shadow: 0 8px 24px rgba(37, 37, 37, 0.06);
}

.map-agent__select {
  position: relative;
  flex: 1 1 7rem;
  min-width: 0;
  display: grid;
  align-items: center;
}

.map-agent__select + .map-agent__select::before {
  content: "";
  position: absolute;
  inset-inline-start: 0;
  top: 50%;
  width: 1px;
  height: 1.5rem;
  background: rgba(37, 37, 37, 0.12);
  transform: translateY(-50%);
}

.map-agent__select select {
  appearance: none;
  width: 100%;
  padding: 0.85rem 2.25rem 0.85rem 1rem;
  border: 0;
  background: transparent;
  color: var(--color-secondary);
  font: inherit;
  font-size: var(--fs-agent-input);
  line-height: 1.2;
  font-weight: 300;
  letter-spacing: -0.03em;
  text-align: start;
  cursor: pointer;
  outline: none;
}

.map-agent__select select:focus {
  outline: none;
}

.map-agent__chevron {
  position: absolute;
  inset-inline-end: 0.65rem;
  top: 50%;
  display: grid;
  place-items: center;
  pointer-events: none;
  transform: translateY(-50%);
}

.map-agent__chevron svg {
  width: 18px;
  height: 18px;
}

.map-agent__submit {
  flex: 0 0 auto;
  margin-inline-start: 0.35rem;
  padding: 0.85rem 1.75rem;
  border-radius: 999px;
  background: var(--color-secondary);
  color: var(--color-white);
  font: inherit;
font-size: var(--fs-body);
    font-weight: 300;
    letter-spacing: var(--track);
    line-height: 1.2;
  transition: background 0.2s ease, transform 0.2s ease;
}

.map-agent__submit:hover {
  background: #3a3a3a;
}

.map-agent__submit:active {
  transform: scale(0.98);
}

/* Slick home
   -------------------------------------------------------------------------- */
.home-projects .slick-slide {
  height: auto;
}

.home-projects .slick-slide > div {
  height: 100%;
}

/*
 * Peek of the next card (~25%) via list padding — not slidesToShow: 3.2.
 * Fractional slidesToShow + infinite RTL clips the first (right) slide.
 * Padding is inside the padding-box, so overflow:hidden still shows the peek
 * and keeps the start-edge card fully visible.
 */
.home-projects .slick-list {
  overflow: hidden !important;
  padding-inline-end: 8% !important;
  padding-inline-start: 0 !important;
}

html[dir="rtl"] .home-projects .slick-slide {
  float: right !important;
}

html[dir="rtl"] .home-projects .slick-track {
  left: auto !important;
  right: 0 !important;
}

html[dir="ltr"] .home-projects .slick-slide {
  float: left !important;
}

html[dir="ltr"] .home-projects .slick-track {
  right: auto !important;
  left: 0 !important;
}

@media (max-width: 1024px) {
  .home-hero {
    min-height: 36rem;
    max-height: none;
    height: min(100svh, 46rem);
  }

  .expertise-grid,
  .home-strengths__grid {
    grid-template-columns: 1fr 1fr;
  }

  .home-process__stage {
    grid-template-columns: 1fr;
    gap: 1.75rem;
    width: 100%;
    max-width: none;
    height: auto;
    max-height: none;
    margin-inline: 0;
    padding-inline: 0;
  }

  .home-process__track {
    height: calc(var(--process-steps, 1) * 86vh);
    height: calc(var(--process-steps, 1) * 86svh);
  }

  .home-process__sticky {
    align-items: flex-start;
    height: 100vh;
    height: 100svh;
    min-height: 100vh;
    min-height: 100svh;
    max-height: 100vh;
    max-height: 100svh;
    padding-block: calc(var(--header-h, 4.5rem) + 1.25rem) 2rem;
  }

  .home-process__head {
    margin-bottom: 0;
    max-width: none;
  }

  .home-process__text {
    margin-top: 0.75rem;
  }

  .process-media {
    order: -1;
    width: 100vw;
    max-width: 100vw;
    height: auto;
    max-height: min(52svh, calc(100svh - var(--header-h, 4.5rem) - 12rem));
    margin-inline: calc(50% - 50vw);
  }

  .process-media__video,
  .process-media__frame.is-active {
    width: 100%;
    max-width: 100%;
    max-height: min(52svh, calc(100svh - var(--header-h, 4.5rem) - 12rem));
  }

  .process-step__title {
    line-height: 1.1;
  }

  .process-story {
    flex-direction: column;
    align-items: stretch;
    gap: 1.15rem;
    width: min(100%, 36rem);
    margin-inline: auto;
  }

  .process-rail,
  html[dir="rtl"] .process-rail {
    order: 0;
    flex-direction: row;
    align-items: center;
    width: 100%;
    min-height: 0;
    gap: 0.85rem;
  }

  .process-rail__index {
    flex: 0 0 auto;
    margin: 0;
  }

  .process-rail__track {
    flex: 1 1 auto;
    width: auto;
    height: 1.25rem;
    min-height: 0;
  }

  .process-rail__line,
  .process-rail__fill {
    inset-inline-start: 0;
    inset-inline-end: 0;
    top: 50%;
    bottom: auto;
    width: auto;
    height: 1px;
    margin: 0;
  }

  .process-rail__fill {
    transform: scaleX(var(--process-p, 0));
    transform-origin: right center;
  }

  html[dir="ltr"] .process-rail__fill {
    transform-origin: left center;
  }

  .process-rail__mark {
    top: 50%;
    left: auto;
    inset-inline-start: var(--mark, 0%);
  }

  .process-rail__label {
    display: none;
  }

  .process-copy {
    min-height: 8.5rem;
    width: auto;
    min-width: 0;
    margin-inline: 0;
  }

  .expertise-grid .expertise-card:last-child:nth-child(odd) {
    grid-column: 1 / -1;
  }

  .home-expertise {
    padding-top: 5rem;
  }

  .expertise-card {
    height: 32rem;
    min-height: 32rem;
    padding: 1.75rem;
    gap: 1.25rem;
  }

  .expertise-card__copy {
    gap: 0.5rem;
  }

  .home-strengths {
    padding: 2rem;
    border-radius: 20px;
  }

  .home-strengths::after {
    width: 18rem;
    height: 14rem;
    left: -4rem;
    bottom: -5rem;
  }

  .home-strengths__head {
    margin-bottom: 2rem;
    max-width: none;
  }

  .home-strengths__grid {
    gap: 1.25rem;
  }

  .home-strengths__numbers {
    margin-top: 2rem;
    padding-top: 2rem;
  }

  .home-strengths__numbers-row {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 1.75rem 1.25rem;
  }

  .strength-card {
    min-height: 0;
    padding: 1.25rem;
  }

  .home-expertise__divider {
    height: clamp(5rem, 14vw, 10rem);
  }

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

  .home-numbers__item {
    gap: 1rem;
    padding: 2.25rem 1.5rem;
  }

  .home-numbers__item:last-child:nth-child(odd) {
    grid-column: 1 / -1;
  }

  .home-intro__grid {
    grid-template-columns: 1fr;
    gap: 1.75rem;
  }

  .home-intro {
    padding-block: 4.5rem 3.5rem;
  }

  .home-intro__title {
    line-height: 1.05;
    max-width: 18ch;
  }

  .home-intro__copy {
    gap: 1.25rem;
    max-width: 36rem;
  }

  .home-intro__ornament {
    display: none;
  }

  .home-projects {
    padding-block: 5.5rem 4rem;
  }

  .home-projects__ornament {
    width: min(70vw, 28rem);
    max-height: 18rem;
  }

  .home-projects__head {
    flex-direction: column;
    align-items: flex-start;
    gap: 1.25rem;
    margin-bottom: 1.75rem;
  }

  .home-projects__slide {
    padding-inline-end: 1rem;
  }

  .home-projects {
    --projects-visible: 2;
    --projects-peek: 14%;
    --projects-slide-pad: 1rem;
  }

  .home-projects .slick-list {
    padding-inline-end: 14% !important;
  }

  .project-card__media {
    border-radius: 12px;
  }

  .project-card__cta {
    width: 40px;
    height: 40px;
  }

  .project-card__cta-icon .icon,
  .project-card__cta-icon svg {
    width: 16px;
    height: 16px;
  }

  .home-map {
    display: flex;
    flex-direction: column;
    align-items: stretch;
    min-height: 0;
    height: auto;
    padding: 2rem var(--gutter) 2.25rem;
    overflow: visible;
  }

  .home-map__head {
    align-items: flex-end;
    gap: 0.35rem;
    padding: 0 0 1rem;
    min-height: 0;
    pointer-events: auto;
  }

  .home-map__title-row {
    gap: 0.5rem 0.85rem;
    width: auto;
  }

  .home-map__badge {
    line-height: 1.2;
    padding: 6px 12px;
  }

  .home-map__stage {
    position: relative;
    inset: auto;
    width: 100%;
    height: clamp(20rem, 58vh, 32rem);
    aspect-ratio: auto;
    margin: 0 0 1rem;
    overflow: hidden;
    border-radius: 16px;
  }

  .home-map__veil {
    display: none;
  }

  .home-map__leaflet {
    position: absolute;
    inset: 0;
    height: 100%;
  }

  .home-map__img {
    object-fit: cover;
    object-position: center center;
  }

  .home-map__list {
    position: relative;
    inset: auto;
    top: auto;
    bottom: auto;
    width: 100%;
    max-width: none;
    max-height: none;
    flex-direction: row;
    flex-wrap: nowrap;
    align-items: center;
    gap: 0.5rem;
    margin: 0 0 1rem;
    padding: 0.15rem 0 0.35rem;
    overflow-x: auto;
    overflow-y: hidden;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
    scroll-snap-type: x proximity;
  }

  .home-map__list::-webkit-scrollbar {
    display: none;
  }

  .home-map__list > li {
    flex: 0 0 auto;
    scroll-snap-align: start;
  }

  .home-map__name {
    line-height: 1.2;
    padding: 0.5rem 0.9rem;
    border: 1px solid rgba(206, 187, 170, 0.65);
    border-radius: 999px;
    background: var(--color-white);
    color: var(--color-accent);
    white-space: nowrap;
  }

  .home-map__name.is-active {
    border-color: var(--color-secondary);
    background: var(--color-secondary);
    color: var(--color-white);
  }

  .home-map__pins {
    display: block;
  }

  .home-map__pin {
    width: 36px;
    height: 44px;
  }

  .home-map__pin.is-active {
    width: 48px;
    height: 58px;
  }

  .map-card,
  .map-card.is-anchored {
    position: relative;
    inset: auto;
    left: auto !important;
    top: auto !important;
    right: auto !important;
    display: grid;
    grid-template-columns: minmax(7rem, 38%) 1fr;
    align-items: stretch;
    align-self: stretch;
    width: 100%;
    max-width: none;
    margin: 0;
    overflow: hidden;
    touch-action: pan-y;
    cursor: grab;
  }

  .map-card__media {
    min-height: 0;
  }

  .map-card__media img {
    height: 100%;
    min-height: 8.5rem;
    border-radius: 8px 0 0 8px;
    border: 1px solid #adbbbb;
    border-inline-end: 0;
  }

  html[dir="rtl"] .map-card__media img {
    border-radius: 0 8px 8px 0;
    border-inline-end: 0;
    border-inline-start: 1px solid #adbbbb;
  }

  .map-card__body {
    gap: 0.35rem;
    padding: 0.85rem;
    border-radius: 0 8px 8px 0;
    align-content: center;
  }

  html[dir="rtl"] .map-card__body {
    border-radius: 8px 0 0 8px;
  }

  .map-card__title {
    line-height: 1.25;
  }

  .map-card .btn-outline {
    margin-top: 0.25rem;
    padding: 0.55rem 0.85rem;
    font-size: var(--fs-map-btn);
  }

  .map-agent {
    padding: 1rem;
    align-items: center;
  }

  .map-agent__dialog {
    width: min(100%, 824px);
    height: auto;
    min-height: 0;
    max-height: calc(100svh - 2rem);
    padding: 2.75rem 1.5rem 1.75rem;
    gap: 1.35rem;
    overflow-y: auto;
  }

  .map-agent__ornament {
    width: min(260px, 68vw);
    height: auto;
    opacity: 0.9;
  }

  .map-agent__eyebrow {
    line-height: 1.05;
  }

  .map-agent__copy {
    gap: 0.65rem;
  }

  .map-agent__form {
    flex-direction: column;
    align-items: stretch;
    width: 100%;
    padding: 0.65rem;
    border-radius: 20px;
    gap: 0.25rem;
  }

  .map-agent__select {
    flex: 1 1 auto;
  }

  .map-agent__select + .map-agent__select::before {
    display: none;
  }

  .map-agent__select select {
    padding: 0.8rem 2.1rem 0.8rem 0.7rem;
  }

  .map-agent__submit {
    width: 100%;
    margin: 0.25rem 0 0;
  }

  .home-strengths,
  .expertise-card {
    padding: 1.5rem;
  }
}

@media (max-width: 768px) {
  .home-hero {
    min-height: 28rem;
    height: min(100svh, 36rem);
  }

  .home-hero__title {
    line-height: 1.05;
  }

  .home-hero__line--sub {
    margin-block-start: 0.4em;
  }

  .home-hero__wa {
    width: 52px;
    height: 52px;
    inset-inline-start: 1rem;
    inset-block-end: 1rem;
  }

  .home-intro {
    padding-block-start: 3.25rem;
    padding-block-end: 3.25rem;
  }

  .home-expertise {
    padding-block-start: 3.25rem;
    padding-block-end: 0;
  }

  .home-process__sticky {
    align-items: flex-start;
    justify-content: flex-start;
    height: 100vh;
    height: 100svh;
    min-height: 100vh;
    min-height: 100svh;
    max-height: 100vh;
    max-height: 100svh;
    padding-block: calc(var(--header-h, 4.25rem) + 0.85rem) 1.5rem;
  }

  .home-process__stage {
    grid-template-columns: 1fr;
    gap: 1rem;
    height: auto;
    max-height: none;
  }

  .home-process__head {
    margin-bottom: 0;
  }

  .home-process__text {
    margin-top: 0.55rem;
  }

  .process-media {
    width: 100vw;
    max-width: 100vw;
    height: auto;
    max-height: min(48svh, calc(100svh - var(--header-h, 4.25rem) - 12rem));
    margin-inline: calc(50% - 50vw);
  }

  .process-media__video,
  .process-media__frame.is-active {
    width: 100%;
    max-width: 100%;
    max-height: min(48svh, calc(100svh - var(--header-h, 4.25rem) - 12rem));
  }

  .process-copy {
    min-height: 7rem;
    width: auto;
  }

  .expertise-grid,
  .home-strengths__grid {
    grid-template-columns: 1fr;
  }

  .home-strengths__numbers {
    margin-top: 1.75rem;
    padding-top: 1.75rem;
  }

  .home-strengths__numbers-row {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 1.5rem 1rem;
  }

  .home-strengths__num-text {
    max-width: none;
  }

  .expertise-grid .expertise-card:last-child:nth-child(odd) {
    grid-column: auto;
  }

  .expertise-card {
    height: 32rem;
    min-height: 32rem;
    padding: 1.5rem;
    gap: 1.15rem;
  }

  .expertise-card .btn-outline {
    width: 100%;
    justify-content: center;
    white-space: normal;
    text-align: center;
  }

  .home-strengths {
    padding: 1.35rem;
    border-radius: 16px;
  }

  .home-strengths::after {
    width: 16rem;
    height: 16rem;
    left: -5rem;
    bottom: -7rem;
  }

  .home-strengths__head {
    margin-bottom: 1.5rem;
  }

  .strength-card {
    min-height: 0;
    padding: 0;
    border: 0;
    background: transparent;
    backdrop-filter: none;
  }

  .home-expertise__divider {
    height: 5.5rem;
    margin-top: 1.5rem;
  }

  .home-intro__grid {
    gap: 1.25rem;
  }

  .home-intro__title {
    max-width: none;
    line-height: 1.08;
    letter-spacing: -0.04em;
  }

  .home-intro__copy {
    gap: 1.15rem;
    width: 100%;
    max-width: none;
  }

  .home-intro__copy .btn {
    width: 100%;
    justify-content: center;
  }

  .home-numbers__row {
    grid-template-columns: 1fr;
  }

  .home-numbers__item {
    gap: 0.85rem;
    padding: 1.75rem 1.25rem;
  }

  .home-numbers__item:last-child:nth-child(odd) {
    grid-column: auto;
  }


  .home-numbers__text {
    max-width: 20rem;
  }

  .home-projects {
    padding-block: 3.5rem 2.5rem;
    --projects-visible: 1;
    --projects-peek: 22%;
    --projects-slide-pad: 0.75rem;
  }

  .home-projects__ornament {
    display: none;
  }

  .home-projects__head {
    gap: 1rem;
    margin-bottom: 1.35rem;
    align-items: center;
    text-align: center;
  }

  .home-projects__titles {
    width: 100%;
    text-align: center;
  }

  .home-projects__head .btn-outline {
    margin-inline: auto;
  }

  .home-projects__slider {
    --projects-slider-inset: var(--gutter);
    padding-inline-start: var(--projects-slider-inset);
  }

  .home-projects__slide {
    padding-inline-end: 0.75rem;
  }

  .home-projects__nav {
    display: none;
  }

  .home-projects .slick-list {
    padding-inline-end: 22% !important;
  }

  .project-card__media {
    border-radius: 12px;
  }

  .project-card__cta {
    width: 36px;
    height: 36px;
    inset-inline-end: 0.75rem;
    inset-block-end: 0.75rem;
  }

  .project-card__cta-icon .icon,
  .project-card__cta-icon svg {
    width: 14px;
    height: 14px;
  }

  .project-card__body {
    padding: 0.85rem 0 0;
    gap: 0.3rem;
  }

  .home-map {
    padding: 1.35rem var(--gutter) 1.75rem;
  }

  .home-map__head {
    align-items: stretch;
    gap: 0.35rem;
    padding-bottom: 0.75rem;
  }

  html[dir="ltr"] .home-map__head {
    align-items: stretch;
    text-align: left;
  }

  .home-map__title-row {
    flex-wrap: nowrap;
    align-items: center;
    justify-content: flex-end;
    gap: 0.5rem 0.75rem;
    width: auto;
  }

  html[dir="ltr"] .home-map__title-row {
    justify-content: flex-start;
  }

  .home-map__titles {
    flex: 1 1 auto;
    min-width: 0;
    align-items: flex-start;
  }

  .home-map__title {
    line-height: 1.05;
  }

  .home-map__badge {
    flex: 0 0 auto;
  }

  .home-map__stage {
    height: clamp(18.5rem, 56vh, 26rem);
    margin-bottom: 0.85rem;
    border-radius: 14px;
  }

  .home-map__list {
    gap: 0.4rem;
    margin-bottom: 0.85rem;
  }

  .home-map__name {
    padding: 0.4rem 0.75rem;
  }

  .home-map__badge {
    padding: 5px 10px;
  }

  .map-card {
    grid-template-columns: minmax(6.25rem, 36%) 1fr;
  }

  .map-card__media img {
    min-height: 7.25rem;
  }

  .map-card__body {
    padding: 0.75rem;
  }

  .map-agent {
    padding: 0.65rem;
  }

  .map-agent__dialog {
    padding: 2.25rem 1.1rem 1.35rem;
    gap: 1.1rem;
    border-radius: 18px;
  }

  .map-agent__copy {
    gap: 0.5rem;
  }

  .map-agent__ornament {
    width: min(200px, 64vw);
  }

  .map-agent__eyebrow {
    line-height: 1;
  }

  .map-agent__submit {
    padding: 0.8rem 1.1rem;
  }

  .process-media {
    width: 100vw;
    max-width: 100vw;
    height: auto;
    max-height: min(46svh, calc(100svh - var(--header-h, 4rem) - 12rem));
    margin-inline: calc(50% - 50vw);
  }

  .process-media__video,
  .process-media__frame.is-active {
    width: 100%;
    max-width: 100%;
    max-height: min(46svh, calc(100svh - var(--header-h, 4rem) - 12rem));
  }

  .btn-outline {
    font-size: var(--fs-btn);
    padding: 0.7rem 1rem;
    white-space: normal;
  }
}

@media (max-width: 480px) {
  .home-projects__head .btn-outline {
    width: 100%;
    justify-content: center;
  }

  .home-projects {
    --projects-peek: 18%;
  }

  .home-projects .slick-list {
    padding-inline-end: 18% !important;
  }

  .home-strengths__numbers-row {
    grid-template-columns: 1fr;
    gap: 1.35rem;
  }

  .home-expertise__divider {
    height: 4.25rem;
  }

  .home-map {
    padding-top: 1.1rem;
    padding-bottom: 1.5rem;
  }

  .home-map__stage {
    height: clamp(17rem, 52vh, 22rem);
    border-radius: 12px;
  }

  .home-map__list {
    max-height: none;
  }

  .home-map__name {
    padding: 0.35rem 0.65rem;
  }

  .home-map__pin {
    width: 34px;
    height: 42px;
  }

  .home-map__pin.is-active {
    width: 44px;
    height: 54px;
  }

  .map-card {
    grid-template-columns: minmax(5.75rem, 34%) 1fr;
  }

  .map-card__media img {
    min-height: 6.5rem;
  }

  .map-card .btn-outline {
    width: 100%;
    justify-content: center;
  }

  .map-agent__dialog {
    padding: 2rem 0.9rem 1.15rem;
    gap: 0.9rem;
    border-radius: 16px;
  }

  .map-agent__ornament {
    width: min(160px, 70vw);
  }

  .map-agent__form {
    padding: 0.5rem;
    border-radius: 16px;
  }

  .home-process__track {
    height: calc(var(--process-steps, 1) * 78vh);
    height: calc(var(--process-steps, 1) * 78svh);
  }

  .home-process__sticky {
    padding-block: calc(var(--header-h, 4rem) + 0.65rem) 1.15rem;
  }

  .process-media {
    width: 100vw;
    max-width: 100vw;
    height: auto;
    max-height: min(44svh, calc(100svh - var(--header-h, 4rem) - 11rem));
    margin-inline: calc(50% - 50vw);
  }

  .process-media__video,
  .process-media__frame.is-active {
    width: 100%;
    max-width: 100%;
    max-height: min(44svh, calc(100svh - var(--header-h, 4rem) - 11rem));
  }

  .process-copy {
    min-height: 6.25rem;
  }

}
