.material-symbols-outlined {
            font-variation-settings: 'FILL' 0, 'wght' 400, 'GRAD' 0, 'opsz' 24;
        }
        .perspective-1000 { perspective: 1000px; }
        .preserve-3d { transform-style: preserve-3d; }
        .brushed-texture {
            background-image: linear-gradient(45deg, rgba(255,255,255,0.05) 25%, transparent 25%, transparent 50%, rgba(255,255,255,0.05) 50%, rgba(255,255,255,0.05) 75%, transparent 75%, transparent);
            background-size: 4px 4px;
        }
        .technical-border { border: 1px solid rgba(154, 164, 173, 0.2); }
        .hover-lift { transition: transform 0.3s cubic-bezier(0.2, 0, 0, 1), box-shadow 0.3s ease; }
        .hover-lift:hover { transform: translateY(-4px); box-shadow: 0 10px 30px -10px rgba(0,0,0,0.5); }
        
        #shader-bg {
            position: fixed;
            top: 0;
            left: 0;
            width: 100%;
            height: 100%;
            z-index: -1;
            pointer-events: none;
        }
        
        #hero-3d-container {
            position: absolute;
            top: 0;
            right: 0;
            width: 100%;
            height: 100%;
            z-index: 0;
            pointer-events: none;
        }

/* Global public spacing rhythm + safe areas */
main > section,
main > header {
  scroll-margin-top: 88px;
}
main section.px-margin-desktop,
main section.px-margin-mobile,
main header.px-margin-desktop,
main header.px-margin-mobile,
.site-header .px-margin-mobile,
.site-footer .px-margin-mobile {
  padding-left: max(16px, env(safe-area-inset-left, 0px));
  padding-right: max(16px, env(safe-area-inset-right, 0px));
}
@media (min-width: 480px) {
  main section.px-margin-desktop,
  main section.px-margin-mobile,
  main header.px-margin-desktop,
  .site-header .px-margin-mobile,
  .site-footer .px-margin-mobile {
    padding-left: max(20px, env(safe-area-inset-left, 0px));
    padding-right: max(20px, env(safe-area-inset-right, 0px));
  }
}
@media (min-width: 768px) {
  main section.px-margin-desktop,
  main section.px-margin-mobile,
  main header.px-margin-desktop,
  .site-header .px-margin-desktop,
  .site-footer .px-margin-desktop {
    padding-left: 32px;
    padding-right: 32px;
  }
}
@media (min-width: 1024px) {
  main section.px-margin-desktop,
  main section.px-margin-mobile,
  main header.px-margin-desktop,
  .site-header .px-margin-desktop,
  .site-footer .px-margin-desktop {
    padding-left: 64px;
    padding-right: 64px;
  }
}

/*
 * Responsive type scale (SEO-friendly H1–body, mobile-first clamps).
 * Do NOT force ultra-narrow max-width (ch) on display titles — that
 * caused single-word line breaks on Services/About heroes.
 */
main .text-headline-display {
  font-size: clamp(1.85rem, 6.4vw, 4.25rem) !important;
  line-height: 1.14 !important;
  letter-spacing: -0.03em !important;
  max-width: none;
  overflow-wrap: anywhere;
  word-break: normal;
  hyphens: manual;
}
main .text-headline-lg-mobile {
  font-size: clamp(1.75rem, 5.8vw, 2.35rem) !important;
  line-height: 1.16 !important;
  letter-spacing: -0.02em !important;
  max-width: none;
  overflow-wrap: anywhere;
}
@media (min-width: 768px) {
  /* When both mobile + display classes are present, prefer display size on tablet+ */
  main h1.text-headline-lg-mobile.md\:text-headline-display,
  main .text-headline-lg-mobile.md\:text-headline-display {
    font-size: clamp(2.35rem, 5vw, 4.25rem) !important;
    line-height: 1.12 !important;
  }
}
main .text-headline-lg {
  font-size: clamp(1.5rem, 3.8vw, 2.85rem) !important;
  line-height: 1.22 !important;
  letter-spacing: -0.02em !important;
  max-width: 100%;
  overflow-wrap: break-word;
}
main .text-headline-md {
  font-size: clamp(1.25rem, 2.6vw, 1.9rem) !important;
  line-height: 1.3 !important;
  letter-spacing: -0.01em !important;
  overflow-wrap: break-word;
  max-width: 100%;
}
main .text-body-lg {
  font-size: clamp(1rem, 1.35vw, 1.125rem) !important;
  line-height: 1.6 !important;
}
main .text-body-md {
  font-size: clamp(0.95rem, 1.1vw, 1rem) !important;
  line-height: 1.6 !important;
}
main .text-body-sm {
  font-size: clamp(0.875rem, 1vw, 0.9rem) !important;
  line-height: 1.55 !important;
}
main h1 {
  font-size: clamp(1.85rem, 6.2vw, 3.5rem);
  line-height: 1.14;
  letter-spacing: -0.03em;
  max-width: 100%;
}
main h2 {
  font-size: clamp(1.4rem, 3.6vw, 2.35rem);
  line-height: 1.22;
  letter-spacing: -0.02em;
  max-width: 100%;
}
main h3 {
  font-size: clamp(1.15rem, 2.2vw, 1.35rem);
  line-height: 1.3;
  letter-spacing: -0.01em;
}

