/* Mikesoft design system: tokens, primitives and page-level refinements. */

:root {
  --ms-accent: #2a6bff;
  --ms-accent-strong: #1a4fd6;
  --ms-accent-ink: #0b3fb5;
  --ms-accent-soft: #eaf0ff;
  --ms-ink: #18181b;
  --ms-body-text: #52525b;
  --ms-muted: #71717a;
  --ms-line: #e4e4e7;
  --ms-surface: #ffffff;
  --ms-canvas: #edecf0;
  --ms-radius-xs: 8px;
  --ms-radius-sm: 12px;
  --ms-radius-md: 20px;
  --ms-radius-lg: 40px;
  --ms-shadow-card: 0 2px 4px rgba(9, 9, 11, 0.04), 0 18px 40px rgba(9, 9, 11, 0.08);
  --ms-shadow-float: 0 24px 60px rgba(9, 9, 11, 0.16);
  --ms-container: 1296px;
  --ms-section-y: clamp(72px, 8vw, 120px);
  --ms-ease: cubic-bezier(0.22, 1, 0.36, 1);
  --brand: var(--ms-accent);
  --brand-rgb: 42 107 255;
}

/* Small blue labels sit on #F5F5F5 pills, where the bright accent is 4.15:1.
   The darker ink step keeps them above the 4.5:1 AA threshold. */
.heading-section .heading-sub,
.section-hero .content-wrap .sub {
  color: var(--ms-accent-ink);
}

::selection {
  background: rgba(42, 107, 255, 0.16);
  color: var(--ms-ink);
}

:root {
  --brand: #2a6bff;
  --brand-rgb: 42 107 255;
}

/* Header: wider pill to fit six Italian nav items + language + CTA. */
.tf-header .header-inner {
  max-width: 1040px;
  gap: 16px;
  background: rgba(255, 255, 255, 0.78);
  border: 1px solid rgba(255, 255, 255, 0.5);
  box-shadow: 0 10px 30px -18px rgba(9, 9, 11, 0.35);
}
.tf-header .logo-site img {
  display: block;
  width: auto;
  height: 32px;
}
.tf-header .box-navigation {
  flex: 1 1 auto;
  justify-content: center;
  display: flex;
}
@media (max-width: 991px) {
  .tf-header .box-navigation {
    display: none;
  }
}
.tf-header .nav-menu-main {
  gap: 20px;
}
.tf-header .tf-btn.d-lg-flex {
  white-space: nowrap;
  padding: 12px 22px;
}
@media (max-width: 1199px) {
  .tf-header .header-inner {
    max-width: unset;
    margin-left: 32px;
    margin-right: 32px;
  }
}
@media (max-width: 991px) {
  .tf-header .logo-site img {
    height: 28px;
  }
}

/* Language toggle, styled as a quiet pill inside the header. */
.language-toggle {
  display: inline-flex;
  align-items: center;
  gap: 2px;
  padding: 3px;
  border-radius: 99px;
  background: rgba(9, 9, 11, 0.05);
  flex: 0 0 auto;
}
.language-toggle__option {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 30px;
  height: 30px;
  padding: 0 4px;
  border-radius: 99px;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.04em;
  color: var(--secondary);
  text-decoration: none;
}
.language-toggle__option[aria-current="page"] {
  background: var(--white);
  color: var(--primary);
  box-shadow: 0 1px 2px rgba(9, 9, 11, 0.12);
}
.language-toggle__option:hover {
  color: var(--primary);
}
.language-toggle[data-surface="dark"] {
  background: rgba(255, 255, 255, 0.12);
}
.language-toggle[data-surface="dark"] .language-toggle__option {
  color: rgba(255, 255, 255, 0.7);
}
.language-toggle[data-surface="dark"] .language-toggle__option[aria-current="page"] {
  background: var(--white);
  color: var(--primary);
}
@media (max-width: 991px) {
  .tf-header .language-toggle {
    margin-left: auto;
  }
}

/* Footer language: plain text, no flag pill. The current language keeps the
   ink, the other one steps back but stays readable. */
.language-toggle--text {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 0;
  border-radius: 0;
  background: none;
}
.language-toggle--text .language-toggle__text {
  font-size: 13px;
  font-weight: 600;
  line-height: 1.4;
  letter-spacing: 0.01em;
  color: #6a6a73;
  text-decoration: none;
  transition: color 180ms var(--ms-ease);
}
.language-toggle--text .language-toggle__text[aria-current="page"] {
  color: var(--primary);
}
.language-toggle--text .language-toggle__text:hover,
.language-toggle--text .language-toggle__text:focus-visible {
  color: var(--primary);
  text-decoration: underline;
  text-underline-offset: 3px;
}
.language-toggle--text .language-toggle__divider {
  font-size: 12px;
  color: rgba(24, 24, 27, 0.24);
}


/* Inner pages: a fixed, soft light canvas. No media, no motion. */
.section-hero .hero-image {
  background: #f2f5fb;
  background-attachment: scroll;
  filter: none;
  overflow: hidden;
}
.section-hero .hero-image.hero-image--static {
  background-color: #f4f7fd;
  background-image:
    radial-gradient(120% 90% at 76% 12%, #ffffff 0%, rgba(255, 255, 255, 0) 58%),
    radial-gradient(85% 70% at 8% 6%, rgba(42, 107, 255, 0.12) 0%, rgba(42, 107, 255, 0) 62%),
    radial-gradient(80% 65% at 92% 92%, rgba(42, 107, 255, 0.1) 0%, rgba(42, 107, 255, 0) 66%),
    radial-gradient(60% 50% at 50% 100%, rgba(148, 163, 184, 0.22) 0%, rgba(148, 163, 184, 0) 70%),
    linear-gradient(170deg, #f8faff 0%, #eff3fb 58%, #e7edf7 100%);
  background-attachment: scroll;
}

/* Home hero: status line and proof chips under the calls to action. */
.section-hero--video {
  display: flex;
  flex-direction: column;
  justify-content: center;
}
.section-hero--video > .container {
  width: 100%;
}
.section-hero--video .content-wrap {
  padding: 136px 0 104px;
}
/* GSAP wraps every .fadeUp in a .overflow-hidden div, so the lead paragraph is
   no longer a direct child once the reveal runs. Match it at any depth, or the
   measure disappears and the line stretches across the full hero. */
.section-hero .content-wrap p.text {
  max-width: 58ch;
  margin-inline: auto;
  text-wrap: pretty;
}
.hero-note {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 8px 14px;
  margin: 22px 0 0;
  font-size: 13.5px;
  font-weight: 500;
  color: #3f3f46;
}
.hero-note__status {
  display: inline-flex;
  align-items: center;
  gap: 8px;
}
.hero-note__dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: #16a34a;
  box-shadow: 0 0 0 4px rgba(22, 163, 74, 0.14);
}
.hero-note__sep {
  width: 1px;
  height: 12px;
  background: rgba(24, 24, 27, 0.18);
}
.hero-proof {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 8px;
  max-width: 860px;
  margin: 16px auto 0;
  padding: 0;
  list-style: none;
}
.hero-proof__item {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 7px 14px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.66);
  border: 1px solid rgba(24, 24, 27, 0.08);
  backdrop-filter: blur(16px);
  font-size: 12.5px;
  font-weight: 600;
  color: #27272a;
  box-shadow: 0 10px 24px -20px rgba(9, 9, 11, 0.6);
}
.hero-proof__item .icon {
  font-size: 12px;
  color: var(--brand);
}
@media (max-width: 767px) {
  .hero-proof__item {
    font-size: 12px;
  }
  .hero-note {
    flex-direction: column;
    gap: 6px;
    font-size: 13px;
  }
  .hero-note__sep {
    display: none;
  }
  .section-hero--video .content-wrap {
    padding: 118px 0 96px;
  }
}

/* Home: the light ribbon loop, veiled so the dark copy stays readable. */
.section-hero--video .hero-image {
  background: #f4f7fd;
}
.section-hero--video .hero-image .hero-video {
  opacity: 0.8;
}
.hero-image__shade {
  position: absolute;
  inset: 0;
  pointer-events: none;
  background:
    radial-gradient(110% 85% at 50% 46%, rgba(255, 255, 255, 0) 32%, rgba(255, 255, 255, 0.32) 74%, rgba(247, 250, 255, 0.7) 100%),
    linear-gradient(180deg, rgba(255, 255, 255, 0.5) 0%, rgba(255, 255, 255, 0.08) 40%, rgba(247, 250, 255, 0.5) 100%);
}

.section-hero .content-wrap .title2 {
  gap: 36px !important;
}
.section-hero .hero-image .hero-video {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0.72;
  pointer-events: none;
}
.section-hero .hero-image .hero-video__veil {
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(252, 253, 255, 0.32) 0%, rgba(252, 253, 255, 0.04) 45%, rgba(241, 244, 250, 0.42) 100%);
  pointer-events: none;
}
@media (prefers-reduced-motion: reduce) {
  .hero-video {
    display: none;
  }
  .section-hero--video .hero-image {
    background-image: url("/assets/video/hero-poster.webp");
    background-size: cover;
    background-position: center;
  }
}
.section-services .services-image img {
  filter: none;
}
/* Contact band: the same artwork, lifted into the light palette. */
.section-contact .contact-image img {
  filter: hue-rotate(212deg) saturate(0.85) brightness(1.32) contrast(0.82);
}
.section-contact .contact-image::after {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: 40px;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.62) 0%, rgba(255, 255, 255, 0.42) 60%, rgba(255, 255, 255, 0.28) 100%);
  pointer-events: none;
}
.section-tools > .tool-logo {
  position: absolute;
  display: grid;
  place-items: center;
  aspect-ratio: 1;
  background: var(--ms-surface);
  border: 1px solid var(--ms-line);
  border-radius: var(--ms-radius-sm);
  box-shadow: var(--ms-shadow-card);
}
.section-tools > .tool-logo img {
  width: 54%;
  height: 54%;
  object-fit: contain;
}


/* Page title bands reuse the same canvas, with a shorter arc. */
.section-page-title {
  background-image: none;
}
.section-page-title::before {
  background-image: url("/assets/video/hero-poster.webp");
  background-position: center;
  background-repeat: no-repeat;
  background-size: cover;
  background-attachment: scroll;
  filter: none;
}

/* Stack strip: official brand marks in a seamless loop. Two identical groups
   travel at -50%, so there is no seam and no snap back to the start. Motion
   stops while the strip is hovered or focused; under prefers-reduced-motion it
   becomes a static wrapping row. */
