/* Home — cinematic MPA landing */

.home-hero {
  position: relative;
  min-height: min(100svh, 960px);
  display: grid;
  align-items: end;
  overflow: hidden;
  margin-top: calc(var(--header-h) * -1);
  padding-top: var(--header-h);
}

.home-hero__media {
  position: absolute;
  inset: 0;
  z-index: 0;
  background: #000;
  overflow: hidden;
}

.home-hero__media video,
.home-hero__media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transform: none;
}

.home-hero__media video {
  filter: saturate(0.92) contrast(1.08) brightness(0.72);
}

.home-hero__overlay {
  position: absolute;
  inset: 0;
  z-index: 1;
  pointer-events: none;
  background:
    radial-gradient(ellipse 70% 55% at 70% 80%, rgba(201, 162, 39, 0.16), transparent 55%),
    linear-gradient(180deg, rgba(7, 6, 5, 0.55) 0%, rgba(7, 6, 5, 0.28) 40%, rgba(7, 6, 5, 0.88) 100%),
    linear-gradient(105deg, rgba(7, 6, 5, 0.82) 0%, rgba(7, 6, 5, 0.45) 42%, transparent 70%);
}

.home-hero__content {
  position: relative;
  z-index: 2;
  width: min(100% - 2rem, var(--max));
  margin-inline: auto;
  padding: clamp(3.5rem, 10vw, 5.5rem) 0 clamp(3rem, 8vw, 4.5rem);
}