/* Services page hero — no empty 60vh void, clean left stack */
.services-hero {
  min-height: 0 !important;
  display: block !important;
  align-items: unset !important;
}
.services-hero-inner {
  width: 100%;
  max-width: 40rem;
}
.services-hero-title {
  font-size: clamp(1.9rem, 6.5vw, 3.75rem) !important;
  line-height: 1.12 !important;
  letter-spacing: -0.03em !important;
  font-weight: 700 !important;
  max-width: 100% !important;
  width: 100%;
  margin: 0 0 1rem;
  overflow-wrap: normal;
  word-break: normal;
  hyphens: none;
}
@media (min-width: 768px) {
  .services-hero-title {
    font-size: clamp(2.5rem, 4.8vw, 4rem) !important;
    line-height: 1.1 !important;
  }
}
@media (min-width: 1024px) {
  .services-hero-title {
    font-size: clamp(3rem, 4.2vw, 4.25rem) !important;
  }
}

/* Site header — compact on small phones, scales up with viewport */
.site-header {
  padding-top: env(safe-area-inset-top, 0px);
}
.site-header-inner {
  width: 100%;
  box-sizing: border-box;
  min-height: 48px;
  padding-top: 0.45rem;
  padding-bottom: 0.45rem;
}
.site-logo-text {
  font-size: clamp(0.95rem, 3.8vw, 1.2rem);
  max-width: min(38vw, 8.5rem);
  line-height: 1.05;
}
.site-header-cta {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.4rem 0.55rem;
  font-size: 0.62rem;
  letter-spacing: 0.06em;
  line-height: 1.15;
  max-width: min(38vw, 8.5rem);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.site-header-cta-full { display: none; }
.site-header-cta-short { display: inline; }
.site-header-menu-btn {
  width: 36px;
  height: 36px;
}
@media (min-width: 400px) {
  .site-header-inner {
    min-height: 52px;
    padding-top: 0.55rem;
    padding-bottom: 0.55rem;
  }
  .site-header-cta {
    padding: 0.45rem 0.7rem;
    font-size: 0.68rem;
    max-width: none;
  }
}
@media (min-width: 640px) {
  .site-header-inner {
    min-height: 56px;
    padding-top: 0.65rem;
    padding-bottom: 0.65rem;
  }
  .site-logo-text {
    max-width: 11rem;
    font-size: 1.15rem;
  }
  .site-header-cta {
    padding: 0.5rem 0.9rem;
    font-size: 0.72rem;
    letter-spacing: 0.1em;
  }
  .site-header-cta-full { display: inline; }
  .site-header-cta-short { display: none; }
  .site-header-menu-btn {
    width: 40px;
    height: 40px;
  }
}
@media (min-width: 768px) {
  .site-header-inner {
    min-height: 64px;
    padding-top: 0.85rem;
    padding-bottom: 0.85rem;
  }
  .site-header-cta {
    padding: 0.55rem 1.25rem;
    font-size: 0.75rem;
  }
}

/* Insights list: clamp text so thumbnails + copy stay tidy */
.line-clamp-2 {
  display: -webkit-box;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
  overflow: hidden;
}

/* Support page mobile alignment */
.support-hero-title,
.support-process-title {
  max-width: 100% !important;
  width: 100%;
  text-align: left;
  overflow-wrap: break-word;
  word-break: normal;
  hyphens: none;
  font-size: clamp(1.7rem, 6.2vw, 3.5rem) !important;
  line-height: 1.14 !important;
  letter-spacing: -0.03em !important;
}
.support-process-intro {
  text-align: center;
}
.support-process-title {
  text-align: center !important;
  font-size: clamp(1.45rem, 5.4vw, 2.75rem) !important;
  line-height: 1.2 !important;
  margin-left: auto;
  margin-right: auto;
}
@media (min-width: 768px) {
  .support-hero-title {
    font-size: clamp(2.25rem, 4.5vw, 3.75rem) !important;
  }
}

/* Home hero mobile */
.home-hero-title {
  font-size: clamp(1.7rem, 6.4vw, 3.75rem) !important;
  line-height: 1.12 !important;
  letter-spacing: -0.03em !important;
  max-width: 100% !important;
  overflow-wrap: break-word;
  word-break: normal;
}
@media (min-width: 768px) {
  .home-hero-title {
    font-size: clamp(2.4rem, 4.6vw, 4.25rem) !important;
  }
}
@media (max-width: 767px) {
  .home-hero {
    min-height: 0 !important;
  }
}

/* Tighten oversized vertical gaps slightly for professional density */
main .mb-40 { margin-bottom: clamp(3rem, 8vw, 7.5rem) !important; }
main .mb-32 { margin-bottom: clamp(2.5rem, 6vw, 5.5rem) !important; }
main .py-20 { padding-top: clamp(2.25rem, 5vw, 4.5rem) !important; padding-bottom: clamp(2.25rem, 5vw, 4.5rem) !important; }
main .py-40 { padding-top: clamp(3rem, 8vw, 7.5rem) !important; padding-bottom: clamp(3rem, 8vw, 7.5rem) !important; }
main .gap-gutter { gap: clamp(12px, 2vw, 24px); }

/* About approach image pair alignment */
.about-approach-images {
  width: 100%;
  max-width: 100%;
}
.about-approach-images .material-slab {
  width: 100%;
  max-width: 100%;
}
.about-approach-images img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* Prevent fixed-height slabs from exploding on narrow phones */
@media (max-width: 639px) {
  main .h-\[400px\],
  main .h-\[320px\] {
    height: auto !important;
    min-height: 0;
  }
  main .aspect-\[21\/9\] {
    aspect-ratio: 16 / 10;
  }
}

/* Process stage cards — keep long titles like Development inside the cell */
.process-stage-grid .process-stage-title {
  font-size: clamp(1rem, 1.1vw, 1.25rem) !important;
  line-height: 1.25 !important;
  letter-spacing: -0.02em;
  word-break: break-word;
  overflow-wrap: anywhere;
  hyphens: auto;
  padding-right: 1.75rem;
  max-width: 100%;
}
.process-stage-grid .group { min-width: 0; }

/* Scroll reveal animations */
.reveal-on-scroll {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity 0.7s cubic-bezier(0.22, 1, 0.36, 1), transform 0.7s cubic-bezier(0.22, 1, 0.36, 1);
  will-change: opacity, transform;
}
.reveal-on-scroll.is-visible {
  opacity: 1;
  transform: none;
}
.reveal-on-scroll.delay-1 { transition-delay: 0.08s; }
.reveal-on-scroll.delay-2 { transition-delay: 0.16s; }
.reveal-on-scroll.delay-3 { transition-delay: 0.24s; }
.reveal-on-scroll.delay-4 { transition-delay: 0.32s; }

@media (prefers-reduced-motion: reduce) {
  .reveal-on-scroll {
    opacity: 1 !important;
    transform: none !important;
    transition: none !important;
  }
}

/* Human verification slider — compact full-width, random target ±6 green zone */
.human-slider-wrap {
  border: 1px solid rgba(154, 164, 173, 0.25);
  border-radius: 10px;
  padding: 12px 14px;
  background: rgba(21, 26, 32, 0.6);
  width: 100%;
  box-sizing: border-box;
}
.human-slider-title { display: block; margin: 0 0 4px; }
.human-slider-hint { margin: 0 0 8px; line-height: 1.4; }
.human-slider-status {
  font-family: "JetBrains Mono", ui-monospace, monospace;
  font-size: 11px;
  letter-spacing: 0.04em;
  color: #9aa4ad;
  margin: 0 0 8px;
  min-height: 1.2em;
}
.human-slider-track {
  position: relative;
  height: 28px;
  width: 100%;
  border-radius: 999px;
  background: rgba(10, 13, 16, 0.85);
  border: 1px solid rgba(154, 164, 173, 0.22);
  overflow: hidden;
  user-select: none;
  touch-action: none;
}
.human-slider-zone {
  position: absolute;
  top: 0; bottom: 0;
  background: rgba(61, 139, 110, 0.38);
  border-left: 1px solid rgba(61, 139, 110, 0.75);
  border-right: 1px solid rgba(61, 139, 110, 0.75);
  pointer-events: none;
  z-index: 1;
}
.human-slider-fill {
  position: absolute;
  inset: 0 auto 0 0;
  width: 0;
  background: linear-gradient(90deg, rgba(184, 102, 60, 0.35), rgba(208, 90, 55, 0.55));
  pointer-events: none;
  z-index: 0;
  border-radius: 999px;
}
.human-slider-knob {
  position: absolute;
  top: 2px;
  left: 2px;
  width: 24px;
  height: 24px;
  border-radius: 50%;
  background: #f3f0e8;
  color: #151a20;
  display: grid;
  place-items: center;
  cursor: grab;
  z-index: 2;
  box-shadow: 0 2px 10px rgba(0,0,0,0.35);
  line-height: 1;
}
.human-slider-knob:active { cursor: grabbing; }
.human-slider-knob .material-symbols-outlined { font-size: 16px; line-height: 1; }
.human-slider-verified {
  margin-top: 8px;
  font-family: "JetBrains Mono", ui-monospace, monospace;
  font-size: 11px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: #9ed7bf;
  font-weight: 700;
  text-align: left;
  line-height: 1.2;
}
.human-slider-verified[hidden] { display: none !important; }
.human-slider-wrap.is-complete .human-slider-status { color: #9ed7bf; }
.human-slider-wrap.is-complete .human-slider-fill {
  background: linear-gradient(90deg, rgba(61, 139, 110, 0.45), rgba(61, 139, 110, 0.7));
}
.human-slider-wrap.is-complete .human-slider-knob {
  background: #3d8b6e;
  color: #fff;
}