.stack-marquee {
  overflow: hidden;
  margin-top: 20px;
  -webkit-mask-image: linear-gradient(90deg, transparent 0, #000 8%, #000 92%, transparent 100%);
  mask-image: linear-gradient(90deg, transparent 0, #000 8%, #000 92%, transparent 100%);
}
.stack-marquee__track {
  display: flex;
  width: max-content;
  animation: stack-marquee 34s linear infinite;
}
.stack-marquee:hover .stack-marquee__track,
.stack-marquee:focus-within .stack-marquee__track {
  animation-play-state: paused;
}
/* The mask would fade the element's own focus ring at the edges. */
.stack-marquee:focus-visible {
  -webkit-mask-image: none;
  mask-image: none;
}
.stack-marquee__group {
  display: flex;
  align-items: center;
  gap: 56px;
  padding-right: 56px;
}
@keyframes stack-marquee {
  to {
    transform: translateX(-50%);
  }
}
@media (prefers-reduced-motion: reduce) {
  .stack-marquee {
    overflow: visible;
    -webkit-mask-image: none;
    mask-image: none;
  }
  .stack-marquee__track {
    width: 100%;
    animation: none;
  }
  .stack-marquee__group {
    flex-wrap: wrap;
    gap: 24px 56px;
    padding-right: 0;
  }
  .stack-marquee__group[aria-hidden="true"] {
    display: none;
  }
}
.partner-wrap .stack-logo {
  height: 38px;
  width: auto;
  opacity: 0.6;
  transition: opacity 0.25s ease;
}
.partner-wrap .stack-logo:hover {
  opacity: 1;
}
.features-center img {
  width: 150px;
  height: auto;
}
.features-center {
  background: var(--ms-surface);
  border: 1px solid var(--ms-line);
  box-shadow: var(--ms-shadow-card);
}
/* The connector pocket is intentional: it masks the radial light so
   only the 1px slit on the connector edge shows the travelling spark. Keep the
   mask but match the page background instead of the lighter neutral-50. */
.side-line-main .link-break-line::after {
  background: var(--body);
}

/* Footer wordmark: oversized brand text behind the content. */
footer .footer-image {
  max-width: min(900px, calc(100vw - 24px));
  opacity: 1;
  pointer-events: none;
  top: 100px;
}
footer .footer-image .footer-wordmark {
  display: block;
  font-weight: 600;
  font-size: clamp(64px, 12vw, 170px);
  line-height: 0.9;
  letter-spacing: 0.02em;
  text-align: center;
  color: var(--primary);
  opacity: 0.04;
}
@media (max-width: 991px) {
  footer .footer-image {
    display: none;
  }
  footer .footer-bottom {
    flex-direction: column;
    align-items: center;
    gap: 18px;
    text-align: center;
  }
  footer .footer-links {
    flex-wrap: wrap;
    justify-content: center;
    gap: 12px 20px;
  }
}
footer .footer-logo img {
  height: 34px;
  width: auto;
}

/* Skip link and screen-reader helper. */
.ms-skip {
  position: fixed;
  top: 8px;
  left: 8px;
  z-index: 2000;
  padding: 10px 16px;
  border-radius: 10px;
  background: var(--primary);
  color: var(--white);
  font-weight: 600;
  transform: translateY(-200%);
}
.ms-skip:focus-visible {
  transform: none;
}
.ms-visually-hidden {
  position: absolute !important;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
  border: 0;
}

/* Cookie banner: a dark plate, two equal commands, an explicit preference
   list. The banner is informational, never a second modal. */
.ms-cookie {
  position: fixed;
  left: 16px;
  right: 16px;
  bottom: 16px;
  z-index: 1500;
  max-width: 720px;
  max-height: calc(100dvh - 32px);
  overflow-y: auto;
  overscroll-behavior: contain;
  margin: 0 auto;
  padding: 22px 24px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 22px;
  background:
    radial-gradient(120% 90% at 18% -8%, rgba(255, 255, 255, 0.08) 0%, rgba(255, 255, 255, 0) 58%),
    linear-gradient(180deg, #1d1d22 0%, #0b0b0f 100%);
  color: var(--white);
  backdrop-filter: blur(20px);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.14),
    0 24px 60px rgba(0, 0, 0, 0.45),
    0 60px 120px -60px rgba(0, 0, 0, 0.6);
  transform-origin: 50% 100%;
  transition:
    opacity 220ms var(--ms-ease),
    translate 300ms var(--ms-ease),
    scale 300ms var(--ms-ease),
    visibility 0s linear 0s;
}
.ms-cookie[data-open="0"] {
  opacity: 0;
  translate: 0 18px;
  scale: 0.98;
  visibility: hidden;
  pointer-events: none;
  transition:
    opacity 180ms var(--ms-ease),
    translate 260ms var(--ms-ease),
    scale 260ms var(--ms-ease),
    visibility 0s linear 260ms;
}
.ms-cookie p {
  margin: 0 0 10px;
  font-size: 14px;
  line-height: 1.55;
  color: rgba(255, 255, 255, 0.78);
}
.ms-cookie__head {
  display: flex;
  align-items: center;
  gap: 8px;
  font-weight: 600;
  color: var(--white) !important;
}
.ms-cookie .ms-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--brand);
  box-shadow: 0 0 0 4px rgba(42, 107, 255, 0.16);
}
.ms-cookie__withdraw {
  font-size: 12.5px !important;
  color: rgba(255, 255, 255, 0.58) !important;
}
.ms-cookie__actions {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
  margin-top: 16px;
}
.ms-cookie__btn {
  width: 100%;
  min-height: 44px;
  border: 1px solid transparent;
  border-radius: 99px;
  padding: 10px 18px;
  font-size: 13.5px;
  font-weight: 600;
  cursor: pointer;
  transition:
    translate 180ms var(--ms-ease),
    border-color 180ms var(--ms-ease),
    box-shadow 180ms var(--ms-ease);
}
.ms-cookie__btn--solid {
  background: linear-gradient(180deg, #ffffff 0%, #ececf1 100%);
  color: #101014;
  box-shadow:
    inset 0 1px 0 #ffffff,
    inset 0 -2px 0 rgba(0, 0, 0, 0.12),
    0 1px 2px rgba(0, 0, 0, 0.3),
    0 12px 22px -14px rgba(0, 0, 0, 0.7);
}
.ms-cookie__btn--ghost {
  background: rgba(255, 255, 255, 0.08);
  border-color: rgba(255, 255, 255, 0.24);
  color: var(--white);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.14);
}
.ms-cookie__btn:hover {
  translate: 0 -1px;
}
.ms-cookie__btn--ghost:hover {
  background: rgba(255, 255, 255, 0.14);
  border-color: rgba(255, 255, 255, 0.38);
}
.ms-cookie__btn:active {
  translate: 0 1px;
}
.ms-cookie__links {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 6px 18px;
  margin-top: 14px;
}
.ms-cookie__link {
  color: rgba(255, 255, 255, 0.72);
  font-size: 13px;
  text-decoration: underline;
  text-underline-offset: 3px;
}
.ms-cookie__link--button {
  margin: 0;
  padding: 0;
  border: 0;
  background: none;
  font-family: inherit;
  cursor: pointer;
}
.ms-cookie__link:hover {
  color: #ffffff;
}
.ms-cookie__prefs {
  display: grid;
  gap: 10px;
  margin-top: 16px;
  padding-top: 16px;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
}
.ms-cookie__prefs[hidden] {
  display: none;
}
.ms-cookie__prefs:not([hidden]) {
  animation: ms-cookie-reveal 280ms var(--ms-ease);
}
@keyframes ms-cookie-reveal {
  from {
    opacity: 0;
    transform: translateY(-6px);
  }
}
.ms-cookie__pref {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  padding: 12px 14px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.04);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.06);
}
.ms-cookie__pref--toggle {
  cursor: pointer;
  transition:
    background 180ms var(--ms-ease),
    border-color 180ms var(--ms-ease);
}
.ms-cookie__pref--toggle:hover {
  background: rgba(255, 255, 255, 0.07);
  border-color: rgba(255, 255, 255, 0.16);
}
.ms-cookie__pref-copy {
  display: flex;
  flex-direction: column;
  gap: 2px;
  min-width: 0;
}
.ms-cookie__pref-title {
  font-size: 13.5px;
  font-weight: 600;
  color: #ffffff;
}
.ms-cookie__pref-note {
  font-size: 12px;
  line-height: 1.45;
  color: rgba(255, 255, 255, 0.6);
}
.ms-cookie__locked {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  flex: 0 0 auto;
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.02em;
  color: rgba(255, 255, 255, 0.72);
  white-space: nowrap;
}
.ms-cookie__locked .icon {
  font-size: 11px;
}
.ms-cookie__switch {
  position: relative;
  flex: 0 0 auto;
  width: 44px;
  height: 26px;
}
.ms-cookie__switch input {
  position: absolute;
  inset: 0;
  z-index: 1;
  width: 100%;
  height: 100%;
  margin: 0;
  opacity: 0;
  cursor: pointer;
}
.ms-cookie__track {
  position: absolute;
  inset: 0;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.16);
  box-shadow: inset 0 2px 4px rgba(0, 0, 0, 0.45);
  transition: background 200ms var(--ms-ease);
}
.ms-cookie__track::after {
  content: "";
  position: absolute;
  top: 3px;
  left: 3px;
  width: 20px;
  height: 20px;
  border-radius: 50%;
  background: #ffffff;
  box-shadow: 0 1px 2px rgba(0, 0, 0, 0.4);
  transition: transform 200ms var(--ms-ease);
}
.ms-cookie__switch input:checked + .ms-cookie__track {
  background: var(--ms-accent);
  box-shadow: inset 0 2px 4px rgba(0, 0, 0, 0.25);
}
.ms-cookie__switch input:checked + .ms-cookie__track::after {
  transform: translateX(18px);
}
.ms-cookie__switch input:focus-visible + .ms-cookie__track {
  outline: 2px solid #ffffff;
  outline-offset: 3px;
}
.ms-cookie__switch input:focus-visible {
  outline: none;
}

/* Focus ring consistent with Mikesoft surfaces. */
:where(a, button, input, textarea, select, summary, [tabindex]):focus-visible {
  outline: 2px solid var(--brand);
  outline-offset: 3px;
  border-radius: 6px;
}

/* Contact form extras: honeypot, consent, error and success states. */
.form-contact fieldset {
  border: 0;
  padding: 0;
}
.form-contact .hp-field {
  position: absolute;
  left: -9999px;
  width: 1px;
  height: 1px;
  overflow: hidden;
}
.form-contact .consent-row {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  margin: 4px 0 24px;
  color: #3f3f46;
  cursor: pointer;
}
.form-contact .consent-row input {
  width: 18px;
  height: 18px;
  margin-top: 2px;
  accent-color: var(--brand);
}
.form-contact .consent-row a {
  color: var(--primary);
  text-decoration: underline;
  text-underline-offset: 2px;
}
.form-contact .form-error {
  margin: 0 0 16px;
  color: #b42318;
  font-size: 14px;
  font-weight: 600;
}
.form-contact .form-field-error {
  margin: 8px 0 0;
  color: #b42318;
  font-size: 13px;
  font-weight: 600;
  line-height: 1.4;
}
.form-contact .form-field-error[hidden] {
  display: none;
}
.form-contact.is-sent > :not(.form-done) {
  display: none;
}
.form-contact .form-done {
  padding: 8px 0 16px;
}
.form-contact .form-done h5 {
  margin-bottom: 8px;
}
.form-contact .form-done p {
  color: var(--secondary);
}

/* Page title bands reuse the hero artwork: tint it blue behind the text. */
.section-page-title {
  position: relative;
  background-image: none;
  overflow: hidden;
}
.section-page-title::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image: url(../images/section/hero-1.jpg);
  background-position: center;
  background-repeat: no-repeat;
  background-size: cover;
  filter: hue-rotate(212deg) saturate(1.08) brightness(1.02);
  z-index: 0;
}
.section-page-title > * {
  position: relative;
  z-index: 1;
}
.section-about-us .heading-section {
  margin-bottom: 56px;
}
.article-blog .infor_name {
  -webkit-line-clamp: 2;
}
.form-contact .nice-select {
  width: 100%;
}
.contact-item .content {
  min-width: 0;
}
.contact-item .text {
  overflow-wrap: anywhere;
  color: #3f3f46;
}
@media (max-width: 767px) {
  .process-slide,
  .swiper-testimonial_wrap {
    overflow: hidden;
    max-width: 100%;
  }
  .process-slide .swiper,
  .swiper-testimonial_wrap .swiper {
    max-width: 100%;
  }
}
html,
body {
  overflow-x: clip;
}
@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }
  .effectFade,
  .fadeUp,
  .fadeRotateX,
  .fadeZoom,
  .wow {
    opacity: 1 !important;
    transform: none !important;
  }
}

/* Article and legal typography. */
.article-body {
  color: var(--neutral-700);
  font-size: 17px;
  line-height: 1.75;
}
.article-body > * + * {
  margin-top: 1.1em;
}
.article-body h2 {
  margin-top: 2em;
  font-size: 32px;
  line-height: 1.2;
  letter-spacing: -0.02em;
  color: var(--primary);
}
.article-body h3 {
  margin-top: 1.6em;
  font-size: 22px;
  line-height: 1.3;
  color: var(--primary);
}
.article-body ul,
.article-body ol {
  padding-left: 1.2em;
  display: grid;
  gap: 0.5em;
}
.article-body li::marker {
  color: var(--brand);
}
.article-body a {
  color: var(--ms-accent-ink);
  text-decoration: underline;
  text-underline-offset: 2px;
}
.article-body blockquote {
  padding: 20px 24px;
  border-radius: 16px;
  background: var(--neutral-100);
  color: var(--primary);
}
.article-body table {
  width: 100%;
  border-collapse: collapse;
  font-size: 15px;
}
.table-scroll {
  max-width: 100%;
  overflow-x: auto;
  overscroll-behavior-inline: contain;
}
.table-scroll:focus-visible {
  outline: 2px solid var(--brand);
  outline-offset: 3px;
}
.table-scroll table {
  min-width: 560px;
}
.article-body th,
.article-body td {
  padding: 12px 14px;
  border-bottom: 1px solid var(--neutral-200);
  text-align: left;
  vertical-align: top;
}
/* The share row mixes icon-font glyphs with the inline WhatsApp mark, which the
   font does not carry: one box so the five buttons read as one set. A touch
   smaller than the footer social row, because five of them sit in a text block. */
.entry-footer .social-item {
  width: 46px;
  height: 46px;
  font-size: 20px;
}
.entry-footer .social-item__mark {
  display: block;
  width: 20px;
  height: 20px;
}
/* Five targets plus the label do not fit one phone row: the group drops under
   the label instead of pushing the last button past the edge. */
.entry-footer__share {
  flex-wrap: wrap;
  row-gap: 12px;
}
.legal-body h2 {
  margin-top: 2.2em;
}
/* The consent control lives inside the “manage your preferences” section, so it
   inherits body rhythm and needs a small top gap. */
.legal-body .tf-btn {
  margin-top: 6px;
}

/* Policy pages: the index sits in its own column and sticks like the article
   sidebar, scrolling with the page rather than on its own. */
.policy-row {
  align-items: flex-start;
}
.policy-aside {
  align-self: stretch;
}
.policy-toc {
  position: sticky;
  top: 32px;
  height: fit-content;
  /* Same behaviour as the article sidebar while the list fits the viewport;
     a cap that only bites when it does not, so the last entry stays reachable
     on the long indexes (KeySoft has 18 sections). */
  max-height: calc(100dvh - 64px);
  overflow-y: auto;
  overscroll-behavior: contain;
  padding: 2px 20px 10px 2px;
  border-right: 1px solid var(--ms-line);
}
.policy-toc__title {
  margin: 0 0 14px;
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--ms-muted);
}
.policy-toc__list {
  display: grid;
  gap: 2px;
  margin: 0;
  padding: 0;
  list-style: none;
}
.policy-toc__list a {
  display: block;
  padding: 7px 12px;
  border-radius: 10px;
  color: var(--ms-body-text);
  font-size: 14px;
  line-height: 1.35;
  text-decoration: none;
  transition:
    color 160ms var(--ms-ease),
    background-color 160ms var(--ms-ease);
}
.policy-toc__list a:hover {
  color: var(--ms-ink);
  background-color: rgba(9, 9, 11, 0.04);
}
.policy-toc__list a[aria-current="location"] {
  color: var(--ms-accent-ink);
  background-color: var(--ms-accent-soft);
  font-weight: 600;
}
@media (max-width: 991px) {
  .policy-toc {
    position: static;
    max-height: 240px;
    overflow-y: auto;
    margin-bottom: 28px;
    padding: 14px 16px;
    border: 1px solid var(--ms-line);
    border-radius: 16px;
    background: #ffffff;
  }
}

.list-check {
  list-style: none;
  padding: 0;
  margin: 18px 0 24px;
  display: grid;
  gap: 10px;
}
.list-check li {
  display: flex;
  gap: 10px;
  align-items: flex-start;
  color: var(--neutral-200);
  font-size: 16px;
  line-height: 1.5;
}

/* Light cards need dark copy; the pale tone is only for dark panels. */
.features-item .list-check li {
  color: var(--ms-body-text);
}
.features-item .list-check .icon {
  width: 18px;
  height: 18px;
  font-size: 13px;
  background: none;
  box-shadow: none;
  border-radius: 0;
  color: var(--brand);
  flex: 0 0 auto;
  margin-top: 4px;
}
.list-check .icon {
  color: var(--brand);
  margin-top: 4px;
  flex: 0 0 auto;
}

.local-facts {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
  gap: 16px;
  margin-top: 28px;
}
.local-fact {
  padding: 14px 16px;
  border-radius: 14px;
  background: var(--neutral-100);
}

a.features-item {
  color: inherit;
  text-decoration: none;
  transition: box-shadow 0.25s ease, border-color 0.25s ease;
}
a.features-item:hover {
  box-shadow: 0 18px 40px rgba(9, 9, 11, 0.08);
}

/* Small utility: keeps long legal tables usable on phones. */
.ms-table-wrap {
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
}

/* Keep the dotted globe, animate it around the sphere centre below the crop. */
.section-about-us .col-left img.globe-turn {
  transform-origin: 50% 118%;
  animation: globeTurn 22s ease-in-out infinite alternate;
}
.section-about-us .col-left {
  overflow: hidden;
}
@keyframes globeTurn {
  0% {
    transform: rotate(-1.8deg);
  }
  100% {
    transform: rotate(1.8deg);
  }
}

footer .footer-links {
  flex-wrap: wrap;
}