.home-hero__brand {
  margin: 0;
  font-family: var(--font-display);
  font-size: clamp(2.8rem, 9vw, 6.4rem);
  font-weight: 700;
  line-height: 0.95;
  letter-spacing: 0.01em;
  background: linear-gradient(115deg, var(--sand) 12%, var(--gold-bright) 48%, var(--sand) 88%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  animation: homeRise 1s var(--ease) both;
}

.home-hero__brand small {
  display: block;
  margin-top: 0.5rem;
  font-size: 0.24em;
  letter-spacing: 0.28em;
  font-weight: 600;
  color: rgba(239, 230, 214, 0.9);
  -webkit-text-fill-color: rgba(239, 230, 214, 0.9);
  font-family: var(--font-body);
  text-shadow: 0 2px 14px rgba(0, 0, 0, 0.4);
}

.home-hero__line {
  max-width: 34rem;
  margin: 1.1rem 0 1.75rem;
  color: rgba(239, 230, 214, 0.92);
  font-size: clamp(1rem, 2vw, 1.18rem);
  text-shadow: 0 2px 18px rgba(0, 0, 0, 0.45);
  animation: homeRise 1s var(--ease) 0.12s both;
}

.home-hero .btn-ghost {
  background: color-mix(in srgb, var(--ink) 35%, transparent);
  border-color: rgba(239, 230, 214, 0.35);
  color: #efe6d6;
  backdrop-filter: blur(8px);
}

.home-hero__cta {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  animation: homeRise 1s var(--ease) 0.22s both;
}

@keyframes homeRise {
  from {
    opacity: 0;
    transform: translateY(26px);
  }
  to {
    opacity: 1;
    transform: none;
  }
}

.home-strip {
  border-block: 1px solid var(--line);
  background:
    linear-gradient(180deg, color-mix(in srgb, var(--gold) 6%, transparent), transparent),
    color-mix(in srgb, var(--ink-elevated) 88%, transparent);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
}

[data-theme="light"] .home-strip {
  background:
    linear-gradient(180deg, color-mix(in srgb, var(--gold) 8%, transparent), transparent),
    color-mix(in srgb, var(--ink-elevated) 92%, transparent);
}

.home-strip__inner {
  width: min(100% - 2rem, var(--max));
  margin-inline: auto;
  padding: 1.15rem 0;
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 0.75rem;
}

.stat-chip {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 0.75rem;
  align-items: center;
  padding: 0.85rem 0.95rem;
  border: 1px solid var(--line);
  background: color-mix(in srgb, var(--ink) 35%, transparent);
  transition: border-color 0.35s var(--ease), transform 0.35s var(--ease), box-shadow 0.35s var(--ease);
}

.stat-chip:hover {
  border-color: color-mix(in srgb, var(--gold) 45%, transparent);
  transform: translateY(-2px);
  box-shadow: 0 10px 28px rgba(0, 0, 0, 0.18);
}

.stat-chip__icon {
  width: 2.45rem;
  height: 2.45rem;
  display: grid;
  place-items: center;
  border: 1px solid color-mix(in srgb, var(--gold) 40%, transparent);
  color: var(--gold-bright);
  background: color-mix(in srgb, var(--gold) 12%, transparent);
}

.stat-chip__icon svg {
  width: 1.15rem;
  height: 1.15rem;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.7;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.stat-chip__body {
  display: flex;
  flex-direction: column;
  gap: 0.15rem;
  min-width: 0;
}

.stat-chip strong {
  color: var(--gold-bright);
  font-family: var(--font-display);
  font-weight: 700;
  font-size: clamp(1.05rem, 2.2vw, 1.35rem);
  letter-spacing: 0.02em;
  font-variant-numeric: tabular-nums;
  line-height: 1.2;
}

.stat-chip__body span {
  color: var(--sand-muted);
  font-size: 0.78rem;
  line-height: 1.35;
}

.home-strip strong {
  color: var(--gold-bright);
  font-family: var(--font-display);
  font-weight: 700;
}

.home-feature {
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  gap: 2rem;
  align-items: center;
}

.home-feature__visual {
  position: relative;
  aspect-ratio: 16 / 10;
  overflow: hidden;
  border: 1px solid var(--line);
  background: #000;
  transform-style: preserve-3d;
  transition: transform 0.45s var(--ease), box-shadow 0.45s var(--ease);
}

.home-feature__visual:hover {
  transform: perspective(900px) rotateY(-2deg) translateY(-4px);
  box-shadow: 0 24px 50px rgba(0, 0, 0, 0.45);
}

.home-feature__visual.is-playing:hover {
  transform: none;
}

.home-feature__poster,
.home-feature__frame,
.home-feature__frame iframe {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  border: 0;
}

.home-feature__poster {
  object-fit: cover;
  transition: transform 0.7s var(--ease), opacity 0.35s var(--ease);
}

.home-feature__visual:hover .home-feature__poster {
  transform: scale(1.04);
}

.home-feature__visual.is-playing .home-feature__poster {
  opacity: 0;
  pointer-events: none;
}

.home-feature__visual::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, transparent 40%, rgba(7, 6, 5, 0.55));
  pointer-events: none;
  transition: opacity 0.3s var(--ease);
  z-index: 1;
}

.home-feature__visual.is-playing::after {
  opacity: 0;
}

.home-feature__play {
  position: absolute;
  inset-inline-start: 50%;
  top: 50%;
  z-index: 2;
  translate: -50% -50%;
  display: inline-flex;
  align-items: center;
  gap: 0.65rem;
  padding: 0.75rem 1.25rem 0.75rem 0.85rem;
  border: 1px solid color-mix(in srgb, var(--gold) 55%, transparent);
  border-radius: 999px;
  background: color-mix(in srgb, rgba(8, 7, 6, 0.72) 88%, var(--gold));
  color: #fff;
  font-family: var(--font-display);
  font-size: 0.95rem;
  font-weight: 600;
  cursor: pointer;
  backdrop-filter: blur(10px);
  box-shadow: 0 12px 28px rgba(0, 0, 0, 0.35);
  transition: transform 0.3s var(--ease), background 0.3s var(--ease), opacity 0.3s var(--ease);
}

.home-feature__play:hover {
  transform: scale(1.04);
  background: color-mix(in srgb, rgba(8, 7, 6, 0.55) 70%, var(--gold));
}

