/* Loteka — premium section patterns (parallax helpers, full-bleed, panels) */
/* Edge-to-edge row inside a full-width parent. Avoid 100vw here — it is often wider than the
   layout viewport when a vertical scrollbar is present and causes horizontal overflow. */
.full-bleed {
  position: relative;
  width: 100%;
  max-width: none;
}

/**
 * Parallax via CSS: background stays fixed to the viewport while the block scrolls.
 * Use only on coarse pointers / reduced-motion: .loteka-parallax-bg--fixed is disabled (scroll).
 */
.loteka-parallax-bg {
  position: absolute;
  inset: 0;
  z-index: 0;
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  /* No transform here: translateZ(0) breaks background-attachment: fixed in Chromium. */
}

.hero-quick-contact {
  position: relative;
  overflow: hidden;
}

@media (min-width: 1024px) and (prefers-reduced-motion: no-preference) {
  .hero-quick-contact {
    animation: heroQuickPulse 3.8s ease-in-out infinite;
  }

  .hero-quick-contact::after {
    content: "";
    position: absolute;
    top: -110%;
    left: -45%;
    width: 38%;
    height: 320%;
    background: linear-gradient(90deg, transparent 0%, rgba(255, 255, 255, 0.42) 50%, transparent 100%);
    transform: rotate(24deg);
    animation: heroQuickShimmer 4.8s ease-in-out infinite;
    pointer-events: none;
  }
}

@keyframes heroQuickPulse {
  0%,
  72%,
  100% {
    box-shadow: 0 0 0 0 rgba(125, 211, 252, 0);
    border-color: rgba(125, 211, 252, 0.4);
  }

  82% {
    box-shadow: 0 0 0 5px rgba(125, 211, 252, 0.08), 0 0 24px -8px rgba(56, 189, 248, 0.55);
    border-color: rgba(125, 211, 252, 0.75);
  }
}

@keyframes heroQuickShimmer {
  0%,
  70% {
    opacity: 0;
    transform: translateX(-180%) rotate(24deg);
  }

  76% {
    opacity: 0.95;
    transform: translateX(40%) rotate(24deg);
  }

  84% {
    opacity: 0;
    transform: translateX(210%) rotate(24deg);
  }

  100% {
    opacity: 0;
    transform: translateX(210%) rotate(24deg);
  }
}

@media (hover: hover) and (pointer: fine) and (min-width: 900px) {
  .loteka-parallax-bg--fixed {
    background-attachment: fixed;
  }
}

@media (prefers-reduced-motion: reduce) {
  .loteka-parallax-bg--fixed {
    background-attachment: scroll !important;
  }
}

/* Section text stack — same pattern as Geography (accent bar + label + title + lead) */
.section-intro {
  position: relative;
}

.section-intro__rule {
  position: absolute;
  left: 0;
  top: 0;
  bottom: 0;
  width: 4px;
  border-radius: 9999px;
  background: linear-gradient(180deg, #38bdf8, var(--color-accent));
  display: none;
}

@media (min-width: 1024px) {
  .section-intro__rule {
    display: block;
  }
}

.section-intro__body {
  padding-left: 0;
}

@media (min-width: 1024px) {
  .section-intro__body {
    padding-left: 2rem;
  }
}

.section-intro__label {
  margin: 0;
  font-size: 0.75rem;
  font-weight: 600;
  line-height: 1.4;
  text-transform: uppercase;
  letter-spacing: 0.15em;
}

.section-intro__title {
  margin: 0.5rem 0 0;
  font-size: 1.875rem;
  font-weight: 900;
  line-height: 1.2;
  letter-spacing: var(--letter-display);
}

@media (min-width: 640px) {
  .section-intro__title {
    font-size: 2.25rem;
  }
}

.section-intro__lead {
  margin: 1rem 0 0;
  max-width: 36rem;
  font-size: 1rem;
  line-height: 1.625;
}

.section-intro--surface .section-intro__label {
  color: var(--color-accent);
}

.section-intro--surface .section-intro__title {
  color: var(--color-text);
}

.section-intro--surface .section-intro__lead {
  color: var(--color-text-muted);
}

.section-intro--dark .section-intro__label {
  color: #7dd3fc;
}

.section-intro--dark .section-intro__title {
  color: #fff;
}

.section-intro--dark .section-intro__lead {
  color: rgba(255, 255, 255, 0.78);
}

/* Home services teaser — legacy tile shade (services.html tiles) */
.home-services-card__shade {
  background: linear-gradient(to top, rgba(0, 0, 0, 0.9) 0%, rgba(0, 0, 0, 0.3) 50%, rgba(0, 0, 0, 0) 100%);
}

/* Home — full-bleed service panels (AVS-style: tall columns, mute → colour on hover) */
.svc-panel {
  position: relative;
  display: block;
  min-height: clamp(19rem, 42vh, 34rem);
  overflow: hidden;
  outline: none;
}

@media (min-width: 1024px) {
  .svc-panel {
    min-height: min(52vh, 40rem);
  }
}

.svc-panel__img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transform: scale(1.06);
  transform-origin: center;
  filter: saturate(0.38) brightness(0.62) contrast(1.02);
  transition: transform 0.65s var(--ease-out), filter 0.65s ease;
}