/* Scroll-fill statement: the ink edge runs line by line (see scroll-fill.js). */
.sf-section {
  padding: clamp(64px, 8vw, 128px) 0;
  background: var(--ms-surface);
}
.sf-label {
  margin: 0 0 24px;
  font-size: 12px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--ms-accent);
}
.sf {
  margin: 0;
  font-size: clamp(34px, 5.2vw, 76px);
  line-height: 1.06;
  letter-spacing: -0.04em;
  font-weight: 600;
  text-wrap: balance;
}
.sf-line {
  display: block;
  background-image: linear-gradient(to right, var(--ms-ink) 50%, rgba(24, 24, 27, 0.14) 50%);
  background-size: 200% 100%;
  background-position: 100% 0;
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  /* Same descender room as .text-gradient-1: the clipped background follows
     the padding box, the negative margin keeps the lines where they were. */
  padding-block: 0.02em 0.1em;
  margin-block: -0.02em -0.1em;
}
.sf-line--accent {
  background-image: linear-gradient(to right, var(--ms-accent) 50%, rgba(42, 107, 255, 0.22) 50%);
}

/* Projects archive: two cards per row, each card re-laid out for the narrower
   column (image on top, title over the metadata grid). */
.featured-works-list--pair {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}
/* The archive covers are 1024x500; the 16:10 frame cropped the wordmarks.
   Match the source ratio so a brand name is never clipped. */
.featured-works-list--pair .featured-works-item .image {
  aspect-ratio: 1024 / 500;
}
.featured-works-list--pair .featured-works-item .image img {
  object-position: center;
}
.project-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-top: 4px;
}
.project-chip {
  display: inline-flex;
  align-items: center;
  padding: 4px 10px;
  border-radius: 999px;
  background: rgba(24, 24, 27, 0.06);
  color: var(--ms-ink);
  font-size: 12px;
  font-weight: 600;
  line-height: 1.5;
  white-space: nowrap;
}
.featured-works-list--pair .featured-works-item .content {
  padding: 24px 24px 8px;
}
/* Cards in the same row end on the same line, even when one has no repo link.
   GSAP wraps a fading card in its own overflow element, so both levels need the
   height for the plate to reach the row bottom. */
.featured-works-list--pair .work-tilt,
.featured-works-list--pair .work-tilt > .overflow-hidden,
.featured-works-list--pair .work-tilt .featured-works-item {
  height: 100%;
}
.featured-works-list--pair .featured-works-item .content .bot {
  flex-direction: column;
  gap: 20px;
}
.featured-works-list--pair .featured-works-item .content .bot .heading,
.featured-works-list--pair .featured-works-item .content .grid-text {
  width: 100%;
}
.featured-works-list--pair .featured-works-item .content .grid-text {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px 24px;
}
.featured-works-list--pair .featured-works-item .content .grid-text .item:nth-child(1) {
  width: 100%;
  grid-column: 1 / -1;
}
@media (max-width: 767px) {
  .featured-works-list--pair {
    grid-template-columns: 1fr;
  }
}

/* Studio page: an editorial profile instead of the home page team card. */
.studio-profile {
  display: grid;
  grid-template-columns: minmax(0, 0.85fr) minmax(0, 1.15fr);
  gap: clamp(32px, 5vw, 88px);
  align-items: start;
}
.studio-profile__frame {
  position: relative;
  border-radius: var(--ms-radius-lg);
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.12);
  box-shadow: 0 30px 70px rgba(0, 0, 0, 0.45);
}
.studio-profile__frame img {
  display: block;
  width: 100%;
  height: auto;
  aspect-ratio: 4 / 5;
  object-fit: cover;
  object-position: center 22%;
}
.studio-profile__caption {
  margin: 16px 0 0;
  font-size: 12px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.55);
}
.studio-profile__label {
  margin: 0 0 18px;
  font-size: 12px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: #9db9ff;
}
.studio-profile__title {
  margin: 0 0 22px;
  font-size: clamp(28px, 3vw, 44px);
  line-height: 1.12;
  letter-spacing: -0.02em;
  color: #fff;
  text-wrap: balance;
}
.studio-profile__text {
  margin: 0 0 16px;
  font-size: 16px;
  line-height: 1.7;
  color: rgba(255, 255, 255, 0.78);
}
.studio-profile__text--quiet {
  color: rgba(255, 255, 255, 0.6);
  font-size: 15px;
}
.studio-profile__facts {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0;
  margin: 28px 0;
  border-top: 1px solid rgba(255, 255, 255, 0.14);
}
.studio-profile__fact {
  display: flex;
  flex-direction: column;
  gap: 4px;
  padding: 14px 0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.14);
}
.studio-profile__fact:nth-child(odd) {
  padding-right: 20px;
}
.studio-profile__fact:nth-child(even) {
  padding-left: 20px;
  border-left: 1px solid rgba(255, 255, 255, 0.14);
}
.studio-profile__fact dt {
  font-size: 11px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.5);
}
.studio-profile__fact dd {
  margin: 0;
  font-size: 15px;
  font-weight: 600;
  color: #fff;
}
.studio-profile__social {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 12px;
  margin-top: 28px;
}
.studio-profile__social .social-item {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.18);
  color: #fff;
  background: rgba(255, 255, 255, 0.06);
  transition: background-color 0.25s ease, border-color 0.25s ease, color 0.25s ease;
}
.studio-profile__social .social-item:hover {
  background: rgba(255, 255, 255, 0.14);
  border-color: var(--brand);
  color: var(--brand);
}
.studio-profile__cta {
  margin-left: 6px;
  background: #fff;
  color: var(--ms-ink);
  border-color: transparent;
}
@media (max-width: 991px) {
  .studio-profile {
    grid-template-columns: 1fr;
  }
  .studio-profile__frame img {
    aspect-ratio: 1 / 1;
  }
}

/* Compact hero: long titles (articles, legal pages) on the same canvas. */
.section-hero.v1.section-hero--compact .content-wrap {
  padding: 156px 0 64px;
}
.section-hero--compact .title.section-hero__title--compact {
  max-width: 20ch;
  margin: 0 auto 18px;
  font-size: clamp(34px, 4.6vw, 64px);
  line-height: 1.08;
  letter-spacing: -0.028em;
  text-wrap: balance;
}
.section-hero--compact .title .title1 {
  display: block;
}
.section-hero--compact .text {
  max-width: 62ch;
  margin: 0 auto 24px;
}
/* Inner-page heroes carry buttons and chips, so they need more bottom room. */
.section-hero.v1 .content-wrap {
  padding: 168px 0 88px;
}
@media (max-width: 767px) {
  .section-hero.v1.section-hero--compact .content-wrap {
    padding: 118px 0 44px;
  }
  .section-hero.v1 .content-wrap {
    padding: 118px 0 72px;
  }
}