.home-feature__visual.is-playing .home-feature__play {
  opacity: 0;
  pointer-events: none;
}

.home-feature__play-icon {
  width: 2.35rem;
  height: 2.35rem;
  border-radius: 50%;
  background: var(--gold);
  position: relative;
  flex-shrink: 0;
}

.home-feature__play-icon::before {
  content: "";
  position: absolute;
  inset-inline-start: 52%;
  top: 50%;
  translate: -40% -50%;
  border-style: solid;
  border-width: 0.55rem 0 0.55rem 0.9rem;
  border-color: transparent transparent transparent #111;
}

[dir="ltr"] .home-feature__play-icon::before {
  inset-inline-start: 54%;
  translate: -35% -50%;
}

/* Skip render work for offscreen sections */
.home-strip,
.home-feature,
.home-services,
.projects-carousel,
.team-grid,
.clients-museum,
.home-gates,
.home-cta {
  content-visibility: auto;
  contain-intrinsic-size: 1px 480px;
}

/* Best projects carousel — wide center overlaps left/right peeks */
.projects-carousel {
  position: relative;
  margin-top: 0.5rem;
  overflow: visible;
}

.projects-carousel__viewport {
  --peek: 7%;
  --slide-w: 86%;
  display: flex;
  align-items: center;
  gap: 0;
  overflow-x: auto;
  overflow-y: visible;
  scroll-snap-type: x mandatory;
  scroll-behavior: smooth;
  padding: 1.35rem var(--peek) 1.85rem;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: none;
}

.projects-carousel__viewport::-webkit-scrollbar {
  display: none;
}

.project-slide {
  /* Almost full width; negative margin pulls neighbors under the center */
  flex: 0 0 var(--slide-w);
  width: var(--slide-w);
  max-width: 980px;
  margin-inline: calc(var(--peek) * -0.55);
  scroll-snap-align: center;
  scroll-snap-stop: always;
  position: relative;
  aspect-ratio: 16 / 10;
  overflow: hidden;
  border-radius: 1.15rem;
  border: 1px solid color-mix(in srgb, var(--line) 70%, transparent);
  background: #0a0908;
  cursor: pointer;
  isolation: isolate;
  z-index: 1;
  opacity: 0.48;
  transform: scale(0.9);
  transform-origin: center center;
  box-shadow: 0 10px 28px rgba(0, 0, 0, 0.28);
  transition:
    transform 0.5s var(--ease),
    opacity 0.5s var(--ease),
    box-shadow 0.5s var(--ease),
    border-color 0.5s var(--ease),
    filter 0.5s var(--ease);
  will-change: transform, opacity;
  filter: brightness(0.72) saturate(0.9);
}

.project-slide.is-center {
  z-index: 8;
  opacity: 1;
  transform: scale(1);
  filter: none;
  border-color: color-mix(in srgb, var(--gold) 38%, transparent);
  box-shadow:
    0 26px 56px rgba(0, 0, 0, 0.52),
    0 0 0 1px color-mix(in srgb, var(--gold) 18%, transparent);
}

.project-slide.is-side-prev,
.project-slide.is-side-next {
  z-index: 2;
  opacity: 0.55;
  transform: scale(0.92);
  filter: brightness(0.65) saturate(0.85);
}

.project-slide img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.65s var(--ease);
}

.project-slide.is-center:hover img,
.project-slide.is-center:focus-visible img {
  transform: scale(1.04);
}

.project-slide__overlay {
  position: absolute;
  inset: 0;
  z-index: 1;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  align-items: flex-start;
  gap: 0.2rem;
  padding: 1.15rem 1.2rem;
  padding-inline-end: 1.2rem;
  background: linear-gradient(180deg, transparent 36%, rgba(6, 5, 4, 0.88));
  color: #fff;
  pointer-events: none;
}