.svc-panel__veil {
  position: absolute;
  inset: 0;
  pointer-events: none;
  background: linear-gradient(180deg, rgba(4, 8, 14, 0.45) 0%, rgba(4, 8, 14, 0.82) 100%);
  opacity: 1;
  transition: opacity 0.55s ease;
}

.svc-panel__label {
  position: relative;
  z-index: 2;
  display: flex;
  min-height: clamp(19rem, 42vh, 34rem);
  align-items: center;
  justify-content: center;
  padding: 1.5rem 1.25rem;
  text-align: center;
}

@media (min-width: 1024px) {
  .svc-panel__label {
    min-height: min(52vh, 40rem);
  }
}

@media (hover: hover) and (pointer: fine) {
  .svc-panel:hover .svc-panel__img,
  .svc-panel:focus-visible .svc-panel__img {
    transform: scale(1.14);
    filter: saturate(1.12) brightness(1.03) contrast(1);
  }

  .svc-panel:hover .svc-panel__veil,
  .svc-panel:focus-visible .svc-panel__veil {
    opacity: 0.22;
  }
}

@media (prefers-reduced-motion: reduce) {
  .svc-panel__img {
    transform: scale(1);
    filter: saturate(0.85) brightness(0.92);
    transition: none;
  }

  .svc-panel__veil {
    transition: none;
  }

  .svc-panel:hover .svc-panel__img,
  .svc-panel:focus-visible .svc-panel__img {
    transform: scale(1);
    filter: saturate(0.9) brightness(0.95);
  }

  .svc-panel:hover .svc-panel__veil,
  .svc-panel:focus-visible .svc-panel__veil {
    opacity: 0.55;
  }
}

/* Geography — schematic map + chip-linked highlights */
.countries-map-panel {
  position: relative;
}

/* Raster map + SVG overlay share the same aspect ratio (Simplemaps Europe SVG: 1000×684). */
.countries-map {
  line-height: 0;
}

/* Crop to north/central-west Europe (LT + SE + DK + EE + NL + BE + DE). */
.countries-map__crop {
  position: absolute;
  inset: 0;
  overflow: hidden;
}

.countries-map__zoom {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  transform-origin: 60% 43%;
  transform: scale(1.38);
  transform-box: border-box;
}

@media (min-width: 1024px) {
  .countries-map__zoom {
    transform: scale(1.44);
  }
}

@media (prefers-reduced-motion: reduce) {
  .countries-map__zoom {
    transform: scale(1.18);
  }
}

.countries-map__photo {
  z-index: 0;
  filter: contrast(1.06) saturate(1.04);
}

.countries-map__overlay {
  z-index: 1;
}

.countries-map__route {
  stroke-dasharray: 320;
  stroke-dashoffset: 320;
  animation: countries-map-route-in 1.05s cubic-bezier(0.22, 1, 0.36, 1) forwards;
}

@keyframes countries-map-route-in {
  to {
    stroke-dashoffset: 0;
  }
}

.countries-map__dot {
  fill: #ffffff;
  stroke: var(--primary-blue);
  stroke-width: 2;
  transition:
    fill 0.25s ease,
    stroke 0.25s ease,
    filter 0.25s ease,
    transform 0.25s ease;
}

.countries-map__node--hub .countries-map__dot {
  fill: var(--primary-blue);
  stroke: #ffffff;
}

/* Chip hover / focus: green ring on the matching map marker */
.countries-map__node.is-active .countries-map__dot {
  fill: #ffffff;
  stroke: #15803d;
  stroke-width: 3;
  filter: drop-shadow(0 0 8px rgba(22, 163, 74, 0.45));
}

.countries-map__node--hub.is-active .countries-map__dot {
  fill: var(--primary-blue);
  stroke: #15803d;
  stroke-width: 3;
  filter: drop-shadow(0 0 10px rgba(22, 163, 74, 0.5));
}

.countries-map__node--hub.is-active .countries-map__ping {
  stroke: #16a34a;
  opacity: 0.55;
}

.countries-map__ping {
  transform-box: fill-box;
  transform-origin: center;
  animation: countries-map-ping 2.4s ease-in-out infinite;
}