/* Blog archive: every card the same size and the same internal rhythm. */
.blog-grid {
  align-items: stretch;
  row-gap: 32px;
  column-gap: 28px;
}
.article-blog {
  position: relative;
  display: flex;
  flex-direction: column;
  height: 100%;
  border: 1px solid transparent;
  border-radius: var(--ms-radius-md);
  background:
    linear-gradient(180deg, #ffffff 0%, #fbfbfc 100%) padding-box,
    linear-gradient(180deg, var(--ms-edge-hi) 0%, rgba(255, 255, 255, 0.45) 46%, var(--ms-edge-lo) 100%) border-box;
  box-shadow: var(--ms-plate-shadow);
  overflow: hidden;
  transition: box-shadow 0.3s var(--ms-ease);
}
.article-blog:hover {
  box-shadow:
    var(--ms-plate-shadow-hover),
    0 0 0 1px rgba(42, 107, 255, 0.24),
    0 24px 50px -28px rgba(42, 107, 255, 0.2);
}
.article-blog .blog-image {
  display: block;
  aspect-ratio: 16 / 10;
  overflow: hidden;
  background: var(--ms-canvas);
}
.article-blog .blog-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.6s var(--ms-ease);
}
.article-blog:hover .blog-image img {
  transform: scale(1.03);
}
.article-blog .blog-content {
  flex: 1;
  padding: 22px 24px 24px;
  gap: 20px;
}
.article-blog .infor {
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.article-blog .infor_sub {
  margin: 0;
  font-size: 12px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}
.article-blog .infor_name {
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
  font-size: 19px;
  line-height: 1.35;
  letter-spacing: -0.01em;
}
.article-blog .blog-card__action {
  align-self: flex-start;
  margin-top: auto;
}

/* Article cover: a thin matte frame, same light and edge as the cards. */
.blog-single-wrap .image {
  padding: 6px;
  border: 1px solid rgba(24, 24, 27, 0.08);
  border-radius: 22px;
  background: linear-gradient(180deg, #ffffff 0%, #f7f7f9 100%);
  box-shadow:
    inset 0 1px 0 #ffffff,
    0 1px 2px rgba(24, 24, 27, 0.04),
    0 14px 30px -22px rgba(24, 24, 27, 0.24);
}
.blog-single-wrap .image img {
  width: 100%;
  display: block;
  border-radius: 16px;
}

/* Article sidebar follows the reader down the whole piece, then stops. */
.article-sidebar {
  align-self: stretch;
}
.article-sidebar .blog-sidebar {
  position: sticky;
  top: 32px;
  margin-top: 0;
  height: fit-content;
  gap: 28px;
}
.article-sidebar .sidebar-title {
  margin: 0 0 16px;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--ms-muted);
}
.article-sidebar .relatest-post-item .title {
  font-size: 15px;
  line-height: 1.4;
}
.article-sidebar .relatest-post-item .time {
  margin: 4px 0 0;
  font-size: 12px;
  color: var(--ms-muted);
}
.article-sidebar .tf-btn {
  width: 100%;
}
@media (max-width: 991px) {
  .article-sidebar .blog-sidebar {
    position: static;
    margin-top: 40px;
  }
}

/* One section rhythm for every band, on every breakpoint. */
.flat-spacing {
  padding-block: clamp(64px, 9vw, 120px);
}
@media (max-width: 991px) {
  .section-tools.flat-spacing {
    padding-block: 64px;
  }
}

/* Section rhythm: full-bleed bands carry no padding of their own, so the band
   that follows them needs explicit air instead of relying on a neighbour. */
.box-black + .section-faqs,
.box-black + .flat-spacing,
.section-partner + .section-services,
.section-partner + .sf-section {
  margin-top: clamp(72px, 8vw, 120px);
}
/* Any band with its top padding removed still needs air below the hero frame. */
.section-hero + .pt-0,
.section-hero + .p-0 {
  margin-top: clamp(48px, 5vw, 80px);
}

/* Google review badge, sitting inside the existing testimonial frame. */
.testimonial-image--badge {
  display: grid;
  place-items: center;
}
.greview {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  width: 100%;
  aspect-ratio: 1;
  padding: 40px 32px;
  border-radius: 24px;
  text-align: center;
  background: var(--ms-surface);
  background-image: radial-gradient(62.56% 62.56% at 28.14% -10.42%, rgba(255, 255, 255, 0.5) 0%, rgba(255, 255, 255, 0) 100%);
  background-repeat: no-repeat;
  border: 0.38px solid rgba(255, 255, 255, 0.25);
}
.greview__mark {
  display: flex;
  justify-content: center;
  margin-bottom: 22px;
}
.greview__mark svg {
  width: 62px;
  height: 62px;
}
.greview__score {
  display: flex;
  align-items: baseline;
  justify-content: center;
  gap: 6px;
  margin: 0 0 8px;
}
.greview__value {
  font-size: 46px;
  font-weight: 700;
  line-height: 1;
  letter-spacing: -0.03em;
  color: var(--ms-ink);
}
.greview__of {
  font-size: 15px;
  color: var(--ms-muted);
}
.greview__stars {
  display: flex;
  justify-content: center;
  gap: 4px;
  color: #fbbc05;
}
.greview__stars svg {
  width: 26px;
  height: 26px;
}
.greview__caption {
  margin: 16px 0 24px;
  font-size: 15px;
  color: var(--ms-body-text);
}
/* Testimonial rating stars match the Google gold of the badge. */
.section-testimonials .top-icon .icon {
  color: #fbbc05;
}
.greview__people {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0;
  margin: 0;
  padding: 0;
  list-style: none;
}
.greview__avatar {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 54px;
  height: 54px;
  margin-left: -14px;
  border-radius: 999px;
  border: 3px solid var(--ms-surface);
  font-size: 15px;
  font-weight: 700;
  letter-spacing: 0.02em;
}
.greview__avatar:first-child {
  margin-left: 0;
}
.greview__avatar--blue {
  background: #e3ebff;
  color: #1a4fd6;
}
.greview__avatar--slate {
  background: #e7e9ee;
  color: #3f3f46;
}
.greview__avatar--mint {
  background: #dff3e8;
  color: #1b7a4f;
}
.greview__avatar--sand {
  background: #f6ecd9;
  color: #8a5a12;
}
.greview__avatar--more {
  background: var(--ms-ink);
  color: #fff;
  letter-spacing: 0.08em;
}
@media (max-width: 991px) {
  .testimonial-image--badge {
    margin-top: 40px;
  }
}
.features-item,
.accordion-asked-item,
.section-tools > .tool-logo {
  background-image: radial-gradient(62.56% 62.56% at 28.14% -10.42%, rgba(255, 255, 255, 0.5) 0%, rgba(255, 255, 255, 0) 100%);
  background-repeat: no-repeat;
}

/* Reading order: the second headline line is dimmed, the first carries the ink. */
.section-hero .content-wrap .title2 .text-gradient-1 {
  background-image: linear-gradient(132deg, #5f6670 11%, #6b7280 100%);
}
.tf-btn-2:hover {
  border-color: rgba(42, 107, 255, 0.45);
  box-shadow: 0 0 0 1px rgba(42, 107, 255, 0.16), 0 10px 24px -14px rgba(42, 107, 255, 0.5);
}

/* Quote box: brand tile instead of a portrait, filling the 160x250 slot. */
.quote-tile {
  display: grid;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.35);
  place-items: center;
  width: 100%;
  height: 100%;
  border-radius: 24px;
  background-image:
    radial-gradient(62.56% 62.56% at 28.14% -10.42%, rgba(255, 255, 255, 0.35) 0%, rgba(255, 255, 255, 0) 100%),
    linear-gradient(180deg, #1a4fd6 0%, #2a6bff 100%);
}
.section-about-us .box-quotes .image .quote-tile img {
  width: 86%;
  height: auto;
  object-fit: contain;
  border-radius: 0;
}

/* Equal-height cards where feature cards sit in a grid row (services, not the
   home two-column layout, where rows are independent). */
.section-features .row > [class*="col-"] > .overflow-hidden {
  height: 100%;
}
.section-features .row .features-item {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  height: 100%;
}
.section-features .row .features-item .text-secondary {
  margin-bottom: 0;
}

/* Contact page: the framed band keeps air above and below the form. */
.section-contact--page {
  padding: 48px;
}
@media (max-width: 767px) {
  .section-contact--page {
    padding: 24px 12px;
  }
}
.section-contact--page .form-contact {
  margin-left: 0;
  margin-right: 0;
}

/* Review box counter: the template's 144px number wraps in this column. */
.section-about-us .review-box .counter {
  font-size: clamp(64px, 7vw, 104px);
  line-height: 1;
  letter-spacing: -0.03em;
  white-space: nowrap;
}
.section-about-us .review-box .counter > span {
  line-height: 1;
}

/* Rating stars are gold everywhere, matching the reviews badge. */
.section-about-us .review-box .text-brand {
  color: #fbbc05 !important;
}

/* ---------------------------------------------------------------------------
   Mobile menu: opaque panel, 44px targets, safe-area, transform-based motion.
   Behaviour lives in src/scripts/menu.js (dialog + focus trap + history).
   --------------------------------------------------------------------------- */
html.menu-open,
body.menu-open {
  overflow: hidden;
  touch-action: none;
}
/* iOS-safe lock: the body is pinned at its current offset (set inline by menu.js). */
body.menu-open {
  position: fixed;
  left: 0;
  right: 0;
  width: 100%;
}

.tf-btn.mobile-menu {
  width: 44px;
  height: 44px;
  padding: 0;
}
.tf-btn.mobile-menu svg {
  display: block;
}

.offcanvas-menu {
  top: 0 !important;
  height: 100dvh !important;
  background-color: #0b0b0f;
  background-image: radial-gradient(120% 80% at 18% -12%, rgba(255, 255, 255, 0.07) 0%, rgba(255, 255, 255, 0) 58%);
  backdrop-filter: none;
  transform: translateY(100%);
  /* The panel slides both ways: visibility waits for the transform on the way
     out instead of cutting the animation short, and leads it on the way in. */
  visibility: hidden;
  transition:
    transform 0.42s var(--ms-ease),
    visibility 0s linear 0.42s;
  pointer-events: none;
}
.offcanvas-menu.show {
  transform: none;
  visibility: visible;
  transition:
    transform 0.42s var(--ms-ease),
    visibility 0s linear 0s;
  pointer-events: auto;
}
.offcanvas-menu .offcanvas-content {
  padding-top: 20px;
  padding-bottom: max(20px, env(safe-area-inset-bottom));
}
.offcanvas-menu .canvas_head {
  opacity: 1 !important;
  visibility: visible !important;
  transform: none !important;
  transition: none !important;
}

.canvas_head .menu-close {
  display: inline-grid;
  place-items: center;
  width: 44px;
  height: 44px;
  padding: 0;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.22);
  background: rgba(255, 255, 255, 0.06);
  color: #fff;
  font-size: 16px;
  cursor: pointer;
}
.canvas_head .menu-close:hover {
  border-color: rgba(255, 255, 255, 0.42);
  background: rgba(255, 255, 255, 0.12);
}

.offcanvas-menu .canvas_center {
  justify-content: safe center;
  padding-right: 0;
}
.offcanvas-menu .nav-ul-mb {
  width: 100%;
}
.offcanvas-menu .nav-ul-mb li {
  text-align: left;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}
.offcanvas-menu .nav-ul-mb li:first-child {
  border-top: 1px solid rgba(255, 255, 255, 0.1);
}
.offcanvas-menu .mb-menu-link {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  min-height: 64px;
  padding: 8px 0;
  pointer-events: auto;
  font-size: clamp(26px, 7.2vw, 38px);
  line-height: 1.12;
  letter-spacing: -0.02em;
}
.offcanvas-menu .mb-menu-link .text {
  color: #fff;
}
.offcanvas-menu .mb-menu-link[aria-current="page"] .text {
  color: var(--brand);
}

.canvas_actions {
  display: flex;
  flex-direction: column;
  align-items: stretch;
  gap: 14px;
  margin: 18px 0 6px;
}
.canvas_actions .tf-btn {
  width: 100%;
  justify-content: center;
}



/* Visible focus ring on every surface; the dark panel needs white. */
a:focus-visible,
button:focus-visible,
[tabindex]:focus-visible {
  outline: 2px solid var(--ms-accent);
  outline-offset: 3px;
}
.offcanvas-menu a:focus-visible,
.offcanvas-menu button:focus-visible {
  outline-color: #fff;
}

/* Slider controls are native buttons now: remove the browser button chrome
   without touching the template's circular navigation styling. */
.btn-slider,
button.nav-prev-swiper,
button.nav-next-swiper {
  appearance: none;
  border: 0;
  padding: 0;
  background: transparent;
  color: inherit;
  font: inherit;
  cursor: pointer;
}

/* Project cards: the overlay is a pointer affordance, while the title link is
   the keyboard and assistive-technology path. Reveal the overlay as soon as
   anything inside the card has focus, and keep its text on a solid plate. */
.featured-works-item:focus-within .image .view-project,
.main-mouse-hover:focus-within .tf-mouse {
  opacity: 1;
  visibility: visible;
}
.featured-works-item .image .view-project {
  background: rgba(9, 9, 11, 0.78);
  color: #fff;
}

@media (prefers-reduced-motion: reduce) {
  .offcanvas-menu {
    transition: none;
  }
  .offcanvas-menu *,
  .offcanvas-menu *::before,
  .offcanvas-menu *::after {
    transition-delay: 0s !important;
    transition-duration: 0.01ms !important;
    animation-duration: 0.01ms !important;
  }
}

/* Contact page: route clients with a live issue to the support page. */
.contact-support-link {
  margin: 22px 0 0;
  font-size: 15px;
  color: #3f3f46;
}
.contact-support-link a {
  color: var(--ms-accent);
  font-weight: 600;
  text-decoration: underline;
  text-underline-offset: 3px;
}
.offcanvas-menu .container {
  padding-inline: 24px;
}
/* Menu head mirrors the header: language toggle next to the close control. */
.canvas_head__actions {
  display: flex;
  align-items: center;
  gap: 10px;
}
.canvas_head__actions .language-toggle {
  background: rgba(255, 255, 255, 0.1);
}

/* Section titles are real h2s now: neutralise the user-agent margin so the
   existing heading-section spacing still controls the rhythm. */
.heading-section .heading-title {
  margin: 0;
  text-wrap: balance;
}

/* The stack headline sat in a five-column box and broke into three lines with a
   one-word orphan; the wider column and balance keep it at two. */
.section-tools .heading-title {
  text-wrap: balance;
}

/* The menu ends on the CTA: no footer block below it. */
.offcanvas-menu .canvas_actions {
  margin-top: 0;
  margin-bottom: max(8px, env(safe-area-inset-bottom));
  padding-top: 8px;
}

/* Contact form selects: the vendor theme paints the open list black, so the
   options ended up black-on-black. Restore a light menu that matches the inputs. */
.form-contact .nice-select {
  width: 100%;
  height: auto;
  padding: 14px 20px;
  border: 1px solid var(--ms-line);
  border-radius: var(--ms-radius-sm);
  background-color: var(--ms-surface);
  color: var(--ms-ink);
  font-size: 15px;
  line-height: 1.4;
}
.form-contact .nice-select:active,
.form-contact .nice-select.open,
.form-contact .nice-select:focus {
  border-color: var(--ms-accent);
}
.form-contact .nice-select .current {
  display: block;
  color: var(--ms-ink);
}
.form-contact .nice-select .list {
  margin-top: 6px;
  max-height: 260px;
  border: 1px solid var(--ms-line);
  border-radius: var(--ms-radius-sm);
  background-color: var(--ms-surface);
  box-shadow: var(--ms-shadow-card);
}
.form-contact .nice-select .option {
  min-height: 0;
  padding: 10px 20px;
  font-size: 15px;
  line-height: 1.4;
  color: var(--ms-ink);
}
.form-contact .nice-select .option:hover,
.form-contact .nice-select .option.focus,
.form-contact .nice-select .option.selected.focus {
  background-color: var(--ms-accent-soft);
  color: var(--ms-accent-ink);
}
.form-contact .nice-select .option.selected {
  color: var(--ms-accent-ink);
  font-weight: 600;
}
.form-contact .nice-select:after {
  right: 22px;
  border-color: var(--ms-muted);
}

/* Home hero headline: the promise is the first thing read, so it gets the
   display scale instead of the 32px template step, and the second line carries
   the brand blue. */
.section-hero .content-wrap .title.text-display-2 {
  font-size: clamp(44px, 9vw, 112px);
  line-height: 0.98;
  letter-spacing: -0.035em;
  text-wrap: balance;
}
.section-hero .content-wrap .title .title2 .text-gradient-1 {
  background-image: linear-gradient(118deg, var(--ms-accent-strong) 0%, var(--ms-accent) 58%, #3f78ff 100%);
}
@media (max-width: 767px) {
  .section-hero .content-wrap .title.text-display-2 {
    font-size: clamp(40px, 12.2vw, 62px);
    line-height: 1.02;
    letter-spacing: -0.03em;
  }
  .section-hero .content-wrap .title .title2 {
    margin-top: 6px;
  }
  .section-hero .content-wrap .sub,
  .heading-section .heading-sub {
    max-width: 100%;
    flex-wrap: wrap;
    justify-content: center;
  }
}
.section-hero .content-wrap .title.text-display-2 {
  margin-bottom: 40px;
}
@media (max-width: 767px) {
  .section-hero .content-wrap .title.text-display-2 {
    margin-bottom: 26px;
  }
}

/* Home hero, second line: the promise carries the brand blue as a gradient, with
   the dimmed first line above it doing the contrast work. No animation here. */
.section-hero--video .content-wrap .title .title2 .text-gradient-1 {
  background-image: linear-gradient(118deg, var(--ms-accent-strong) 0%, var(--ms-accent) 58%, #3f78ff 100%);
}
/* Services page, pricing: one editorial head, a single ledger for the cost
   factors, the checklist and the objection side by side, one closing band. */
.section-pricing .pricing-head {
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(0, 0.95fr);
  gap: clamp(24px, 4vw, 64px);
  align-items: end;
  margin-bottom: clamp(40px, 5vw, 64px);
}
.section-pricing .pricing-head .heading-title {
  margin: 0;
  font-size: clamp(34px, 3.8vw, 56px);
  line-height: 1.04;
  letter-spacing: -0.03em;
}
.section-pricing .pricing-lead {
  max-width: 56ch;
  margin: 0;
  color: var(--ms-body-text);
}
.section-pricing .pricing-factors {
  margin: 0 0 32px;
}
.section-pricing .pricing-factors__title {
  margin-bottom: 16px;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--ms-muted);
}
.section-pricing .pricing-factors .row {
  --bs-gutter-x: 0;
  --bs-gutter-y: 0;
  margin-inline: 0;
  overflow: hidden;
  border: 1px solid rgba(24, 24, 27, 0.08);
  border-radius: var(--ms-radius-md);
  background: linear-gradient(180deg, #ffffff 0%, #fbfbfc 100%);
  box-shadow: var(--ms-plate-shadow);
}
.section-pricing .pricing-factor {
  height: 100%;
  padding: 30px 28px;
  border: 0;
  border-radius: 0;
  background: none;
  box-shadow: none;
}
.section-pricing .pricing-factors .row > [class*="col-"] + [class*="col-"] .pricing-factor {
  border-left: 1px solid rgba(24, 24, 27, 0.07);
}
.section-pricing .pricing-factor__num {
  display: inline-grid;
  place-items: center;
  width: 32px;
  height: 32px;
  border-radius: 999px;
  background: var(--ms-accent-soft);
  color: var(--ms-accent-ink);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.06em;
}
.section-pricing .pricing-factor__name {
  margin: 14px 0 8px;
  font-size: 18px;
}
.section-pricing .pricing-factor__body {
  margin: 0;
  color: var(--ms-body-text);
  font-size: 15px;
  line-height: 1.6;
}
.section-pricing .pricing-note {
  max-width: 54ch;
  margin: 0;
  font-size: clamp(19px, 1.7vw, 24px);
  line-height: 1.45;
  letter-spacing: -0.015em;
  color: var(--ms-body-text);
}
.section-pricing .pricing-objection {
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 30px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: var(--ms-radius-md);
  background:
    radial-gradient(90% 70% at 20% 0%, rgba(255, 255, 255, 0.06), transparent 60%),
    var(--ms-ink);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.1),
    0 18px 36px -28px rgba(9, 9, 11, 0.6);
}
.section-pricing .pricing-objection__label {
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.55);
}
.section-pricing .pricing-objection__title {
  margin: 14px 0 12px;
  font-size: 22px;
  line-height: 1.25;
  color: #fff;
}
.section-pricing .pricing-objection__body {
  margin: 0;
  font-size: 15px;
  line-height: 1.65;
  color: rgba(255, 255, 255, 0.78);
}
.section-pricing .pricing-band {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 28px;
  margin-top: 32px;
  padding: 30px 32px;
  border: 1px solid rgba(42, 107, 255, 0.18);
  border-radius: var(--ms-radius-md);
  background:
    radial-gradient(120% 100% at 0% 0%, rgba(255, 255, 255, 0.7), transparent 60%),
    var(--ms-accent-soft);
}
.section-pricing .pricing-band__copy {
  max-width: 62ch;
}
.section-pricing .pricing-band__title {
  margin: 0 0 8px;
  font-size: 24px;
  color: var(--ms-accent-ink);
}
.section-pricing .pricing-band__note,
.section-pricing .pricing-band__text {
  margin: 0;
  max-width: 62ch;
  font-size: 14.5px;
  line-height: 1.6;
  color: #33415c;
}
.section-pricing .pricing-band__text {
  margin-top: 8px;
  color: #46536a;
}
.section-pricing .pricing-band__action {
  display: flex;
  align-items: center;
  flex: 0 0 auto;
}
@media (max-width: 991px) {
  .section-pricing .pricing-head {
    grid-template-columns: 1fr;
    gap: 20px;
    align-items: start;
  }
}
@media (max-width: 767px) {
  .section-pricing .pricing-factors .row > [class*="col-"] + [class*="col-"] .pricing-factor {
    border-left: 0;
    border-top: 1px solid rgba(24, 24, 27, 0.07);
  }
  .section-pricing .pricing-objection {
    padding: 24px;
  }
  .section-pricing .pricing-band {
    padding: 24px;
  }
  .section-pricing .pricing-band__action {
    width: 100%;
  }
  .section-pricing .pricing-band__action .tf-btn {
    width: 100%;
  }
}

/* Contact details: keep the tiles apart, and restore the column gutter the
   fieldset reset removed from the two half-width selects. */
.section-contact--page .contact-item {
  margin-bottom: 24px;
}
.section-contact--page .contact-item:last-of-type {
  margin-bottom: 0;
}
.form-contact .row > fieldset[class*="col-"] {
  padding-inline: calc(var(--bs-gutter-x) * 0.5);
}

/* The header is pinned to the viewport: it slides away while reading down and
   returns as soon as the page moves up. The inner pill keeps its own look. */
.tf-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 60;
  padding-top: max(20px, env(safe-area-inset-top));
  margin-bottom: 0;
  transition:
    transform 420ms var(--ms-ease),
    opacity 280ms var(--ms-ease);
  will-change: transform;
}
.tf-header.is-hidden {
  transform: translateY(calc(-100% - 24px));
  opacity: 0;
  pointer-events: none;
}
.tf-header.is-scrolled .header-inner {
  background: rgba(255, 255, 255, 0.9);
  box-shadow: 0 14px 34px -20px rgba(9, 9, 11, 0.42);
}
/* Anchor targets and focus scrolling must clear the fixed pill. */
html {
  scroll-padding-top: 130px;
}
[id] {
  scroll-margin-top: 130px;
}
@media (prefers-reduced-motion: reduce) {
  .tf-header {
    transition: none;
  }
}
/* The template ships .mt-32 on contact tiles but never defined it, so on the
   landings and the projects page the tile sat glued to the paragraph above. */