.project-slide__overlay h3 {
  margin: 0;
  font-family: var(--font-display);
  font-size: clamp(0.98rem, 2.6vw, 1.15rem);
  font-weight: 700;
  line-height: 1.35;
  max-width: 85%;
  text-shadow: 0 2px 12px rgba(0, 0, 0, 0.55);
}

.project-slide__overlay p {
  margin: 0;
  color: color-mix(in srgb, #fff 72%, transparent);
  font-size: 0.84rem;
  max-width: 85%;
}

/*
 * Play control: full-bleed grid layer → circle is always geometric center.
 * Avoid left/translate% (breaks under RTL + parent scale on some mobile browsers).
 */
.project-slide__play {
  position: absolute;
  inset: 0;
  z-index: 4;
  display: grid;
  place-items: center;
  margin: 0;
  padding: 0;
  border: 0;
  width: auto;
  height: auto;
  background: transparent;
  box-shadow: none;
  pointer-events: none;
  opacity: 0;
  visibility: hidden;
  transform: none;
  translate: none;
  inset-inline: 0;
  transition: opacity 0.35s var(--ease), visibility 0.35s var(--ease);
}

.project-slide.is-center .project-slide__play {
  opacity: 1;
  visibility: visible;
}

/* The visible circular button */
.project-slide__play::before {
  content: "";
  grid-area: 1 / 1;
  width: 3.4rem;
  height: 3.4rem;
  border-radius: 50%;
  border: 1.5px solid color-mix(in srgb, var(--gold) 70%, #fff);
  background: color-mix(in srgb, rgba(0, 0, 0, 0.55) 55%, var(--gold));
  box-shadow: 0 10px 28px rgba(0, 0, 0, 0.4);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
  transition: transform 0.35s var(--ease);
}

/* Triangle — physical center of the circle (dir-independent) */
.project-slide__play::after {
  content: "";
  grid-area: 1 / 1;
  width: 0;
  height: 0;
  margin-inline-start: 0.18rem;
  border-style: solid;
  border-width: 0.52rem 0 0.52rem 0.88rem;
  border-color: transparent transparent transparent #fff;
  justify-self: center;
  align-self: center;
}

.project-slide.is-center:hover .project-slide__play::before {
  transform: scale(1.08);
}

.projects-carousel__nav {
  position: absolute;
  top: 50%;
  z-index: 8;
  transform: translateY(-50%);
  width: 2.6rem;
  height: 2.6rem;
  border-radius: 50%;
  border: 1px solid color-mix(in srgb, var(--gold) 45%, transparent);
  background: color-mix(in srgb, var(--ink-elevated) 92%, transparent);
  color: var(--gold-bright);
  font-size: 1.45rem;
  line-height: 1;
  cursor: pointer;
  backdrop-filter: blur(10px);
  box-shadow: 0 8px 22px rgba(0, 0, 0, 0.28);
  transition: background 0.25s var(--ease), transform 0.25s var(--ease);
}

.projects-carousel__nav:hover {
  background: color-mix(in srgb, var(--ink-elevated) 70%, var(--gold));
  transform: translateY(-50%) scale(1.05);
}

.projects-carousel__nav--prev {
  inset-inline-start: 0.15rem;
}

.projects-carousel__nav--next {
  inset-inline-end: 0.15rem;
}

.projects-carousel__dots {
  display: flex;
  justify-content: center;
  gap: 0.45rem;
  margin-top: 0.15rem;
}

.projects-carousel__dots button {
  width: 0.55rem;
  height: 0.55rem;
  padding: 0;
  border: 0;
  border-radius: 50%;
  background: color-mix(in srgb, var(--sand-muted) 55%, transparent);
  cursor: pointer;
}

.projects-carousel__dots button.is-active {
  background: var(--gold);
  width: 1.15rem;
  border-radius: 999px;
}

/* Project lightbox — cinematic dark shell (Drive chrome stays inside iframe) */
.project-lightbox {
  position: fixed;
  inset: 0;
  z-index: 120;
  display: grid;
  place-items: center;
  padding: max(0.75rem, env(safe-area-inset-top)) 0.75rem max(0.75rem, env(safe-area-inset-bottom));
  background: rgba(4, 3, 2, 0.9);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.28s var(--ease);
}

.project-lightbox.is-open {
  opacity: 1;
  pointer-events: auto;
}

.project-lightbox__panel {
  position: relative;
  width: min(1100px, 100%);
  max-height: min(92vh, 900px);
  display: flex;
  flex-direction: column;
  background: #0a0908;
  border: 1px solid color-mix(in srgb, var(--gold) 28%, var(--line));
  border-radius: 4px;
  overflow: hidden;
  box-shadow: 0 28px 80px rgba(0, 0, 0, 0.55);
}

.project-lightbox__head {
  position: absolute;
  top: 0;
  inset-inline: 0;
  z-index: 4;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  padding: 0.75rem 0.85rem;
  background: linear-gradient(180deg, rgba(0, 0, 0, 0.72), transparent);
  pointer-events: none;
}

.project-lightbox__head h3 {
  margin: 0;
  font-family: var(--font-display);
  font-size: clamp(0.92rem, 2.8vw, 1.05rem);
  color: #fff;
  text-shadow: 0 1px 8px rgba(0, 0, 0, 0.6);
  max-width: calc(100% - 3.5rem);
  pointer-events: none;
}

.project-lightbox__close {
  pointer-events: auto;
  flex-shrink: 0;
  width: 2.35rem;
  height: 2.35rem;
  border: 1px solid color-mix(in srgb, #fff 28%, transparent);
  border-radius: 50%;
  background: rgba(0, 0, 0, 0.55);
  color: #fff;
  cursor: pointer;
  font-size: 1.25rem;
  line-height: 1;
  backdrop-filter: blur(8px);
}

.project-lightbox__close:hover {
  border-color: var(--gold);
  color: var(--gold-bright);
}

.project-lightbox__frame {
  position: relative;
  flex: 1 1 auto;
  width: 100%;
  aspect-ratio: 16 / 9;
  min-height: min(56vh, 520px);
  background: #000;
}

.project-lightbox__frame iframe {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  border: 0;
  background: #000;
}

.project-lightbox__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.65rem;
  justify-content: center;
  padding: 0.75rem 1rem 0.95rem;
  background: #0a0908;
  border-top: 1px solid var(--line);
}

.project-lightbox__actions a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 2.55rem;
  padding: 0.45rem 1rem;
  border: 1px solid color-mix(in srgb, var(--gold) 40%, var(--line));
  color: var(--gold-bright);
  font-size: 0.88rem;
  font-weight: 600;
}

.project-lightbox__actions a:hover {
  background: color-mix(in srgb, var(--gold) 14%, transparent);
}

@media (max-width: 900px) {
  .home-feature {
    grid-template-columns: 1fr;
  }

  .projects-carousel__viewport {
    --peek: 5.5%;
    --slide-w: 89%;
    padding: 1.15rem var(--peek) 1.55rem;
  }

  .project-slide {
    border-radius: 0.95rem;
    margin-inline: calc(var(--peek) * -0.65);
  }

  .project-slide.is-center {
    transform: scale(1);
  }

  .project-slide__play::before {
    width: 3.15rem;
    height: 3.15rem;
  }

  .project-slide__overlay {
    padding: 0.9rem 0.95rem;
    border-radius: 0 0 0.95rem 0.95rem;
  }

  .projects-carousel__nav {
    display: none;
  }

  .project-lightbox {
    padding: 0;
    place-items: stretch;
  }

  .project-lightbox__panel {
    width: 100%;
    max-height: 100%;
    height: 100%;
    border-radius: 0;
    border: 0;
  }

  .project-lightbox__frame {
    flex: 1 1 auto;
    aspect-ratio: auto;
    min-height: 0;
    height: calc(100% - 4.25rem);
  }

  .project-lightbox__actions {
    padding-bottom: max(0.85rem, env(safe-area-inset-bottom));
  }

  .project-lightbox__actions a {
    flex: 1 1 auto;
    font-size: 16px;
  }
}

.home-services {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 0.85rem;
}

.home-services article {
  background: color-mix(in srgb, var(--ink-elevated) 94%, transparent);
  padding: 1.4rem 1.15rem;
  min-height: 8.25rem;
  border: 1px solid var(--line);
}

.home-services .idx {
  color: var(--gold);
  font-family: var(--font-display);
  font-size: 0.78rem;
  letter-spacing: 0.14em;
  margin-bottom: 0.55rem;
}

.home-services h3 {
  margin: 0;
  font-size: 1.05rem;
  font-family: var(--font-display);
  font-weight: 700;
}

.home-services p {
  margin: 0.35rem 0 0;
  color: var(--sand-muted);
  font-size: 0.88rem;
}

/* Clients marquee — infinite smooth with fade edges */
.clients {
  position: relative;
  overflow: hidden;
  border-block: 1px solid var(--line);
  background: linear-gradient(180deg, color-mix(in srgb, var(--ink-elevated) 70%, transparent), transparent);
  padding: 1.25rem 0 1.85rem;
}

.clients__atmosphere {
  position: absolute;
  inset: 0;
  z-index: 0;
  opacity: 0.14;
  pointer-events: none;
}

.clients__atmosphere img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: grayscale(1) contrast(1.1);
}