@keyframes countries-map-ping {
  0%,
  100% {
    opacity: 0.32;
    transform: scale(0.92);
  }

  50% {
    opacity: 0.58;
    transform: scale(1.06);
  }
}

@media (prefers-reduced-motion: reduce) {
  .countries-map__route {
    animation: none;
    stroke-dashoffset: 0 !important;
  }

  .countries-map__ping {
    animation: none;
    opacity: 0.38;
    transform: none;
  }
}

/* Operations / field-proof gallery — toned imagery + smooth zoom */
.operations-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 0.9rem;
}

@media (min-width: 640px) {
  .operations-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (min-width: 1024px) {
  .operations-grid {
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 1rem;
  }
}

.operations-card {
  position: relative;
  overflow: hidden;
  border-radius: 12px;
  border: 1px solid var(--color-border);
  background: var(--color-surface);
  box-shadow: var(--shadow-card);
  min-height: clamp(11.5rem, 24vw, 15rem);
}

.operations-card__open {
  width: 100%;
  height: 100%;
  display: block;
  padding: 0;
  border: 0;
  background: transparent;
  cursor: zoom-in;
}

.field-proof__img {
  width: 100%;
  height: 100%;
  min-height: clamp(11.5rem, 24vw, 15rem);
  object-fit: cover;
  transform-origin: center;
  filter: saturate(0.88) brightness(0.99);
  transition: transform 0.45s ease, filter 0.45s ease;
}

.field-proof__veil {
  border-radius: 12px;
  background: linear-gradient(to top, rgba(0, 0, 0, 0.16) 0%, rgba(0, 0, 0, 0.06) 52%, rgba(0, 0, 0, 0) 100%);
}

.operations-lightbox {
  width: min(92vw, 1200px);
  max-height: 92vh;
  border: 0;
  padding: 0;
  background: transparent;
}

.operations-lightbox::backdrop {
  background: rgba(4, 10, 18, 0.82);
  backdrop-filter: blur(4px);
}

.operations-lightbox__content {
  position: relative;
}

.operations-lightbox__image {
  width: 100%;
  max-height: 90vh;
  object-fit: contain;
  border-radius: 12px;
  box-shadow: 0 28px 70px -24px rgba(0, 0, 0, 0.8);
}

.operations-lightbox__close {
  position: absolute;
  right: 0.5rem;
  top: 0.5rem;
  z-index: 2;
  width: 2.25rem;
  height: 2.25rem;
  border: 0;
  border-radius: 999px;
  background: rgba(0, 0, 0, 0.62);
  color: #fff;
  font-size: 1.4rem;
  line-height: 1;
  cursor: pointer;
}

.operations-lightbox__nav {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  z-index: 2;
  width: 2.5rem;
  height: 2.5rem;
  border: 0;
  border-radius: 999px;
  background: rgba(0, 0, 0, 0.62);
  color: #fff;
  font-size: 1.65rem;
  line-height: 1;
  cursor: pointer;
}

.operations-lightbox__nav--prev {
  left: 0.6rem;
}

.operations-lightbox__nav--next {
  right: 0.6rem;
}

.operations-lightbox__backdrop {
  position: fixed;
  inset: 0;
}

@media (hover: hover) and (pointer: fine) {
  [data-lightbox-gallery] .group:hover .field-proof__img {
    transform: scale(1.08);
    filter: saturate(1) brightness(1);
  }
}

@media (prefers-reduced-motion: reduce) {
  .field-proof__img {
    transition: none;
  }

  [data-lightbox-gallery] .group:hover .field-proof__img {
    transform: none;
  }
}

/* Services page — work gallery frame */
.services-gallery-shell {
  border-radius: var(--radius-2xl);
  border: 1px solid var(--color-border);
  padding: clamp(0.65rem, 1.8vw, 1.1rem);
  background:
    linear-gradient(145deg, rgba(255, 255, 255, 0.045) 0%, transparent 42%),
    var(--color-surface);
  box-shadow: var(--shadow-soft);
}

@media (min-width: 1024px) {
  .services-gallery-shell .operations-grid {
    gap: 1.1rem;
  }
}

.svc-tile__media {
  transition: transform 0.35s ease;
}

.svc-accordion {
  display: grid;
  grid-template-columns: 1fr;
}

.svc-accordion-row {
  display: grid;
  grid-template-columns: 1fr;
}

.svc-acc-body {
  max-height: 0;
  overflow: hidden;
  opacity: 0;
  transform: translateY(8px);
  transition: max-height 0.62s cubic-bezier(0.22, 1, 0.36, 1), opacity 0.48s ease, transform 0.48s cubic-bezier(0.22, 1, 0.36, 1);
}

@media (min-width: 1024px) {
  .svc-accordion-row {
    display: flex;
    min-height: clamp(20rem, 31vw, 28rem);
  }

  .svc-acc-item {
    flex: 1 1 0;
    min-width: 0;
    min-height: clamp(20rem, 31vw, 28rem);
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    border-left: 1px solid rgba(255, 255, 255, 0.1);
    transform: translateY(0);
    transition: flex-grow 0.65s cubic-bezier(0.22, 1, 0.36, 1), filter 0.45s ease, box-shadow 0.45s ease;
  }

  .svc-accordion-row .svc-acc-item {
    border-top: 0;
  }

  .svc-accordion-row + .svc-accordion-row .svc-acc-item {
    border-top: 1px solid rgba(255, 255, 255, 0.1);
  }

  .svc-accordion-row .svc-acc-item:first-child {
    border-left: 0;
  }

  .svc-accordion-row:hover .svc-acc-item,
  .svc-accordion-row:focus-within .svc-acc-item {
    flex-grow: 0.86;
  }

  .svc-accordion-row .svc-acc-item:hover,
  .svc-accordion-row .svc-acc-item:focus-within,
  .svc-accordion-row .svc-acc-item:focus-visible {
    flex-grow: 1.7;
  }

  .svc-acc-item:hover,
  .svc-acc-item:focus-within,
  .svc-acc-item:focus-visible {
    box-shadow: inset 0 0 0 1px rgba(125, 211, 252, 0.35), 0 10px 26px rgba(2, 8, 23, 0.35);
  }

  .svc-acc-item .svc-tile__media {
    transform: scale(1.01);
    transition: transform 0.7s ease, filter 0.7s ease;
    filter: saturate(0.88) brightness(0.78);
  }

  .svc-acc-item:hover .svc-tile__media,
  .svc-acc-item:focus-within .svc-tile__media,
  .svc-acc-item:focus-visible .svc-tile__media {
    transform: scale(1.04);
    filter: saturate(1) brightness(0.9);
  }
}

@media (hover: hover) and (pointer: fine) {
  .svc-tile:hover .svc-tile__media {
    transform: scale(1.05);
  }

  .svc-acc-item:hover .svc-acc-body,
  .svc-acc-item:focus-within .svc-acc-body,
  .svc-acc-item:focus-visible .svc-acc-body {
    max-height: 14rem;
    opacity: 1;
    transform: translateY(0);
  }
}

/* —— Clients showcase: mesh bg, trust badges, infinite marquee, framed visual —— */
.clients-showcase {
  position: relative;
  isolation: isolate;
  background: linear-gradient(
    165deg,
    var(--color-surface) 0%,
    color-mix(in oklab, var(--color-surface-alt) 70%, var(--color-surface)) 48%,
    var(--color-surface) 100%
  );
}

.clients-showcase__mesh {
  z-index: 0;
  opacity: 0.9;
  background-image: radial-gradient(ellipse 80% 50% at 20% -10%, rgba(56, 189, 248, 0.11), transparent 55%),
    radial-gradient(ellipse 60% 40% at 90% 30%, rgba(37, 99, 235, 0.09), transparent 50%),
    linear-gradient(180deg, rgba(255, 255, 255, 0.45) 0%, transparent 42%);
  background-size: 100% 100%, 100% 100%, 100% 100%;
}

.clients-showcase__intro,
.clients-visual {
  opacity: 0;
  transform: translateY(1.25rem);
  transition: opacity 0.75s var(--ease-out, cubic-bezier(0.22, 1, 0.36, 1)),
    transform 0.75s var(--ease-out, cubic-bezier(0.22, 1, 0.36, 1));
}

.clients-showcase.is-inview .clients-showcase__intro,
.clients-showcase.is-inview .clients-visual {
  opacity: 1;
  transform: translateY(0);
}

[data-reveal-intro] .section-intro__label,
[data-reveal-intro] .section-intro__title,
[data-reveal-intro] .section-intro__lead {
  opacity: 0;
  transform: translateY(0.9rem);
  filter: blur(0);
  transition: opacity 0.92s var(--ease-out, cubic-bezier(0.22, 1, 0.36, 1)),
    transform 0.92s var(--ease-out, cubic-bezier(0.22, 1, 0.36, 1)),
    filter 0.92s var(--ease-out, cubic-bezier(0.22, 1, 0.36, 1));
  will-change: opacity, transform;
}

[data-reveal-intro].is-inview .section-intro__label,
[data-reveal-intro].is-inview .section-intro__title,
[data-reveal-intro].is-inview .section-intro__lead {
  opacity: 1;
  transform: translateY(0);
  filter: blur(0);
}

[data-reveal-intro].is-inview .section-intro__label {
  transition-delay: 0.14s;
}

[data-reveal-intro].is-inview .section-intro__title {
  transition-delay: 0.34s;
}

[data-reveal-intro].is-inview .section-intro__lead {
  transition-delay: 0.56s;
}

[data-reveal-intro][data-reveal-variant="slide-right"] .section-intro__label,
[data-reveal-intro][data-reveal-variant="slide-right"] .section-intro__title,
[data-reveal-intro][data-reveal-variant="slide-right"] .section-intro__lead {
  transform: translateX(-1.05rem);
}

[data-reveal-intro][data-reveal-variant="slide-left"] .section-intro__label,
[data-reveal-intro][data-reveal-variant="slide-left"] .section-intro__title,
[data-reveal-intro][data-reveal-variant="slide-left"] .section-intro__lead {
  transform: translateX(1.05rem);
}

[data-reveal-intro][data-reveal-variant="soft-blur"] .section-intro__label,
[data-reveal-intro][data-reveal-variant="soft-blur"] .section-intro__title,
[data-reveal-intro][data-reveal-variant="soft-blur"] .section-intro__lead {
  transform: translateY(0.7rem) scale(0.985);
  filter: blur(6px);
}

.clients-showcase.is-inview .clients-visual {
  transition-delay: 0.12s;
}

.clients-trust-badges {
  list-style: none;
  margin: 0;
  padding: 0;
}

.clients-trust-badges__item {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  border-radius: var(--radius-pill, 999px);
  border: 1px solid color-mix(in oklab, var(--color-accent) 22%, var(--color-border));
  background: linear-gradient(145deg, rgba(255, 255, 255, 0.92), rgba(248, 250, 252, 0.72));
  padding: 0.4rem 0.85rem 0.4rem 0.65rem;
  font-size: 0.72rem;
  font-weight: 650;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--color-text-muted);
  box-shadow: 0 1px 0 rgba(255, 255, 255, 0.8) inset, 0 8px 24px -12px color-mix(in oklab, var(--color-accent-deep) 25%, transparent);
  transition: transform 0.35s var(--ease-out, cubic-bezier(0.22, 1, 0.36, 1)),
    border-color 0.35s ease, box-shadow 0.35s ease, color 0.25s ease;
}