.contact-item.mt-32 {
  margin-top: 32px;
}

/* Home review box: the "100+" counter must never break, and on small phones it
   steps down so the number keeps sitting beside the rating instead of under it. */
.section-about-us .review-box .counter {
  white-space: nowrap;
}
@media (max-width: 575px) {
  .section-about-us .review-box .counter {
    font-size: 52px;
    line-height: 52px;
    margin-bottom: -8px;
  }
}

/* The marquee shares the row with the label: let it take the rest of the width
   instead of overflowing it. */
.partner-wrap .stack-marquee {
  flex: 1 1 auto;
  min-width: 0;
}

/* Contact tiles: the icon is a fixed square. Without `flex: none` a long text
   line squeezed it, so the four tiles ended up different sizes. */
.section-contact .contact-item .icon {
  flex: 0 0 auto;
  width: 64px;
  height: 64px;
  min-width: 64px;
  aspect-ratio: 1 / 1;
}
@media (max-width: 575px) {
  .section-contact .contact-item .icon {
    width: 56px;
    height: 56px;
    min-width: 56px;
    font-size: 24px;
  }
}
.partner-wrap .stack-marquee {
  width: 100%;
  max-width: 100%;
}

/* Studio page: direct answers instead of a second portrait-and-bio block.
   Different rhythm from the home team card on purpose: no photo, hairline rows,
   the questions a prospect actually sends in the first email. */
.studio-questions {
  max-width: 1120px;
  margin: 0 auto;
}
.studio-questions__head {
  max-width: 720px;
  margin-bottom: 44px;
}
.studio-questions__title {
  margin: 0 0 16px;
  font-size: clamp(30px, 4vw, 54px);
  line-height: 1.06;
  letter-spacing: -0.03em;
  color: #fff;
  text-wrap: balance;
}
.studio-questions__lead {
  margin: 0;
  max-width: 62ch;
  font-size: 16px;
  line-height: 1.65;
  color: rgba(255, 255, 255, 0.7);
}
.studio-questions__grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  column-gap: clamp(28px, 5vw, 64px);
}
.studio-question {
  padding: 26px 0;
  border-top: 1px solid rgba(255, 255, 255, 0.14);
}
.studio-question__index {
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.16em;
  color: var(--brand);
}
.studio-question__q {
  margin: 10px 0 10px;
  font-size: 21px;
  line-height: 1.3;
  color: #fff;
}
.studio-question__a {
  margin: 0;
  font-size: 15.5px;
  line-height: 1.65;
  color: rgba(255, 255, 255, 0.72);
}
.studio-community {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 14px 28px;
  margin-top: 36px;
  margin-bottom: 24px;
  padding: 22px 24px;
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: var(--ms-radius-md);
}
.studio-community__text {
  margin: 0;
  max-width: 62ch;
  font-size: 14.5px;
  line-height: 1.6;
  color: rgba(255, 255, 255, 0.72);
}
.studio-community__links {
  display: flex;
  gap: 18px;
}
.studio-community__links a {
  color: #fff;
  font-weight: 600;
  text-decoration: underline;
  text-underline-offset: 3px;
}
.studio-questions__facts {
  margin: 28px 0 24px;
}
.studio-questions__social {
  margin-top: 0;
}
@media (max-width: 767px) {
  .studio-questions__grid {
    grid-template-columns: 1fr;
  }
}

/* Projects page: the source link on open-source cards, and one closing card for
   the whole GitHub profile. */
.project-repo {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-top: 18px;
  font-size: 14px;
  font-weight: 600;
  color: var(--ms-ink);
  text-decoration: none;
}
.project-repo span {
  text-decoration: underline;
  text-underline-offset: 3px;
}
.project-repo .icon {
  font-size: 16px;
}
.project-repo:hover {
  color: var(--ms-accent);
}
.github-band {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  align-items: center;
  gap: 24px 28px;
  margin-top: 48px;
  padding: 32px 36px;
  border-radius: var(--ms-radius-md);
  background: var(--ms-ink);
}
.github-band__mark {
  display: grid;
  place-items: center;
  width: 56px;
  height: 56px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.08);
  color: #fff;
  font-size: 26px;
}
.github-band__title {
  margin: 0 0 8px;
  font-size: 22px;
  line-height: 1.25;
  color: #fff;
}
.github-band__body {
  margin: 0;
  max-width: 62ch;
  font-size: 14.5px;
  line-height: 1.6;
  color: rgba(255, 255, 255, 0.72);
}
.github-band__action {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 12px;
}
.github-band__count {
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.55);
}
.github-band .tf-btn {
  background: var(--ms-accent);
  color: #fff;
}
.github-band .tf-btn:hover {
  background: var(--ms-accent-strong);
}
@media (max-width: 991px) {
  .github-band {
    grid-template-columns: 1fr;
  }
}
@media (max-width: 767px) {
  .github-band {
    padding: 24px;
  }
}

/* Cookie banner: accept and reject share the same geometry, the fill alone
   separates them. The preference list carries the granular choice. */
.ms-cookie__btn--solid:hover {
  background-image: linear-gradient(180deg, #ffffff 0%, #f2f2f7 100%);
  box-shadow:
    inset 0 1px 0 #ffffff,
    inset 0 -2px 0 rgba(0, 0, 0, 0.12),
    0 2px 4px rgba(0, 0, 0, 0.3),
    0 16px 28px -14px rgba(0, 0, 0, 0.7);
}
.ms-cookie__withdraw {
  margin: 0 0 12px !important;
  font-size: 12.5px !important;
  color: rgba(255, 255, 255, 0.6) !important;
}
.ms-cookie__link {
  margin-left: 0;
}
.footer-cookie-link {
  padding: 0;
  border: 0;
  background: none;
  color: inherit;
  font: inherit;
  cursor: pointer;
  text-align: left;
}

/* Studio page intro: a different composition from the home about block.
   No globe, no review card: a statement, a fact strip and one clear action. */
.studio-intro__head {
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) minmax(0, 0.85fr);
  align-items: end;
  gap: 24px 72px;
  margin-bottom: 48px;
}
.studio-intro .heading-title {
  margin: 12px 0 0;
  font-size: clamp(38px, 6vw, 84px);
  line-height: 0.98;
  letter-spacing: -0.035em;
}
.studio-intro__lead {
  margin: 0;
  max-width: 52ch;
  font-size: 17px;
  line-height: 1.7;
  color: var(--ms-body-text);
}
.studio-intro__stats {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 16px;
  margin-bottom: 36px;
}
.studio-intro__stat {
  padding: 24px 22px;
  border: 1px solid var(--ms-line);
  border-radius: var(--ms-radius-md);
  background: var(--ms-surface);
}
.studio-intro__value {
  font-size: clamp(30px, 3vw, 46px);
  font-weight: 600;
  letter-spacing: -0.03em;
  line-height: 1;
  color: var(--ms-ink);
}
.studio-intro__label {
  margin-top: 10px;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--ms-muted);
}
.studio-intro__foot {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 20px 32px;
}
.studio-intro__note {
  margin: 0;
  max-width: 62ch;
  font-size: 14.5px;
  line-height: 1.6;
  color: var(--ms-muted);
}
@media (max-width: 991px) {
  .studio-intro__head {
    grid-template-columns: 1fr;
    align-items: start;
  }
  .studio-intro__stats {
    grid-template-columns: 1fr 1fr;
  }
}

/* Footer as a sitemap: brand and contact first, then three short link columns,
   then one calm bottom bar. Replaces the old centred social block. */
footer .footer-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.5fr) repeat(3, minmax(0, 0.8fr));
  gap: 40px 48px;
  padding: 0 0 52px;
}
.footer-brand {
  max-width: 380px;
}
footer .footer-logo {
  display: inline-flex;
  margin-bottom: 18px;
}
.footer-brand__tagline {
  margin: 0;
  font-size: 14.5px;
  line-height: 1.6;
  color: var(--secondary);
}
.footer-brand__mail {
  display: inline-block;
  margin-top: 14px;
  font-weight: 600;
  color: var(--primary);
  text-decoration: underline;
  text-underline-offset: 3px;
}
.footer-brand__mail:hover {
  color: var(--brand);
}
.footer-social {
  display: flex;
  gap: 10px;
  margin-top: 22px;
}
.footer-social__item {
  display: inline-grid;
  place-items: center;
  width: 44px;
  height: 44px;
  border: 1px solid var(--ms-line);
  border-radius: 999px;
  background: var(--ms-surface);
  color: var(--primary);
}
.footer-social__item:hover {
  border-color: var(--ms-accent);
  color: var(--ms-accent);
}
.footer-col__title {
  margin: 0 0 16px;
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--ms-muted);
}
.footer-col ul {
  display: grid;
  gap: 10px;
  margin: 0;
  padding: 0;
  list-style: none;
}
.footer-col a,
.footer-col__button {
  padding: 0;
  border: 0;
  background: none;
  font: inherit;
  font-size: 15px;
  color: var(--primary);
  text-decoration: none;
  cursor: pointer;
  text-align: left;
}
.footer-col a:hover,
.footer-col__button:hover {
  color: var(--brand);
}
footer .footer-bottom {
  flex-wrap: wrap;
  gap: 16px 24px;
  align-items: center;
  justify-content: space-between;
  padding: 24px 0 8px;
}
footer .footer-bottom > * {
  width: auto;
}
footer .footer-bottom .coppy-rights {
  margin: 0;
  font-size: 13px;
  text-align: left;
}
@media (max-width: 991px) {
  footer .footer-grid {
    grid-template-columns: 1fr 1fr;
  }
  .footer-brand {
    grid-column: 1 / -1;
    max-width: none;
  }
  footer .footer-bottom {
    flex-direction: column;
    align-items: flex-start;
    text-align: left;
  }
}
@media (max-width: 575px) {
  footer .footer-grid {
    grid-template-columns: 1fr 1fr;
    gap: 28px 24px;
  }
  .footer-col__title {
    margin-bottom: 12px;
  }
  .footer-col ul {
    gap: 8px;
  }
  .footer-col a,
  .footer-col__button {
    font-size: 14.5px;
  }
}
/* The oversized wordmark now sits behind the bottom bar, not behind the link
   columns, so it stays a watermark instead of competing with the sitemap. */
footer .footer-image {
  top: auto;
  bottom: -28px;
}
footer .footer-image .footer-wordmark {
  opacity: 0.03;
}
.project-year-note {
  margin-top: 4px;
  font-size: 12px;
  color: var(--ms-muted);
}

/* Mobile menu: the closing action is the studio's own inbox, so the visitor
   writes from their own mail app instead of filling a form. */
.offcanvas-menu .menu-mail {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  text-transform: none;
  letter-spacing: 0;
}
.offcanvas-menu .menu-mail .icon {
  font-size: 15px;
}

/* Language toggle: both flags stay at full contrast, and the current language
   is marked by the pill, not by dimming the other one. */
.language-toggle__option:not([aria-current="page"]) {
  transition: background-color 180ms var(--ms-ease);
}
.language-toggle__option:not([aria-current="page"]):hover,
.language-toggle__option:not([aria-current="page"]):focus-visible {
  background: rgba(9, 9, 11, 0.06);
}
.language-toggle[data-surface="dark"] .language-toggle__option:not([aria-current="page"]):hover,
.language-toggle[data-surface="dark"] .language-toggle__option:not([aria-current="page"]):focus-visible {
  background: rgba(255, 255, 255, 0.14);
}

/* ---------------------------------------------------------------------------
   Soft-3D surface layer

   Depth is directional: light sits above, so every raised plate gets a bright
   1px top edge, a cooler lower edge and a tinted contact shadow. Motion is
   opt-in through .ms-depth-on (fine pointer, no reduced-motion), set by
   src/scripts/depth.js. Without it the page keeps exactly the same geometry.
   --------------------------------------------------------------------------- */

:root {
  --ms-ink: #101014;
  --ms-body-text: #4b4b55;
  --ms-muted: #65656f;
  /* Body copy sat at 4.1:1 on the light canvas; one step darker clears AA. */
  --secondary: #5a5a63;
  --ms-edge-hi: rgba(255, 255, 255, 0.95);
  --ms-edge-lo: rgba(24, 24, 27, 0.1);
  --ms-blue-glow: rgba(42, 107, 255, 0.24);
  --ms-plate-shadow:
    0 1px 2px rgba(24, 24, 27, 0.04),
    0 6px 14px -10px rgba(24, 24, 27, 0.15),
    0 20px 40px -30px rgba(24, 24, 27, 0.18),
    inset 0 1px 0 var(--ms-edge-hi),
    inset 0 -1px 0 rgba(24, 24, 27, 0.04);
  --ms-plate-shadow-hover:
    0 2px 4px rgba(24, 24, 27, 0.05),
    0 12px 24px -14px rgba(24, 24, 27, 0.2),
    0 32px 60px -40px rgba(24, 24, 27, 0.22),
    inset 0 1px 0 var(--ms-edge-hi),
    inset 0 -1px 0 rgba(24, 24, 27, 0.05);
}

/* Display headings read as ink, not as a decorative gradient. The sheen now
   comes from the surface they sit on, not from the type. */
.text-gradient-3 {
  background-image: none;
  -webkit-text-fill-color: currentColor;
  color: var(--ms-ink);
}