.clients > .clients-head,
.clients > .clients-viewport {
  position: relative;
  z-index: 1;
}

.clients::before,
.clients::after {
  content: "";
  position: absolute;
  top: 0;
  bottom: 0;
  width: min(12vw, 7rem);
  z-index: 2;
  pointer-events: none;
}

.clients::before {
  inset-inline-start: 0;
  background: linear-gradient(to left, transparent, var(--ink));
}

.clients::after {
  inset-inline-end: 0;
  background: linear-gradient(to right, transparent, var(--ink));
}

[data-theme="light"] .clients::before {
  background: linear-gradient(to left, transparent, #f3f1ec);
}

[data-theme="light"] .clients::after {
  background: linear-gradient(to right, transparent, #f3f1ec);
}

.clients-head {
  padding-top: 3.5rem;
  padding-bottom: 0.5rem;
}

.clients-viewport {
  overflow: hidden;
  mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent);
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent);
}

.clients-track {
  display: flex;
  width: max-content;
  gap: 1.15rem;
  animation: clientsSlide 42s linear infinite;
  will-change: transform;
}

.clients:hover .clients-track {
  animation-play-state: paused;
}

@keyframes clientsSlide {
  from {
    transform: translate3d(0, 0, 0);
  }
  to {
    transform: translate3d(-50%, 0, 0);
  }
}