.clients-trust-badges__icon {
  width: 0.95rem;
  height: 0.95rem;
  flex-shrink: 0;
  color: var(--primary-blue, #2563eb);
  opacity: 0.88;
}

@media (hover: hover) and (pointer: fine) {
  .clients-trust-badges__item:hover {
    transform: translateY(-2px);
    border-color: color-mix(in oklab, var(--color-accent-bright, #3b82f6) 45%, var(--color-border));
    color: var(--color-text);
    box-shadow: 0 1px 0 rgba(255, 255, 255, 0.9) inset, 0 14px 36px -14px color-mix(in oklab, var(--color-accent) 35%, transparent);
  }
}

.clients-marquee {
  position: relative;
  width: 100%;
}

.clients-marquee__viewport {
  overflow: hidden;
  margin-inline: -0.25rem;
  padding-block: 0.15rem;
  mask-image: linear-gradient(90deg, transparent 0%, #000 6%, #000 94%, transparent 100%);
  -webkit-mask-image: linear-gradient(90deg, transparent 0%, #000 6%, #000 94%, transparent 100%);
}

.clients-marquee__track {
  display: flex;
  width: max-content;
  animation: clients-marquee-scroll 120s linear infinite;
  will-change: transform;
}

.clients-marquee--reverse .clients-marquee__track {
  animation-duration: 150s;
  animation-direction: reverse;
}

.clients-marquee__cluster {
  display: flex;
  align-items: center;
  gap: 0.65rem;
  padding-inline: 0.35rem;
}

.clients-marquee__pill {
  flex-shrink: 0;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: var(--radius-pill, 999px);
  padding: 0.55rem 1.1rem;
  font-size: 0.68rem;
  font-weight: 800;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--color-text);
  background: rgba(255, 255, 255, 0.55);
  border: 1px solid color-mix(in oklab, var(--color-border) 80%, var(--color-accent) 8%);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  box-shadow: 0 2px 12px -4px rgba(15, 23, 42, 0.12);
  transition: transform 0.3s var(--ease-out, cubic-bezier(0.22, 1, 0.36, 1)), border-color 0.3s ease,
    box-shadow 0.3s ease, background 0.3s ease;
}

@media (hover: hover) and (pointer: fine) {
  .clients-marquee__pill:hover {
    transform: scale(1.04) translateY(-1px);
    border-color: color-mix(in oklab, var(--color-accent) 35%, var(--color-border));
    background: rgba(255, 255, 255, 0.88);
    box-shadow: 0 12px 28px -14px color-mix(in oklab, var(--color-accent) 28%, transparent);
  }
}

@keyframes clients-marquee-scroll {
  from {
    transform: translateX(0);
  }
  to {
    transform: translateX(-50%);
  }
}

.clients-visual {
  position: relative;
}

.clients-visual__ring {
  z-index: 0;
  background: conic-gradient(
    from 210deg,
    rgba(56, 189, 248, 0.38),
    rgba(37, 99, 235, 0.28),
    rgba(14, 165, 233, 0.34),
    rgba(56, 189, 248, 0.38)
  );
  filter: blur(14px);
  opacity: 0.4;
  transform: scale(1.02);
  animation: clients-ring-rotate 16s linear infinite;
}

@keyframes clients-ring-rotate {
  to {
    transform: scale(1.02) rotate(360deg);
  }
}

.clients-visual__figure {
  position: relative;
  z-index: 1;
}

.clients-visual__figure::after {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background: linear-gradient(
    105deg,
    transparent 36%,
    rgba(255, 255, 255, 0.14) 48%,
    transparent 58%
  );
  transform: translateX(-120%) skewX(-12deg);
  transition: transform 0.85s cubic-bezier(0.22, 1, 0.36, 1);
}

@media (hover: hover) and (pointer: fine) {
  .clients-visual__figure:hover::after {
    transform: translateX(120%) skewX(-12deg);
  }

  .clients-visual__figure:hover .clients-visual__photo {
    transform: scale(1.06);
  }
}

.clients-visual__photo {
  transition: transform 0.85s cubic-bezier(0.22, 1, 0.36, 1);
}

@media (prefers-reduced-motion: reduce) {
  .clients-showcase__intro,
  .clients-visual {
    opacity: 1;
    transform: none;
    transition: none;
  }

  .clients-showcase__intro .section-intro__label,
  .clients-showcase__intro .section-intro__title,
  .clients-showcase__intro .section-intro__lead {
    opacity: 1;
    transform: none;
    transition: none;
  }

  [data-reveal-intro] .section-intro__label,
  [data-reveal-intro] .section-intro__title,
  [data-reveal-intro] .section-intro__lead {
    opacity: 1;
    transform: none;
    filter: none;
    transition: none;
  }

  .clients-marquee__track {
    animation: none;
    transform: translateX(0);
    flex-wrap: wrap;
    justify-content: center;
    width: 100%;
    max-width: 100%;
  }

  .clients-marquee__cluster:last-child {
    display: none;
  }

  .clients-marquee__viewport {
    mask-image: none;
    -webkit-mask-image: none;
  }

  .clients-visual__ring {
    animation: none;
  }

  .clients-visual__figure::after {
    display: none;
  }

  .clients-visual__figure:hover .clients-visual__photo {
    transform: none;
  }
}

/* —— Light surface sections: Geography, Partnership (same family as Clients) —— */
.loteka-surface-section {
  position: relative;
  isolation: isolate;
  overflow-x: clip;
  background: linear-gradient(
    165deg,
    var(--color-surface) 0%,
    color-mix(in oklab, var(--color-surface-alt) 70%, var(--color-surface)) 48%,
    var(--color-surface) 100%
  );
}

.loteka-surface-section__mesh {
  position: absolute;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  opacity: 0.9;
  background-image: radial-gradient(ellipse 78% 48% at 16% -8%, rgba(56, 189, 248, 0.1), transparent 56%),
    radial-gradient(ellipse 58% 42% at 94% 16%, rgba(37, 99, 235, 0.075), transparent 52%),
    linear-gradient(180deg, rgba(255, 255, 255, 0.4) 0%, transparent 41%);
}

.loteka-surface-section--geo .loteka-surface-section__mesh {
  background-image: radial-gradient(ellipse 72% 46% at 10% 92%, rgba(56, 189, 248, 0.075), transparent 58%),
    radial-gradient(ellipse 76% 48% at 20% -6%, rgba(56, 189, 248, 0.1), transparent 56%),
    radial-gradient(ellipse 52% 44% at 100% 48%, rgba(13, 74, 124, 0.065), transparent 52%),
    linear-gradient(180deg, rgba(255, 255, 255, 0.34) 0%, transparent 44%);
}

.loteka-surface-section--collab .loteka-surface-section__mesh {
  background-image: radial-gradient(ellipse 68% 52% at 0% 42%, rgba(56, 189, 248, 0.09), transparent 56%),
    radial-gradient(ellipse 62% 48% at 100% -5%, rgba(59, 130, 246, 0.08), transparent 52%),
    radial-gradient(ellipse 48% 38% at 88% 100%, rgba(14, 165, 233, 0.065), transparent 50%),
    linear-gradient(128deg, rgba(224, 242, 254, 0.5) 0%, transparent 45%, rgba(219, 234, 254, 0.38) 100%);
}

.loteka-surface-section__grain {
  position: absolute;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  opacity: 0.035;
  background-image: radial-gradient(
    circle at 1px 1px,
    color-mix(in oklab, var(--color-text) 40%, transparent) 1px,
    transparent 0
  );
  background-size: 24px 24px;
  mix-blend-mode: multiply;
}

.loteka-surface-section__bloom {
  position: absolute;
  z-index: 0;
  pointer-events: none;
  border-radius: 50%;
  filter: blur(52px);
}

.loteka-surface-section__bloom--geo-a {
  width: min(26rem, 78vw);
  height: min(26rem, 78vw);
  left: -14%;
  top: -12%;
  background: radial-gradient(circle, rgba(56, 189, 248, 0.14), transparent 68%);
  opacity: 0.75;
}

.loteka-surface-section__bloom--geo-b {
  width: min(22rem, 65vw);
  height: min(22rem, 65vw);
  right: -8%;
  bottom: 5%;
  background: radial-gradient(circle, rgba(37, 99, 235, 0.1), transparent 70%);
  opacity: 0.65;
}

.loteka-surface-section__bloom--collab-a {
  width: min(24rem, 72vw);
  height: min(24rem, 72vw);
  left: -12%;
  top: 20%;
  background: radial-gradient(circle, rgba(125, 211, 252, 0.16), transparent 68%);
  opacity: 0.7;
}

.loteka-surface-section__bloom--collab-b {
  width: min(28rem, 85vw);
  height: min(28rem, 85vw);
  right: -18%;
  bottom: -15%;
  background: radial-gradient(circle, rgba(59, 130, 246, 0.11), transparent 68%);
  opacity: 0.72;
}

.logo-marquee {
  display: flex;
  flex-wrap: nowrap;
  align-items: center;
  gap: 0.75rem;
  overflow-x: auto;
  padding-bottom: 0.35rem;
  scrollbar-width: thin;
  -webkit-overflow-scrolling: touch;
}

.logo-marquee::-webkit-scrollbar {
  height: 6px;
}

.logo-marquee::-webkit-scrollbar-thumb {
  background: color-mix(in oklab, var(--color-accent) 35%, transparent);
  border-radius: 99px;
}

.diagonal-top {
  clip-path: polygon(0 0, 100% 0, 100% calc(100% - 2.5rem), 0 100%);
}

@media (prefers-reduced-motion: reduce) {
  .svc-tile__media {
    transition: none;
  }

  .svc-tile:hover .svc-tile__media {
    transform: none;
  }
}

/* Home — hero stats strip */
.stat-strip {
  --stat-ease: cubic-bezier(0.22, 1, 0.36, 1);
}

.stat-card {
  transition: transform 0.4s var(--stat-ease);
}

@media (hover: hover) and (pointer: fine) {
  .stat-card:hover {
    transform: translateY(-3px);
  }
}

@media (prefers-reduced-motion: reduce) {
  .stat-card {
    transition: none;
  }

  .stat-card:hover {
    transform: none;
  }

}

/* Contact modal — dark professional form */
.contact-modal {
  width: min(88vw, 38rem);
  max-width: 100%;
  max-height: 100dvh;
  border: 0;
  padding: 0;
  background: transparent;
  overflow: visible;
  box-sizing: border-box;
}

/* Do not use display:grid here — a fixed child does not establish width, so the dialog
   shrinks to a narrow column in Chromium. Default block + explicit width restores layout. */
.contact-modal[open] {
  display: block;
}

.contact-modal::backdrop {
  background: rgba(7, 12, 20, 0.82);
  backdrop-filter: blur(4px);
}

.contact-modal__backdrop {
  position: fixed;
  inset: 0;
}

.contact-modal__panel {
  position: relative;
  width: 100%;
  box-sizing: border-box;
  border-radius: 12px;
  border: 1px solid rgba(56, 189, 248, 0.2);
  background: linear-gradient(160deg, #1a1a1a 0%, #141a24 100%);
  color: #ffffff;
  padding: clamp(1.1rem, 2vw, 1.5rem);
  box-shadow: 0 28px 70px -24px rgba(0, 0, 0, 0.78);
  max-height: min(88dvh, 48rem);
  overflow-y: auto;
  opacity: 0;
  transform: translateY(18px) scale(0.98);
  transition: opacity 0.34s ease, transform 0.34s cubic-bezier(0.22, 1, 0.36, 1);
}

.contact-modal.is-open .contact-modal__panel {
  opacity: 1;
  transform: translateY(0) scale(1);
}

.contact-modal__close {
  position: absolute;
  top: 0.75rem;
  right: 0.75rem;
  width: 2rem;
  height: 2rem;
  border-radius: 999px;
  border: 1px solid rgba(148, 163, 184, 0.28);
  background: rgba(15, 23, 42, 0.55);
  color: #f8fafc;
  font-size: 1.2rem;
  line-height: 1;
  cursor: pointer;
}

.contact-modal__heading {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 0.75rem 1rem;
  width: 100%;
  box-sizing: border-box;
  padding: 0 2.75rem;
  margin: 0 0 1rem;
  text-align: center;
}

.contact-modal__title {
  margin: 0;
  font-size: clamp(1.25rem, 2.4vw, 1.6rem);
  font-weight: 800;
  letter-spacing: 0.01em;
}

.contact-modal__logo {
  height: 2.65rem;
  width: auto;
  max-width: 7.5rem;
  object-fit: contain;
  object-position: center;
  flex-shrink: 0;
  backface-visibility: hidden;
  transform-origin: center;
}

@media (hover: hover) and (pointer: fine) and (prefers-reduced-motion: no-preference) {
  .contact-modal__heading:hover .contact-modal__logo {
    animation: contactLogoFlipVertical 0.72s ease-in-out 1;
  }
}

@keyframes contactLogoFlipVertical {
  0% {
    transform: rotateY(0deg);
  }
  100% {
    transform: rotateY(360deg);
  }
}

.contact-form {
  display: grid;
  gap: 0.85rem;
}

.contact-form__field {
  display: grid;
  gap: 0.38rem;
}

.contact-form__field > span {
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: rgba(191, 219, 254, 0.9);
}

.contact-form__input {
  width: 100%;
  border-radius: 12px;
  border: 1px solid rgba(148, 163, 184, 0.32);
  background: rgba(15, 23, 42, 0.64);
  color: #f8fafc;
  padding: 0.72rem 0.85rem;
  font-size: 0.95rem;
  line-height: 1.4;
  outline: none;
  transition: border-color 0.2s ease, box-shadow 0.2s ease, background-color 0.2s ease;
}

.contact-form__textarea {
  resize: vertical;
  min-height: 7.25rem;
}

.contact-form__input:focus {
  border-color: #38bdf8;
  box-shadow: 0 0 0 3px rgba(56, 189, 248, 0.2), 0 0 16px rgba(56, 189, 248, 0.22);
  background: rgba(15, 23, 42, 0.78);
}

.contact-form__consent {
  display: flex;
  align-items: flex-start;
  gap: 0.55rem;
  margin-top: 0.15rem;
  color: rgba(226, 232, 240, 0.9);
  font-size: 0.84rem;
  line-height: 1.35;
}

.contact-form__checkbox {
  margin-top: 0.16rem;
  accent-color: #0ea5e9;
}

.contact-form__submit {
  margin-top: 0.35rem;
  border: 0;
  border-radius: 12px;
  background: linear-gradient(135deg, #0ea5e9 0%, #2563eb 100%);
  color: #ffffff;
  font-weight: 700;
  font-size: 0.94rem;
  padding: 0.82rem 1rem;
  cursor: pointer;
  transition: transform 0.18s ease, box-shadow 0.18s ease, filter 0.18s ease;
}

.contact-form__submit:hover {
  filter: brightness(1.07);
  box-shadow: 0 12px 22px -12px rgba(37, 99, 235, 0.72);
}

.contact-form__submit:active {
  transform: translateY(1px);
}

.contact-form__submit:disabled {
  cursor: not-allowed;
  filter: grayscale(0.25) brightness(0.92);
}

.contact-form__status {
  margin-top: 0.35rem;
  min-height: 1.25em;
  font-size: 0.84rem;
  line-height: 1.4;
  color: rgba(226, 232, 240, 0.88);
}

.contact-form__status[hidden] {
  display: none !important;
}

.contact-form__status--ok {
  color: #6ee7b7;
}

.contact-form__status--err {
  color: #fca5a5;
}

/* About page — form on light surface (status inherits readable colours) */
#about-contact-form .contact-form__status {
  color: var(--color-text-muted);
}

#about-contact-form .contact-form__status.contact-form__status--ok {
  color: #047857;
}

#about-contact-form .contact-form__status.contact-form__status--err {
  color: #b91c1c;
}

@media (prefers-reduced-motion: reduce) {
  .contact-modal__panel,
  .contact-form__input,
  .contact-form__submit {
    transition: none;
  }
}

.privacy-mini-banner {
  position: fixed;
  right: 1rem;
  bottom: 1rem;
  z-index: 2200;
  max-width: min(26rem, calc(100vw - 2rem));
  border: 1px solid rgba(56, 189, 248, 0.35);
  border-radius: 12px;
  background: linear-gradient(140deg, rgba(15, 23, 42, 0.96), rgba(8, 20, 36, 0.96));
  color: #e2e8f0;
  box-shadow: 0 18px 40px -20px rgba(0, 0, 0, 0.65);
  padding: 0.8rem 0.9rem;
}