/* One raised plate recipe for every light surface. */
.features-item,
.benefits-box,
.process-card,
.accordion-asked-item,
.accordion-faq_item,
.section-about-us .review-box,
.section-about-us .box-quotes,
.featured-works-item,
.form-contact,
.greview,
.features-center {
  position: relative;
  border: 1px solid transparent;
  background:
    linear-gradient(180deg, #ffffff 0%, #ffffff 58%, #fbfbfc 100%) padding-box,
    linear-gradient(180deg, var(--ms-edge-hi) 0%, rgba(255, 255, 255, 0.45) 46%, var(--ms-edge-lo) 100%) border-box;
  box-shadow: var(--ms-plate-shadow);
  transition:
    translate 220ms var(--ms-ease),
    box-shadow 220ms var(--ms-ease);
}

@media (hover: hover) and (pointer: fine) {
  .featured-works-item:hover,
  .section-about-us .box-quotes:hover,
  .section-features a.features-item:hover,
  .accordion-asked-item:hover,
  .accordion-faq_item:hover {
    box-shadow: var(--ms-plate-shadow-hover);
    translate: 0 -2px;
  }
}

/* Project cards: the wrapper is the tilt surface, so GSAP's inline transform on
   the card itself never fights the rotation. The cover keeps a little physical
   separation from its frame. */
.work-tilt {
  perspective: 1200px;
}
html.ms-depth-on .work-tilt {
  transform: rotateX(var(--tilt-x, 0deg)) rotateY(var(--tilt-y, 0deg));
  transform-style: preserve-3d;
  transition: transform 380ms var(--ms-ease);
}
html.ms-depth-on .work-tilt.is-tilting {
  transition: transform 130ms linear;
}
html.ms-depth-on .work-tilt .image {
  transform: translateZ(10px);
}
html.ms-depth-on .work-tilt .content {
  transform: translateZ(4px);
}
.work-tilt .image::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 1;
  pointer-events: none;
  border-radius: inherit;
  background: radial-gradient(
    320px circle at var(--sheen-x, 50%) var(--sheen-y, 50%),
    rgba(255, 255, 255, 0.3),
    transparent 62%
  );
  opacity: 0;
  transition: opacity 240ms var(--ms-ease);
}
html.ms-depth-on .work-tilt.is-tilting .image::before {
  opacity: 1;
}

/* Hero: the media keeps its original seamless silhouette; only the video
   inside moves with the pointer and the first scroll. */
html.ms-depth-on .section-hero--video .hero-video {
  translate: calc(var(--px, 0) * 14px) calc(var(--py, 0) * 14px);
  scale: calc(1.02 + var(--sd, 0) * 0.000045);
  transition:
    translate 600ms var(--ms-ease),
    scale 240ms linear;
  will-change: translate, scale;
}
/* A blue light sitting behind the promise, only where the layout has room. */
.section-hero--video .content-wrap .title {
  position: relative;
  isolation: isolate;
}
.section-hero--video .content-wrap .title::before {
  content: "";
  position: absolute;
  left: 50%;
  top: 58%;
  z-index: -1;
  width: min(640px, 84%);
  height: 180px;
  transform: translate(-50%, -50%);
  border-radius: 50%;
  pointer-events: none;
  background: radial-gradient(closest-side, rgba(42, 107, 255, 0.16), rgba(42, 107, 255, 0) 72%);
  filter: blur(10px);
}

/* Hero title: ink on top, brand blue below, both with a specular top edge. */
.section-hero .content-wrap .title .title1 .text-gradient-1 {
  background-image: linear-gradient(180deg, #101014 0%, #1c1c22 56%, #33333b 100%);
}
.section-hero .content-wrap .title .title2 .text-gradient-1 {
  filter: drop-shadow(0 1px 0 rgba(255, 255, 255, 0.55));
}

/* Header pill: glass, but with a real edge. */
.tf-header .header-inner {
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.95),
    0 2px 6px rgba(9, 9, 11, 0.06),
    0 18px 40px -24px rgba(9, 9, 11, 0.42);
}

/* Buttons: pressed metal, not a black pill with a halo. */
.tf-btn {
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.26),
    inset 0 -2px 0 rgba(0, 0, 0, 0.45),
    0 1px 2px rgba(0, 0, 0, 0.18),
    0 10px 18px -10px rgba(0, 0, 0, 0.45),
    0 24px 44px -26px var(--ms-blue-glow);
  transition:
    translate 180ms var(--ms-ease),
    box-shadow 180ms var(--ms-ease);
}
.tf-btn:active {
  translate: 0 1px;
  box-shadow:
    inset 0 2px 6px rgba(0, 0, 0, 0.5),
    inset 0 -1px 0 rgba(255, 255, 255, 0.14),
    0 2px 4px rgba(0, 0, 0, 0.18);
}
.tf-btn-2 {
  border: 1px solid rgba(24, 24, 27, 0.08);
  background: linear-gradient(180deg, #ffffff 0%, #f7f7f9 55%, #f1f1f4 100%);
  box-shadow:
    inset 0 1px 0 #ffffff,
    0 1px 2px rgba(24, 24, 27, 0.06),
    0 12px 24px -16px rgba(24, 24, 27, 0.3);
}

/* Services: closed titles read as ink, the open plate gets a blue rim. */
.section-services .accordion-action.collapsed .accordion-title {
  color: var(--ms-ink);
}
.section-services .accordion-action.collapsed .accordion-title .num {
  color: var(--ms-muted);
}
.section-services .accordion-action:not(.collapsed)::before {
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.16),
    inset 0 -12px 28px rgba(0, 0, 0, 0.42),
    0 0 0 1px rgba(42, 107, 255, 0.24),
    0 28px 52px -30px rgba(9, 9, 11, 0.72);
}
@media (hover: hover) and (pointer: fine) {
  .section-services .accordion-action.collapsed .accordion-title {
    transition:
      color 220ms var(--ms-ease),
      translate 220ms var(--ms-ease);
  }
  .section-services .accordion-action.collapsed:hover .accordion-title {
    color: var(--ms-accent-strong);
    translate: 5px 0;
  }
}

/* ---------------------------------------------------------------------------
   Services page: bento grid of the four work areas. The home page keeps its
   accordion, so the two pages do not present the same block twice. The cells
   reuse the service artwork at its native 2:1 ratio, arranged on an uneven
   3/3 + 2/4 grid with the last card laid out horizontally.
   --------------------------------------------------------------------------- */
.services-bento__head {
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) minmax(0, 0.85fr);
  gap: clamp(24px, 4vw, 72px);
  align-items: end;
  margin-bottom: clamp(36px, 4vw, 56px);
}
.services-bento__lead {
  max-width: 46ch;
  margin: 0 0 6px;
  color: var(--ms-body-text);
  font-size: 17px;
  line-height: 1.6;
}
.services-bento {
  display: grid;
  grid-template-columns: repeat(6, minmax(0, 1fr));
  gap: 16px;
}
.services-bento__card {
  position: relative;
  display: flex;
  flex-direction: column;
  min-width: 0;
  gap: 20px;
  overflow: hidden;
  padding: clamp(22px, 2.2vw, 30px);
  border: 1px solid var(--ms-line);
  border-radius: 24px;
  background:
    radial-gradient(120% 90% at 84% -14%, rgba(42, 107, 255, 0.1) 0%, rgba(42, 107, 255, 0) 62%),
    linear-gradient(180deg, #ffffff 0%, #fbfbfc 100%);
  box-shadow:
    inset 0 1px 0 #ffffff,
    0 18px 40px -34px rgba(9, 9, 11, 0.5);
}
.services-bento__card:nth-child(1),
.services-bento__card:nth-child(2) {
  grid-column: span 3;
}
.services-bento__card:nth-child(3) {
  grid-column: span 2;
}
.services-bento__card:nth-child(4) {
  grid-column: span 4;
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr);
  align-items: center;
  column-gap: clamp(20px, 3vw, 44px);
}
/* Visual first on the three stacked cards; the wide card keeps copy left. */
.services-bento__card:not(:nth-child(4)) .services-bento__visual {
  order: -1;
}
.services-bento__copy {
  min-width: 0;
}
.services-bento__index {
  margin: 0 0 6px;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.14em;
  color: var(--ms-accent-ink);
}
.services-bento__title {
  margin: 0 0 10px;
  font-size: clamp(22px, 1.9vw, 30px);
  font-weight: 600;
  line-height: 1.15;
  letter-spacing: -0.025em;
  color: var(--ms-ink);
}
.services-bento__body {
  max-width: 52ch;
  margin: 0 0 16px;
  color: var(--ms-body-text);
  font-size: 15.5px;
  line-height: 1.6;
}
.services-bento__list {
  display: grid;
  gap: 8px;
  margin: 0 0 18px;
  padding: 0;
  list-style: none;
}
.services-bento__list li {
  display: grid;
  grid-template-columns: 18px minmax(0, 1fr);
  gap: 10px;
  align-items: start;
  color: var(--ms-body-text);
  font-size: 14px;
  line-height: 1.5;
}
.services-bento__list .icon {
  margin-top: 3px;
  color: var(--ms-accent-ink);
  font-size: 13px;
}
.services-bento__tags {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: auto 0 0;
  padding: 0;
  list-style: none;
}
.services-bento__tags li {
  padding: 5px 11px;
  border: 1px solid rgba(42, 107, 255, 0.18);
  border-radius: 999px;
  background: var(--ms-accent-soft);
  color: var(--ms-accent-ink);
  font-size: 12.5px;
  font-weight: 600;
  line-height: 1.2;
}
.services-bento__visual {
  position: relative;
  overflow: hidden;
  aspect-ratio: 2 / 1;
  border: 1px solid rgba(24, 24, 27, 0.08);
  border-radius: 18px;
  background: #eef1f7;
}
.services-bento__visual img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