html[dir="rtl"] .clients-track {
  animation-name: clientsSlideRtl;
}

@keyframes clientsSlideRtl {
  from {
    transform: translate3d(0, 0, 0);
  }
  to {
    transform: translate3d(50%, 0, 0);
  }
}

.client-logo {
  flex: 0 0 auto;
  width: 11.5rem;
  height: 4.5rem;
  display: grid;
  place-items: center;
  padding: 0.65rem 0.9rem;
  border: 1px solid var(--line);
  background: color-mix(in srgb, var(--ink-elevated) 88%, transparent);
  color: var(--client-logo);
  transition: color 0.3s var(--ease), border-color 0.3s var(--ease), box-shadow 0.3s var(--ease),
    background 0.3s var(--ease);
}

.client-logo img {
  width: 100%;
  height: 2.4rem;
  object-fit: contain;
  opacity: 0.88;
  transition: filter 0.3s var(--ease), opacity 0.3s var(--ease);
}

[data-theme="light"] .client-logo img {
  filter: invert(1) brightness(0.35);
}

.client-logo:hover {
  border-color: color-mix(in srgb, var(--gold) 55%, transparent);
  box-shadow:
    0 0 28px color-mix(in srgb, var(--gold) 28%, transparent),
    0 10px 24px rgba(0, 0, 0, 0.2);
  background: color-mix(in srgb, var(--gold) 8%, var(--ink-elevated));
  transform: translate3d(0, -2px, 0);
}