@media (max-width: 1199px) {
  .services-bento {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .services-bento__card:nth-child(1),
  .services-bento__card:nth-child(4) {
    grid-column: span 2;
  }
  .services-bento__card:nth-child(2),
  .services-bento__card:nth-child(3) {
    grid-column: span 1;
  }
}
@media (max-width: 767px) {
  .services-bento__head {
    grid-template-columns: minmax(0, 1fr);
    align-items: start;
  }
  .services-bento {
    grid-template-columns: minmax(0, 1fr);
    gap: 14px;
  }
  .services-bento__card,
  .services-bento__card:nth-child(n) {
    grid-column: auto;
  }
  .services-bento__card:nth-child(4) {
    grid-template-columns: minmax(0, 1fr);
  }
  .services-bento__card:nth-child(4) .services-bento__visual {
    order: -1;
  }
}
/* FAQ toggle: moulded key, and the vertical bar collapses deterministically. */
.accordion-asked .accordion-button span.right-icon {
  background: linear-gradient(180deg, #303036 0%, #1a1a1f 100%);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.24),
    inset 0 -2px 0 rgba(0, 0, 0, 0.5),
    0 2px 4px rgba(9, 9, 11, 0.18),
    0 8px 16px -10px rgba(9, 9, 11, 0.5);
}
.accordion-asked .accordion-button:not(.collapsed) span.right-icon {
  background: linear-gradient(180deg, #3d78ff 0%, #2a6bff 45%, #1a4fd6 100%);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.4),
    inset 0 -2px 0 rgba(8, 20, 60, 0.35),
    0 2px 4px rgba(26, 79, 214, 0.18),
    0 10px 20px -12px rgba(26, 79, 214, 0.6);
}
.accordion-asked .accordion-button span::after {
  transition:
    opacity 180ms var(--ms-ease),
    transform 180ms var(--ms-ease);
}
.accordion-asked .accordion-button:not(.collapsed) span::after {
  opacity: 0;
  transform: translate(-50%, -50%) scaleY(0.2);
}

/* Process cards: one ceramic blue tile, no blurry halo. */
.process-card .icon {
  background: linear-gradient(180deg, #3d78ff 0%, #2a6bff 46%, #1a4fd6 100%);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.45),
    inset 0 -3px 0 rgba(8, 20, 60, 0.35),
    0 3px 6px rgba(9, 9, 11, 0.08),
    0 18px 30px -20px rgba(26, 79, 214, 0.55);
}
.process-card .bot .number .text-neutral-400 {
  color: var(--ms-ink) !important;
}
.process-card .bot .number .text-neutral-200 {
  color: #a3a3ad !important;
}

/* Features hub: light plate with a soft blue halo behind the icon. */
.features-center {
  width: 236px;
  height: 186px;
  border-radius: 44px;
  overflow: hidden;
  isolation: isolate;
  border: 1px solid transparent;
  background:
    radial-gradient(58% 58% at 50% 50%, rgba(42, 107, 255, 0.22) 0%, rgba(42, 107, 255, 0) 72%),
    linear-gradient(180deg, #ffffff 0%, #f7f8fb 100%) padding-box,
    linear-gradient(180deg, rgba(255, 255, 255, 0.95), rgba(24, 24, 27, 0.08)) border-box;
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.95),
    inset 0 -1px 0 rgba(24, 24, 27, 0.04),
    0 1px 2px rgba(24, 24, 27, 0.04),
    0 10px 24px -16px rgba(24, 24, 27, 0.2),
    0 30px 60px -40px rgba(24, 24, 27, 0.22);
}
.features-center::before,
.features-center::after {
  content: "";
  position: absolute;
  border-radius: 50%;
  pointer-events: none;
}
.features-center::before {
  inset: -34% 18%;
  border: 1px solid rgba(42, 107, 255, 0.14);
}
.features-center::after {
  inset: -18% 28%;
  border: 1px solid rgba(42, 107, 255, 0.1);
}
.features-center img {
  position: relative;
  z-index: 1;
  width: 78px;
  height: auto;
  filter: drop-shadow(0 8px 14px rgba(26, 79, 214, 0.22));
}
html.ms-depth-on .features-center {
  transform: rotateX(var(--tilt-x, 0deg)) rotateY(var(--tilt-y, 0deg));
  transition: transform 380ms var(--ms-ease);
}
html.ms-depth-on .features-center.is-tilting {
  transition: transform 130ms linear;
}
.features-center .features-core__sheen {
  position: absolute;
  inset: 0;
  z-index: 2;
  pointer-events: none;
  background: radial-gradient(
    220px circle at var(--sheen-x, 50%) var(--sheen-y, 30%),
    rgba(255, 255, 255, 0.35),
    transparent 60%
  );
  opacity: 0;
  transition: opacity 240ms var(--ms-ease);
}
html.ms-depth-on .features-center.is-tilting .features-core__sheen {
  opacity: 1;
}

/* Stack logos: each tile drifts by its own depth. Individual translate keeps
   the template's rotate/scale intact. */
html.ms-depth-on .section-tools {
  --px: 0;
  --py: 0;
}
html.ms-depth-on .section-tools .tool-logo {
  translate: calc(var(--px, 0) * var(--depth, 10px)) calc(var(--py, 0) * var(--depth, 10px));
  transition: translate 500ms var(--ms-ease);
  will-change: translate;
}
.section-tools .img-1 { --depth: 16px; }
.section-tools .img-2 { --depth: 9px; }
.section-tools .img-3 { --depth: 13px; }
.section-tools .img-4 { --depth: 12px; }
.section-tools .img-5 { --depth: 18px; }
.section-tools .img-6 { --depth: 7px; }

/* The vertical rails carry the travelling light: keep them fully opaque so the
   glow stays visible along the trace and reaches the cards. */
.side-line-main .link-break-line {
  width: 66px;
  border: 1px solid #d4d4d8;
  border-left: 0;
  border-radius: 0 20px 20px 0;
}
.side-line-main .link-break-line::after {
  display: block;
  background: var(--body);
}
.side-line-main .link-break-line .item {
  display: block;
}
.side-line-main .link-break-center {
  border: 1.5px solid #d4d4d8;
  height: auto;
  background: none;
}

/* Dark pill labels: the brand blue was 4.2:1 on the near-black band. */
.heading-section .heading-sub.style-1 {
  color: #9db9ff;
  background:
    radial-gradient(62.56% 62.56% at 28.14% -10.42%, rgba(255, 255, 255, 0.12) 0%, rgba(255, 255, 255, 0) 100%),
    linear-gradient(180deg, #24242a 0%, #15151a 100%);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.18),
    inset 0 -2px 0 rgba(0, 0, 0, 0.5),
    0 6px 14px -8px rgba(0, 0, 0, 0.7);
}
.heading-section .heading-sub.style-1::before {
  background-color: #7ea0ff;
}

/* Floating stack tiles: same lit edge as the plates. */
.section-tools > .tool-logo {
  border: 1px solid transparent;
  background:
    linear-gradient(180deg, #ffffff 0%, #f7f7f9 100%) padding-box,
    linear-gradient(180deg, rgba(255, 255, 255, 0.95), rgba(24, 24, 27, 0.1)) border-box;
  box-shadow:
    inset 0 1px 0 #ffffff,
    inset 0 -1px 0 rgba(24, 24, 27, 0.05),
    0 1px 2px rgba(24, 24, 27, 0.05),
    0 14px 26px -16px rgba(24, 24, 27, 0.28);
}

/* Dark surfaces: rim light on the team card and the testimonial frame. */
.team-item {
  border: 1px solid rgba(255, 255, 255, 0.1);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.14),
    inset 0 -2px 0 rgba(0, 0, 0, 0.55),
    0 24px 48px -24px rgba(0, 0, 0, 0.65),
    0 60px 120px -60px rgba(0, 0, 0, 0.6);
}
.testimonial-image {
  border: 1px solid rgba(255, 255, 255, 0.12);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.16),
    inset 0 -10px 24px rgba(0, 0, 0, 0.55),
    0 30px 60px -30px rgba(0, 0, 0, 0.7);
}

/* Review badge in the about section: real score, real tile. */
.section-about-us .review-box__rating {
  display: flex;
  align-items: center;
  gap: 16px;
}
.section-about-us .review-box__score {
  font-size: 44px;
  font-weight: 700;
  line-height: 1;
  letter-spacing: -0.03em;
  color: var(--ms-ink);
}
.section-about-us .review-box__stars {
  display: flex;
  gap: 3px;
  color: #fbbc05;
  font-size: 15px;
}
.section-about-us .review-box__caption {
  display: block;
  margin-top: 6px;
  font-size: 13px;
  color: var(--ms-muted);
}

/* Contact: carved wells for every field, so a field is a field again. */
.section-contact .contact-lead {
  max-width: 44ch;
  margin: -16px 0 40px;
  color: var(--ms-body-text);
}
.form-contact input[type="text"],
.form-contact input[type="email"],
.form-contact input[type="tel"],
.form-contact input[type="url"],
.form-contact textarea,
.form-contact select {
  padding: 14px 18px;
  border: 1px solid #8a8a92;
  border-radius: 14px;
  background: linear-gradient(180deg, #f7f7f9 0%, #ffffff 72%);
  box-shadow:
    inset 0 2px 4px rgba(24, 24, 27, 0.05),
    inset 0 -1px 0 rgba(255, 255, 255, 0.9);
  color: var(--ms-ink);
  transition:
    border-color 180ms var(--ms-ease),
    box-shadow 180ms var(--ms-ease),
    background 180ms var(--ms-ease);
}
.form-contact input::placeholder,
.form-contact textarea::placeholder {
  color: #63636d;
}
.form-contact input:focus,
.form-contact textarea:focus,
.form-contact select:focus {
  border-color: var(--ms-accent);
  background: #ffffff;
  box-shadow:
    0 0 0 4px rgba(42, 107, 255, 0.12),
    inset 0 2px 4px rgba(24, 24, 27, 0.04);
}
.form-contact textarea {
  height: auto;
  min-height: 160px;
  border-radius: 16px;
  padding: 16px 18px;
}
/* Native select after removing the custom widget. The template reset unsets
   `box-sizing`, so width:100% plus the field padding overflowed into the next
   column and the two selects overlapped. It also paints options on black and
   drops the native arrow, so both are restored here. */
.form-contact select {
  box-sizing: border-box;
  display: block;
  width: 100%;
  padding-right: 44px;
  font-size: 16px;
  line-height: 24px;
  letter-spacing: normal;
  appearance: none;
  -webkit-appearance: none;
  color-scheme: light;
  background:
    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='14' height='8' viewBox='0 0 14 8'%3E%3Cpath d='M1 1l6 6 6-6' fill='none' stroke='%235a5a63' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E")
      no-repeat right 18px center / 14px 8px,
    linear-gradient(180deg, #f7f7f9 0%, #ffffff 72%);
}
.form-contact select:focus {
  background:
    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='14' height='8' viewBox='0 0 14 8'%3E%3Cpath d='M1 1l6 6 6-6' fill='none' stroke='%235a5a63' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E")
      no-repeat right 18px center / 14px 8px,
    #ffffff;
}
.form-contact select option {
  background-color: #ffffff;
  color: var(--ms-ink);
}
.form-contact label {
  color: var(--ms-ink);
}
.form-contact .nice-select {
  border-radius: 14px;
  background: linear-gradient(180deg, #f7f7f9 0%, #ffffff 72%);
  box-shadow:
    inset 0 2px 4px rgba(24, 24, 27, 0.05),
    inset 0 -1px 0 rgba(255, 255, 255, 0.9);
}
.form-contact .nice-select.open,
.form-contact .nice-select:focus {
  background: #ffffff;
  box-shadow:
    0 0 0 4px rgba(42, 107, 255, 0.12),
    inset 0 2px 4px rgba(24, 24, 27, 0.04);
}

/* Footer: the wordmark gets an emboss instead of a flat 4% fill. */
footer .footer-image .footer-wordmark {
  text-shadow:
    0 1px 0 rgba(255, 255, 255, 0.9),
    0 -1px 0 rgba(24, 24, 27, 0.05);
}
footer .footer-col__title {
  font-size: 12px;
  color: var(--ms-muted);
}

/* Phones: no tilt, tighter plates, proof chips in a clean two-up grid. */
@media (max-width: 575px) {
  .hero-proof {
    display: grid;
    grid-template-columns: 1fr;
    gap: 8px;
  }
  .hero-proof__item {
    justify-content: center;
    text-align: center;
  }
  .features-center {
    width: 208px;
    height: 164px;
    border-radius: 36px;
  }
  .form-contact {
    padding: 32px 22px;
    border-radius: 28px;
  }
}

/* Global loader: appears only when the first paint is slow, then fades out.
   No images beyond the header logo, no backdrop filter: it stays cheap on old
   devices and weak networks. */
.ms-loader {
  position: fixed;
  inset: 0;
  z-index: 4000;
  display: grid;
  place-items: center;
  background:
    radial-gradient(55% 45% at 50% 42%, #ffffff 0%, rgba(255, 255, 255, 0) 72%),
    var(--body);
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  /* Fading in fast, out faster: the overlay must never be the reason a page
     feels slow, so the exit is shorter than the entrance. */
  transition:
    opacity 160ms var(--ms-ease),
    visibility 0s linear 160ms;
}
html.ms-loading .ms-loader {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
  transition:
    opacity 120ms var(--ms-ease),
    visibility 0s linear 0s;
}
html.ms-loading,
html.ms-loading body {
  overflow: hidden;
}
.ms-loader__inner {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 20px;
}
.ms-loader__logo {
  width: 135px;
  height: auto;
  opacity: 0.92;
  filter: drop-shadow(0 12px 28px rgba(42, 107, 255, 0.14));
}
.ms-loader__track {
  position: relative;
  width: 148px;
  height: 3px;
  overflow: hidden;
  border-radius: 99px;
  background: rgba(24, 24, 27, 0.1);
}
.ms-loader__track::after {
  content: "";
  position: absolute;
  top: 0;
  bottom: 0;
  width: 46%;
  border-radius: inherit;
  background: linear-gradient(90deg, transparent, var(--ms-accent), transparent);
  animation: ms-loader-run 0.7s var(--ms-ease) infinite;
}
@keyframes ms-loader-run {
  from {
    transform: translateX(-120%);
  }
  to {
    transform: translateX(320%);
  }
}
.ms-loader__label {
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--ms-muted);
}
@media (prefers-reduced-motion: reduce) {
  .ms-loader__track::after {
    animation: none;
    width: 100%;
    background: rgba(42, 107, 255, 0.5);
  }
}

/* ---------------------------------------------------------------------------
   Breadcrumbs, blog archive, projects toolbar, studio sections, footer
   preferences and the explicit motion switch.
   --------------------------------------------------------------------------- */

.page-crumbs {
  margin: 0 auto 18px;
}
.page-crumbs__list {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  align-items: center;
  gap: 6px 10px;
  margin: 0;
  padding: 0;
  list-style: none;
  font-size: 12.5px;
  font-weight: 600;
  color: var(--ms-muted);
}
.page-crumbs__item {
  display: inline-flex;
  align-items: center;
  gap: 10px;
}
.page-crumbs__item + .page-crumbs__item::before {
  content: "/";
  color: rgba(24, 24, 27, 0.28);
}
.page-crumbs__item a {
  color: var(--primary);
  text-decoration: none;
}
.page-crumbs__item a:hover,
.page-crumbs__item a:focus-visible {
  color: var(--ms-accent-ink);
  text-decoration: underline;
  text-underline-offset: 3px;
}
.page-crumbs__item [aria-current="page"] {
  color: var(--ms-muted);
}

/* Blog: featured card above the archive. */
.blog-featured {
  margin-bottom: 40px;
}
.article-blog--featured {
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(0, 0.95fr);
}
.article-blog--featured .blog-image {
  aspect-ratio: auto;
  height: 100%;
  min-height: 320px;
}
.article-blog--featured .blog-content {
  align-self: center;
  padding: clamp(26px, 3vw, 44px);
}
.article-blog--featured .article-blog__title--featured {
  margin: 0;
  font-size: clamp(24px, 2.4vw, 34px);
  line-height: 1.18;
  letter-spacing: -0.025em;
}
.article-blog--featured .infor_name {
  font-size: inherit;
  line-height: inherit;
  -webkit-line-clamp: unset;
}
.article-blog__tag {
  display: inline-block;
  margin-right: 8px;
  padding: 3px 9px;
  border-radius: 999px;
  background: var(--ms-accent-soft);
  color: var(--ms-accent-ink);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}
@media (max-width: 991px) {
  .article-blog--featured {
    grid-template-columns: minmax(0, 1fr);
  }
  .article-blog--featured .blog-image {
    aspect-ratio: 16 / 10;
    min-height: 0;
  }
}

/* Blog: category filter and live count. */
.blog-toolbar {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 12px 20px;
  margin-bottom: 32px;
}
.blog-toolbar__label {
  margin: 0;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--ms-muted);
}
.blog-filters {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}
.blog-filters[hidden] {
  display: none;
}
.blog-filter {
  min-height: 44px;
  padding: 8px 16px;
  border: 1px solid var(--ms-line);
  border-radius: 999px;
  background: var(--ms-surface);
  color: var(--primary);
  font: inherit;
  font-size: 13.5px;
  font-weight: 600;
  cursor: pointer;
  transition:
    border-color 180ms var(--ms-ease),
    background 180ms var(--ms-ease),
    color 180ms var(--ms-ease);
}
.blog-filter:hover {
  border-color: var(--ms-accent);
  color: var(--ms-accent-ink);
}
.blog-filter[aria-pressed="true"] {
  border-color: var(--ms-accent);
  background: var(--ms-accent-soft);
  color: var(--ms-accent-ink);
}
.blog-toolbar__count {
  flex: none;
  margin: 0 0 0 auto;
  font-size: 13px;
  color: var(--ms-muted);
  white-space: nowrap;
}
@media (max-width: 575px) {
  .blog-toolbar__count {
    margin-left: 0;
  }
}

/* Blog: closing call to action. */
.blog-cta,
.article-cta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 20px 32px;
  margin-top: 48px;
  padding: clamp(24px, 3vw, 36px);
  border: 1px solid var(--ms-line);
  border-radius: var(--ms-radius-md);
  background:
    radial-gradient(120% 90% at 88% -20%, rgba(42, 107, 255, 0.1) 0%, rgba(42, 107, 255, 0) 60%),
    linear-gradient(180deg, #ffffff 0%, #fbfbfc 100%);
  box-shadow: var(--ms-plate-shadow);
}
.article-cta {
  margin-top: 40px;
}
.blog-cta__copy,
.article-cta__copy {
  max-width: 62ch;
}
.blog-cta__title,
.article-cta__title {
  margin: 0 0 8px;
  font-size: clamp(22px, 2.2vw, 30px);
  line-height: 1.2;
  letter-spacing: -0.02em;
  color: var(--ms-ink);
}
.blog-cta__body,
.article-cta__body {
  margin: 0;
  color: var(--ms-body-text);
}
.article-sidebar .policy-toc {
  margin-bottom: 28px;
}

/* Projects: stats, filter toolbar and closing block. */
.projects-stats {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
  margin-bottom: 36px;
}
.projects-stat {
  padding: 20px 22px;
  border: 1px solid var(--ms-line);
  border-radius: var(--ms-radius-md);
  background: var(--ms-surface);
  box-shadow: var(--shadow-card, var(--ms-shadow-card));
}
.projects-stat__value {
  display: block;
  font-size: clamp(24px, 2.2vw, 32px);
  font-weight: 700;
  line-height: 1.1;
  letter-spacing: -0.03em;
  color: var(--ms-ink);
}
.projects-stat__label {
  display: block;
  margin-top: 6px;
  font-size: 13px;
  color: var(--ms-muted);
}
.projects-toolbar {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 12px 20px;
  margin-bottom: 28px;
}
.projects-toolbar__label {
  margin: 0;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--ms-muted);
}
.projects-filters {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}
.projects-filters[hidden] {
  display: none;
}
.projects-filter {
  min-height: 44px;
  padding: 8px 16px;
  border: 1px solid var(--ms-line);
  border-radius: 999px;
  background: var(--ms-surface);
  color: var(--primary);
  font: inherit;
  font-size: 13.5px;
  font-weight: 600;
  cursor: pointer;
  transition:
    border-color 180ms var(--ms-ease),
    background 180ms var(--ms-ease),
    color 180ms var(--ms-ease);
}
.projects-filter:hover {
  border-color: var(--ms-accent);
  color: var(--ms-accent-ink);
}
.projects-filter[aria-pressed="true"] {
  border-color: var(--ms-accent);
  background: var(--ms-accent-soft);
  color: var(--ms-accent-ink);
}
.projects-toolbar__count {
  flex: none;
  margin: 0 0 0 auto;
  font-size: 13px;
  color: var(--ms-muted);
  white-space: nowrap;
}
.projects-next {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
  margin: 48px 0 0;
  padding: clamp(28px, 4vw, 44px);
  border-radius: var(--ms-radius-md);
  background: var(--ms-accent-soft);
  text-align: center;
}
.projects-next__tag {
  margin: 0;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--ms-accent-ink);
}
.projects-next__title {
  margin: 0;
  max-width: 32ch;
  font-size: clamp(22px, 2.4vw, 32px);
  line-height: 1.2;
  letter-spacing: -0.02em;
  color: var(--ms-ink);
}
@media (max-width: 767px) {
  .projects-stats {
    grid-template-columns: minmax(0, 1fr);
  }
  .projects-toolbar__count {
    margin-left: 0;
  }
}

/* Studio: open source list, where we work, client voices. */
.studio-open__lead {
  max-width: 62ch;
  margin: 0 auto 36px;
  color: var(--ms-body-text);
  text-align: center;
}
.studio-open__card {
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.studio-open__head {
  display: flex;
  align-items: center;
  gap: 8px;
  color: var(--ms-accent-ink);
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}
.studio-open__head .icon {
  font-size: 16px;
}
.studio-open__card p {
  margin: 0;
  font-size: 15px;
  line-height: 1.55;
}
.studio-open__tags {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin: 4px 0 0;
  padding: 0;
  list-style: none;
}
.studio-open__tags li {
  padding: 4px 10px;
  border-radius: 999px;
  background: var(--neutral-100);
  color: var(--ms-muted);
  font-size: 11.5px;
  font-weight: 600;
}
.studio-open__links {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
  margin-top: auto;
  padding-top: 10px;
}
.studio-open__links a {
  color: var(--ms-accent-ink);
  font-size: 13.5px;
  font-weight: 600;
  text-decoration: underline;
  text-underline-offset: 3px;
}
.studio-open__action {
  display: flex;
  justify-content: center;
  margin-top: 32px;
}
.studio-area__grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 0.9fr);
  gap: clamp(24px, 4vw, 64px);
  align-items: start;
  margin-bottom: 32px;
}
.studio-area__copy p {
  margin: 0 0 16px;
  color: var(--ms-body-text);
}
.studio-area__copy p:last-child {
  margin-bottom: 0;
}
.studio-area__card {
  padding: clamp(22px, 2.4vw, 32px);
  border: 1px solid var(--ms-line);
  border-radius: var(--ms-radius-md);
  background: var(--ms-surface);
  box-shadow: var(--ms-plate-shadow);
}
.studio-area__list-title {
  margin: 0 0 16px;
  font-size: 12px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--ms-muted);
}
.studio-area__list {
  display: grid;
  gap: 10px;
  margin: 0;
  padding: 0;
  list-style: none;
}
.studio-area__list li {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 15px;
  color: var(--ms-ink);
}
.studio-area__list .icon {
  color: var(--ms-accent);
  font-size: 14px;
}
.studio-voices__grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 20px;
}
.studio-voice {
  display: flex;
  flex-direction: column;
  gap: 12px;
  margin: 0;
  padding: 24px;
}
.studio-voice__stars {
  display: flex;
  gap: 3px;
  color: #fbbc05;
  font-size: 14px;
}
.studio-voice__quote {
  margin: 0;
  color: var(--ms-body-text);
  font-size: 15px;
  line-height: 1.6;
}
.studio-voice__cite {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 6px 10px;
  margin-top: auto;
  font-size: 13px;
}
.studio-voice__name {
  font-weight: 600;
  color: var(--ms-ink);
}
.studio-voice__role {
  color: var(--ms-muted);
}
@media (max-width: 991px) {
  .studio-area__grid,
  .studio-voices__grid {
    grid-template-columns: minmax(0, 1fr);
  }
}

.support-sla {
  max-width: 78ch;
  margin: 32px auto 0;
  font-size: 13.5px;
  line-height: 1.6;
  color: var(--ms-muted);
  text-align: center;
}

.footer-preferences {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 16px;
}
.footer-motion {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  padding: 0;
  border: 0;
  background: none;
  color: var(--primary);
  font: inherit;
  font-size: 15px;
  cursor: pointer;
  text-align: left;
}
.footer-motion:hover {
  color: var(--brand);
  text-decoration: underline;
  text-underline-offset: 3px;
}

/* Explicit motion switch: same outcome as prefers-reduced-motion, applied on
   request and remembered across pages. */
html.ms-motion-off *,
html.ms-motion-off *::before,
html.ms-motion-off *::after {
  animation-duration: 0.01ms !important;
  animation-iteration-count: 1 !important;
  transition-duration: 0.01ms !important;
  scroll-behavior: auto !important;
}
html.ms-motion-off .effectFade,
html.ms-motion-off .fadeUp,
html.ms-motion-off .fadeRotateX,
html.ms-motion-off .fadeZoom {
  opacity: 1 !important;
  transform: none !important;
}
html.ms-motion-off .hero-video {
  display: none;
}
html.ms-motion-off .section-hero--video .hero-image {
  background-image: url("/assets/video/hero-poster.webp");
  background-size: cover;
  background-position: center;
}
html.ms-motion-off .stack-marquee {
  overflow: visible;
  -webkit-mask-image: none;
  mask-image: none;
}
html.ms-motion-off .stack-marquee__track {
  width: 100%;
  animation: none;
}
html.ms-motion-off .stack-marquee__group {
  flex-wrap: wrap;
  gap: 24px 56px;
  padding-right: 0;
}
html.ms-motion-off .stack-marquee__group[aria-hidden="true"] {
  display: none;
}
html.ms-motion-off .sf-line {
  background-image: none !important;
  color: var(--ms-ink);
  -webkit-text-fill-color: currentColor;
}

/* Google review badge as a link: same plate, clear affordance. */
.greview {
  color: inherit;
  text-decoration: none;
}
@media (hover: hover) and (pointer: fine) {
  .greview:hover {
    box-shadow: var(--ms-plate-shadow-hover);
    translate: 0 -2px;
  }
}

/* Compact hero: give the lead breathing room under long article titles. */
.section-hero--compact .title.section-hero__title--compact {
  margin-bottom: 24px;
}
@media (max-width: 767px) {
  .section-hero--compact .title.section-hero__title--compact {
    margin-bottom: 20px;
  }
}

/* Keep the live counts off the glyph edge. */
.blog-toolbar__count,
.projects-toolbar__count {
  padding-inline-end: 4px;
}

/* Home about panel: one card carries the rating and the project promises, so
   the column does not repeat two white plates. */
.about-panel {
  display: flex;
  flex: 1;
  flex-direction: column;
  overflow: hidden;
  border: 1px solid rgba(42, 107, 255, 0.14);
  border-radius: 24px;
  background: var(--ms-surface);
  box-shadow:
    inset 0 1px 0 #ffffff,
    0 24px 48px -38px rgba(9, 9, 11, 0.45);
}
.about-panel__rating {
  position: relative;
  margin: 10px 10px 0;
  padding: 20px 22px;
  border-radius: 16px;
  background:
    radial-gradient(120% 100% at 88% -10%, rgba(255, 255, 255, 0.8) 0%, rgba(255, 255, 255, 0) 62%),
    var(--ms-accent-soft);
}
.about-panel__score-row {
  display: flex;
  align-items: center;
  gap: 16px;
}
.about-panel__score {
  font-size: 44px;
  font-weight: 700;
  line-height: 1;
  letter-spacing: -0.03em;
  color: var(--ms-ink);
}
.about-panel__stars {
  display: flex;
  gap: 3px;
  color: #fbbc05;
  font-size: 15px;
}
.about-panel__caption {
  display: block;
  margin-top: 6px;
  font-size: 13px;
  color: var(--ms-muted);
}
.about-panel__lead {
  margin: 16px 0 0;
  color: var(--ms-body-text);
  font-size: 14.5px;
  line-height: 1.5;
}
.about-panel__body {
  display: flex;
  flex: 1;
  flex-direction: column;
  padding: 22px 26px 0;
}
.about-panel__label {
  margin: 0 0 6px;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--ms-accent-ink);
}
.about-panel__title {
  margin: 0 0 16px;
  font-size: clamp(20px, 1.7vw, 24px);
  line-height: 1.2;
  letter-spacing: -0.025em;
  color: var(--ms-ink);
}
.about-panel__list {
  display: grid;
  flex: 1;
  grid-auto-rows: 1fr;
  margin: 0;
  padding: 0;
  list-style: none;
  border-top: 1px solid rgba(24, 24, 27, 0.08);
}
.about-panel__list li {
  display: grid;
  grid-template-columns: 44px minmax(0, 1fr);
  gap: 14px;
  align-items: center;
  padding: 14px 0;
  border-bottom: 1px solid rgba(24, 24, 27, 0.08);
  color: var(--ms-body-text);
  font-size: 14.5px;
  line-height: 1.45;
}
.about-panel__icon {
  display: grid;
  place-items: center;
  width: 44px;
  height: 44px;
  border-radius: 12px;
  background: linear-gradient(180deg, #303036 0%, #1a1a1f 100%);
  color: #ffffff;
  font-size: 18px;
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.24),
    inset 0 -2px 0 rgba(0, 0, 0, 0.5),
    0 8px 16px -10px rgba(9, 9, 11, 0.5);
}
.about-panel__action {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  margin-top: auto;
  padding: 16px 0 18px;
  color: var(--ms-ink);
  font-size: 13.5px;
  font-weight: 600;
  text-decoration: none;
}
.about-panel__action .icon {
  color: var(--ms-accent);
  font-size: 14px;
  transition: transform 180ms var(--ms-ease);
}
.about-panel__action:hover .icon {
  transform: translate(2px, -2px);
}
@media (max-width: 575px) {
  .about-panel__rating {
    margin: 8px 8px 0;
  }
  .about-panel__body {
    padding: 20px 20px 0;
  }
}
/* Home portfolio: coverflow carousel. Swiper owns the 3D transforms; the card
   keeps the shared plate recipe so it reads as part of the system. */
.portfolio-carousel {
  position: relative;
}
.portfolio-swiper {
  overflow: hidden;
  padding: 10px 0 22px;
  -webkit-mask-image: linear-gradient(90deg, transparent 0, #000 7%, #000 93%, transparent 100%);
  mask-image: linear-gradient(90deg, transparent 0, #000 7%, #000 93%, transparent 100%);
}
.portfolio-swiper:focus-within {
  -webkit-mask-image: none;
  mask-image: none;
}
.portfolio-slide {
  width: min(520px, 82vw);
  height: auto;
}
.portfolio-card {
  display: flex;
  flex-direction: column;
  height: 100%;
  overflow: hidden;
  border: 1px solid var(--ms-line);
  border-radius: 24px;
  background: var(--ms-surface);
  box-shadow: var(--ms-plate-shadow);
  transition:
    box-shadow 260ms var(--ms-ease),
    translate 260ms var(--ms-ease);
}
.portfolio-slide.swiper-slide-active .portfolio-card {
  box-shadow: var(--ms-plate-shadow-hover);
}
.portfolio-slide:not(.swiper-slide-active) .portfolio-card {
  opacity: 0.55;
  filter: saturate(0.9);
}
.portfolio-slide .portfolio-card {
  transition:
    opacity 260ms var(--ms-ease),
    filter 260ms var(--ms-ease),
    box-shadow 260ms var(--ms-ease);
}
.portfolio-card__media {
  overflow: hidden;
  aspect-ratio: 16 / 10;
  background: var(--ms-canvas);
}
.portfolio-card__media img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 600ms var(--ms-ease);
}
.portfolio-card__body {
  display: flex;
  flex: 1;
  flex-direction: column;
  padding: 24px 26px 26px;
}
.portfolio-card__meta {
  margin: 0 0 6px;
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--ms-accent-ink);
}
.portfolio-card__title {
  margin: 0 0 10px;
  font-size: clamp(22px, 1.9vw, 28px);
  line-height: 1.15;
  letter-spacing: -0.025em;
  color: var(--ms-ink);
}
.portfolio-card__title a {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: inherit;
  text-decoration: none;
}
.portfolio-card__title .icon {
  font-size: 16px;
  color: var(--ms-accent);
}
.portfolio-card__summary {
  margin: 0;
  color: var(--ms-body-text);
  font-size: 15px;
  line-height: 1.55;
}
.portfolio-card .project-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin: 16px 0 0;
  padding: 0;
  list-style: none;
}
.portfolio-controls {
  display: flex;
  justify-content: center;
  gap: 12px;
  margin-top: 4px;
}
.portfolio-nav {
  display: inline-grid;
  place-items: center;
  width: 44px;
  height: 44px;
  border: 1px solid var(--ms-line);
  border-radius: 999px;
  background: var(--ms-surface);
  color: var(--primary);
  cursor: pointer;
  transition:
    border-color 180ms var(--ms-ease),
    color 180ms var(--ms-ease),
    background 180ms var(--ms-ease);
}
.portfolio-nav:hover {
  border-color: var(--ms-accent);
  color: var(--ms-accent-ink);
  background: var(--ms-accent-soft);
}
.portfolio-nav.swiper-button-disabled {
  opacity: 0.4;
  cursor: default;
}
@media (max-width: 767px) {
  .portfolio-slide {
    width: 86vw;
  }
  .portfolio-card__body {
    padding: 20px;
  }
}

@media (max-width: 767px) {
  .portfolio-swiper {
    -webkit-mask-image: none;
    mask-image: none;
  }
}