.client-logo:hover img {
  opacity: 1;
  filter: sepia(1) saturate(4) hue-rotate(2deg) brightness(1.05);
}

[data-theme="light"] .client-logo:hover img {
  filter: invert(0.55) sepia(1) saturate(5) hue-rotate(5deg) brightness(0.95);
}

/* Team */
.team-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 0.75rem;
  width: min(100%, 760px);
  margin-inline: auto;
}

.team-card {
  position: relative;
  padding: 0;
  border: 1px solid var(--line);
  background: var(--ink-elevated);
  overflow: hidden;
}

.team-card__photo {
  position: relative;
  aspect-ratio: 3 / 4;
  overflow: hidden;
  background: #111;
}

.team-card__photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: grayscale(0.85) contrast(1.08);
  transition: transform 0.7s var(--ease), filter 0.7s var(--ease);
}

.team-card:hover .team-card__photo img {
  transform: scale(1.06);
  filter: grayscale(0.35) contrast(1.05) saturate(0.9);
}

.team-card__photo::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, transparent 42%, rgba(7, 6, 5, 0.88));
  pointer-events: none;
}

.team-card__body {
  position: relative;
  margin-top: -3rem;
  padding: 0 0.9rem 1rem;
  z-index: 1;
}

.team-card__mark {
  width: 2.6rem;
  height: 2.6rem;
  margin-bottom: 0.75rem;
  border: 1px solid color-mix(in srgb, var(--gold) 45%, transparent);
  display: grid;
  place-items: center;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 0.75rem;
  color: var(--gold-bright);
  background: color-mix(in srgb, var(--ink) 70%, transparent);
  backdrop-filter: blur(8px);
}

.team-card h3 {
  margin: 0 0 0.25rem;
  font-family: var(--font-display);
  font-size: 1.02rem;
}

.team-card p {
  margin: 0;
  color: var(--sand-muted);
  font-size: 0.82rem;
  line-height: 1.45;
}

.team-card .role-en {
  display: block;
  margin-top: 0.55rem;
  color: var(--gold);
  font-size: 0.72rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

[data-theme="light"] .team-card__photo::after {
  background: linear-gradient(180deg, transparent 40%, rgba(255, 255, 255, 0.92));
}

[data-theme="light"] .team-card__body {
  color: var(--sand);
}

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

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

.home-cta {
  width: min(100% - 2rem, var(--max));
  margin: 0 auto 4.5rem;
}

.home-cta__inner {
  padding: clamp(2.25rem, 5vw, 3.25rem);
  border: 1px solid color-mix(in srgb, var(--gold) 40%, var(--line));
  background:
    radial-gradient(ellipse 80% 120% at 100% 0%, color-mix(in srgb, var(--gold) 18%, transparent), transparent 55%),
    linear-gradient(145deg, color-mix(in srgb, var(--ink-elevated) 92%, var(--gold)), var(--ink-elevated));
  text-align: center;
}

.home-cta__inner h2 {
  margin: 0 0 0.55rem;
  font-family: var(--font-display);
  font-size: clamp(1.7rem, 4vw, 2.5rem);
}

.home-cta__inner p {
  margin: 0 auto 1.5rem;
  max-width: 36rem;
  color: var(--sand-muted);
}

.home-cta__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  justify-content: center;
}

.home-gate {
  position: relative;
  display: block;
  min-height: 16rem;
  padding: 1.6rem 1.35rem;
  border: 1px solid var(--line);
  overflow: hidden;
  isolation: isolate;
}

.home-gate__bg {
  position: absolute;
  inset: 0;
  z-index: 0;
}

.home-gate__bg img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: grayscale(0.4) brightness(0.55);
  transition: transform 0.7s var(--ease), filter 0.7s var(--ease);
}

.home-gate:hover .home-gate__bg img {
  transform: scale(1.06);
  filter: grayscale(0.15) brightness(0.62);
}

.home-gate__bg::after {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(180deg, rgba(7, 6, 5, 0.25), rgba(7, 6, 5, 0.88)),
    linear-gradient(120deg, color-mix(in srgb, var(--gold) 18%, transparent), transparent 55%);
}

.home-gate__content {
  position: relative;
  z-index: 1;
  height: 100%;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
}

.home-gate h3 {
  margin: 0 0 0.4rem;
  font-family: var(--font-display);
  font-size: 1.45rem;
  color: #efe6d6;
}

.home-gate p {
  margin: 0;
  color: rgba(239, 230, 214, 0.78);
  font-size: 0.95rem;
}

.home-gate span {
  display: inline-block;
  margin-top: 0.95rem;
  color: var(--gold-bright);
  font-size: 0.9rem;
  letter-spacing: 0.02em;
}

[data-theme="light"] .home-gate h3 {
  color: #efe6d6;
}

[data-theme="light"] .home-gate p {
  color: rgba(239, 230, 214, 0.82);
}

@media (prefers-reduced-motion: reduce) {
  .clients-track,
  .home-hero__brand,
  .home-hero__line,
  .home-hero__cta,
  .reveal {
    animation: none !important;
    transition: none !important;
    opacity: 1 !important;
    transform: none !important;
  }
}

@media (max-width: 1100px) {
  .team-grid {
    grid-template-columns: repeat(4, minmax(0, 1fr));
    width: min(100%, 680px);
    gap: 0.65rem;
  }

  .team-card__body {
    margin-top: -2.5rem;
    padding: 0 0.7rem 0.85rem;
  }

  .team-card__mark {
    width: 2.2rem;
    height: 2.2rem;
    font-size: 0.68rem;
    margin-bottom: 0.55rem;
  }

  .team-card h3 {
    font-size: 0.95rem;
  }

  .team-card p {
    font-size: 0.78rem;
  }
}

@media (max-width: 820px) {
  .team-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    width: min(100%, 460px);
    gap: 0.65rem;
  }
}

@media (max-width: 960px) {
  .home-feature,
  .home-gates,
  .home-gates--two {
    grid-template-columns: 1fr;
  }

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

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

@media (max-width: 640px) {
  .home-services {
    grid-template-columns: 1fr;
  }

  .team-grid {
    display: flex;
    gap: 0.75rem;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    -webkit-overflow-scrolling: touch;
    padding-bottom: 0.35rem;
    margin-inline: -0.25rem;
    padding-inline: 0.25rem;
    scrollbar-width: thin;
  }

  .team-grid > .team-card {
    flex: 0 0 min(72vw, 15.5rem);
    scroll-snap-align: start;
  }

  .team-card__photo {
    aspect-ratio: 3 / 4;
  }

  .team-card h3 {
    font-size: 1rem;
  }

  .team-card p {
    font-size: 0.8rem;
  }

  .home-hero {
    min-height: min(100svh, 860px);
  }

  .home-hero__cta {
    flex-direction: column;
    align-items: stretch;
  }

  .home-strip__inner {
    grid-template-columns: 1fr 1fr;
    gap: 0.55rem;
  }

  .stat-chip {
    padding: 0.75rem 0.8rem;
  }

  .stat-chip strong {
    font-size: 1rem;
  }

  .client-chip {
    min-width: 8.25rem;
    padding: 0.85rem 1rem;
    font-size: 0.88rem;
  }
}
