/* ==========================================================================
   Haystack — Enhancement layer
   Loaded last (after global.css + theme-wp.css). Purely additive polish:
   micro-interactions, cursor-aware lighting, page transitions, typography
   refinements and a few responsive fixes. Delete this file + enhance.js
   (and their enqueue in inc/enqueue.php) to fully revert.
   ========================================================================== */

:root {
  --hs-ease-out: cubic-bezier(0.16, 1, 0.3, 1);
  --hs-ease-in-out: cubic-bezier(0.65, 0, 0.35, 1);
  --hs-glow: rgba(106, 234, 128, 0.55);
  --hs-ring: rgba(106, 234, 128, 0.9);
}

/* --------------------------------------------------------------------- */
/* Typography refinements                                                */
/* --------------------------------------------------------------------- */

h1, h2, h3,
.hero__title, .page-hero__title, .services__title {
  text-wrap: balance;
}

p, li {
  text-wrap: pretty;
}

body {
  text-rendering: optimizeLegibility;
  font-feature-settings: "kern" 1, "liga" 1;
}

/* Neutral selection: a translucent graphite wash that reads on both light
   and dark sections without recolouring the text. */
::selection {
  background: rgba(130, 138, 134, 0.38);
}

/* --------------------------------------------------------------------- */
/* Accessible, on-brand focus states                                     */
/* --------------------------------------------------------------------- */

:focus-visible {
  outline: 2px solid var(--hs-ring);
  outline-offset: 3px;
  border-radius: 6px;
}

.btn:focus-visible {
  outline-offset: 4px;
  border-radius: var(--radius-pill);
}

/* --------------------------------------------------------------------- */
/* Scroll progress (element injected by enhance.js)                      */
/* --------------------------------------------------------------------- */

.hs-progress {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  height: 2px;
  z-index: 1000;
  pointer-events: none;
  transform-origin: 0 50%;
  transform: scaleX(var(--hs-progress, 0));
  background: linear-gradient(90deg, rgba(106, 234, 128, 0) 0%, var(--color-green) 30%, var(--color-green-light) 100%);
  box-shadow: 0 0 12px rgba(106, 234, 128, 0.6);
  opacity: 0;
  transition: opacity 0.4s ease;
}

.hs-progress.is-on {
  opacity: 1;
}

/* --------------------------------------------------------------------- */
/* Cross-document page transitions (View Transitions API, progressive).  */
/* Paired with prerender-on-hover speculation rules, navigations feel     */
/* instant: the old page softly lifts away while the new one settles in.  */
/* --------------------------------------------------------------------- */

@view-transition {
  navigation: auto;
}

/* "Scan wipe": the outgoing page recedes into the dark (scale, dim, blur)
   while the incoming page wipes up from the bottom behind a glowing green
   scan line — the same language as the product/project scan-reveals. The
   line is a fixed element (.hs-vt-scan, injected by enhance.js) that is
   only painted while a view transition is running. */
::view-transition-group(root) {
  animation-duration: 0.9s;
}

::view-transition-image-pair(root) {
  isolation: isolate;
  background: var(--color-black-deep);
}

::view-transition-old(root) {
  animation: hs-vt-recede 0.9s cubic-bezier(0.65, 0, 0.35, 1) both;
  transform-origin: 50% 40%;
}

::view-transition-new(root) {
  animation: hs-vt-wipe 0.9s cubic-bezier(0.76, 0, 0.24, 1) both;
  mix-blend-mode: normal;
}

@keyframes hs-vt-recede {
  to { transform: scale(0.92) translateY(-2%); filter: brightness(0.35) blur(6px); border-radius: 28px; }
}

@keyframes hs-vt-wipe {
  from { clip-path: inset(100% 0 0 0 round 32px 32px 0 0); transform: translateY(6%); }
  to   { clip-path: inset(0 0 0 0 round 0); transform: none; }
}

.hs-vt-scan {
  position: fixed;
  left: 0;
  right: 0;
  top: 0;
  height: 100vh;
  z-index: 2147483000;
  pointer-events: none;
  view-transition-name: hs-scan;
  visibility: hidden;
}

/* Only while the transition runs; the arrival script also hides it the
   moment the transition finishes, so it can never linger on the page. */
html:active-view-transition .hs-vt-scan { visibility: visible; }
html.hs-vt-done .hs-vt-scan { visibility: hidden !important; display: none; }

.hs-vt-scan::before {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: 2px;
  background: linear-gradient(90deg, transparent, var(--color-green-light) 20%, #eafff0 50%, var(--color-green-light) 80%, transparent);
  box-shadow: 0 0 24px 6px rgba(106, 234, 128, 0.55), 0 0 80px 20px rgba(0, 204, 106, 0.25);
}

::view-transition-group(hs-scan) { animation: none; }
::view-transition-old(hs-scan) { display: none; }
::view-transition-new(hs-scan) {
  animation: hs-vt-scanline 0.9s cubic-bezier(0.76, 0, 0.24, 1) both;
}

@keyframes hs-vt-scanline {
  0%   { transform: translateY(6%); opacity: 1; }
  85%  { opacity: 1; }
  100% { transform: translateY(-100%); opacity: 0; }
}

/* --------------------------------------------------------------------- */
/* Navigation — refined hover underline                                  */
/* --------------------------------------------------------------------- */

/* theme.json used to add a global a:hover underline, which stacked a second
   line under nav items; it's removed there, and pinned off here too. */
.site-header a,
.site-header a:hover,
.site-header__nav > a[aria-current="page"] {
  text-decoration: none;
}

/* Keep the bar itself crisp above the mega-menu scrim (z-index 90) so the
   other nav items stay readable — and hoverable — while Software is open. */
.site-header > .container {
  position: relative;
  z-index: 96;
}

/* Desktop nav — refined pill. Links read as soft chips on hover; the
   current page carries a small green indicator dot. The scrolled state is a
   floating graphite glass capsule with the CTA nested flush inside it. */
@media (min-width: 901px) {
  .site-header__nav {
    gap: 2px;
  }

  .site-header__nav > a,
  .site-header__nav .site-header__dropdown-trigger {
    position: relative;
    padding: 9px 14px;
    border-radius: var(--radius-pill);
    font-size: 14px;
    font-weight: 500;
    letter-spacing: -0.005em;
    color: rgba(255, 255, 255, 0.64);
    transition: color 0.25s ease, background-color 0.3s ease;
  }

  .site-header__nav > a:hover,
  .site-header__nav .site-header__dropdown-trigger:hover,
  .site-header.is-hover-open .site-header__dropdown-trigger,
  .site-header.is-kb-open .site-header__dropdown-trigger {
    color: #fff;
    background-color: rgba(255, 255, 255, 0.07);
  }

  .site-header__nav > a[aria-current="page"] {
    color: #fff;
  }

  .site-header__nav > a[aria-current="page"]::after {
    content: "";
    position: absolute;
    left: 50%;
    bottom: 2px;
    width: 4px;
    height: 4px;
    margin-left: -2px;
    border-radius: 50%;
    background: var(--color-green-light);
    box-shadow: 0 0 8px rgba(106, 234, 128, 0.8);
  }

  .site-header__dropdown-chevron {
    transition: transform 0.35s var(--hs-ease-out);
  }

  .site-header.is-hover-open .site-header__dropdown-chevron,
  .site-header.is-kb-open .site-header__dropdown-chevron {
    transform: rotate(180deg);
  }

  .site-header__actions .btn--pill-green-sm {
    padding: 11px 20px;
    font-size: 13.5px;
    letter-spacing: -0.005em;
  }

  /* Floating capsule */
  .site-header.is-scrolled .container {
    top: 8px;
    max-width: 940px;
    height: 58px;
    padding-left: 22px;
    padding-right: 7px;
    background-color: rgba(12, 13, 13, 0.9);
    background-image: linear-gradient(180deg, rgba(255, 255, 255, 0.045), rgba(255, 255, 255, 0));
    border-color: rgba(255, 255, 255, 0.09);
    box-shadow:
      inset 0 1px 0 rgba(255, 255, 255, 0.07),
      0 1px 2px rgba(0, 0, 0, 0.25),
      0 18px 50px -18px rgba(0, 0, 0, 0.55);
    -webkit-backdrop-filter: blur(24px) saturate(1.5);
            backdrop-filter: blur(24px) saturate(1.5);
  }

  .site-header.is-scrolled .site-header__logo img {
    height: 23px;
  }

  .site-header.is-scrolled .site-header__actions .btn--pill-green-sm {
    padding: 12px 22px;
  }

  .site-header .container,
  .site-header__logo img {
    transition-property: max-width, height, padding, background-color, backdrop-filter, box-shadow, border-color, top, filter, transform;
  }
}

.site-header__logo img {
  transition: transform 0.5s var(--hs-ease-out), filter 0.5s ease;
}

.site-header__logo:hover img {
  filter: drop-shadow(0 0 14px rgba(106, 234, 128, 0.45));
}

/* --------------------------------------------------------------------- */
/* Buttons — luminous hover (no size change, preserving the design rule) */
/* --------------------------------------------------------------------- */

.btn--primary,
.btn--pill-green-sm,
.btn--pill-green {
  box-shadow: 0 0 0 0 rgba(106, 234, 128, 0), 0 1px 0 rgba(255, 255, 255, 0.35) inset;
  transition: box-shadow 0.5s var(--hs-ease-out), background-color 0.3s ease, transform 0.4s var(--hs-ease-out);
}

.btn--primary:hover,
.btn--pill-green-sm:hover,
.btn--pill-green:hover {
  background-color: #7af08f;
  box-shadow: 0 0 0 4px rgba(106, 234, 128, 0.16), 0 14px 40px -12px rgba(106, 234, 128, 0.75), 0 1px 0 rgba(255, 255, 255, 0.45) inset;
}

.btn--outline:hover {
  box-shadow: 0 10px 24px rgba(0, 0, 0, 0.3), inset 0 1px 0 var(--white-12), 0 0 0 4px rgba(255, 255, 255, 0.04);
}

/* Linked badges (e.g. the Contact hero "Book a free consultation" chips)
   read as real controls: pointer, hover lift in colour, and an arrow. */
a.badge {
  cursor: pointer;
  gap: 8px;
  transition: background-color 0.3s ease, border-color 0.3s ease, color 0.3s ease, box-shadow 0.4s var(--hs-ease-out);
}

a.badge::after {
  content: "\2192";
  font-family: var(--font-body);
  display: inline-block;
  transition: transform 0.4s var(--hs-ease-out);
}

a.badge:hover {
  color: #fff;
  background: var(--white-12);
  border-color: var(--white-26);
}

a.badge:hover::after {
  transform: translateX(3px);
}

a.badge--green:hover {
  color: var(--color-navy-black);
  background: var(--color-green-light);
  border-color: var(--color-green-light);
  box-shadow: 0 10px 30px -10px rgba(106, 234, 128, 0.7);
}

/* --------------------------------------------------------------------- */
/* Eyebrow tag — living status dot                                       */
/* --------------------------------------------------------------------- */

.tag__dot {
  animation: hs-ping 2.6s var(--hs-ease-out) infinite;
}

@keyframes hs-ping {
  0%   { box-shadow: 0 0 0 0 rgba(106, 234, 128, 0.55); }
  70%  { box-shadow: 0 0 0 7px rgba(106, 234, 128, 0); }
  100% { box-shadow: 0 0 0 0 rgba(106, 234, 128, 0); }
}

/* --------------------------------------------------------------------- */
/* Hero — interactive grid + grain (element injected by enhance.js)      */
/* --------------------------------------------------------------------- */

.hs-hero-fx {
  position: absolute;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  overflow: hidden;
}

.hs-hero-fx::before {
  /* Engineering grid that is only revealed around the cursor. */
  content: "";
  position: absolute;
  inset: -1px;
  background-image:
    linear-gradient(rgba(255, 255, 255, 0.055) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.055) 1px, transparent 1px);
  background-size: 56px 56px;
  background-position: center top;
  -webkit-mask-image: radial-gradient(520px circle at var(--hx, 50%) var(--hy, 35%), #000 0%, rgba(0, 0, 0, 0.35) 45%, transparent 75%);
          mask-image: radial-gradient(520px circle at var(--hx, 50%) var(--hy, 35%), #000 0%, rgba(0, 0, 0, 0.35) 45%, transparent 75%);
  opacity: 0;
  animation: hs-fade-in 1.6s 0.3s var(--hs-ease-out) forwards;
}

.hs-hero-fx::after {
  /* Soft green aurora that trails the cursor, plus a fine film grain. */
  content: "";
  position: absolute;
  inset: 0;
  background:
    radial-gradient(640px circle at var(--hx, 50%) var(--hy, 35%), rgba(0, 204, 106, 0.10), transparent 60%),
    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='160' height='160'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.9' numOctaves='2' stitchTiles='stitch'/%3E%3CfeColorMatrix values='0 0 0 0 1 0 0 0 0 1 0 0 0 0 1 0 0 0 .05 0'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
  transition: background-position 0.2s linear;
  mix-blend-mode: screen;
}

@keyframes hs-fade-in {
  to { opacity: 1; }
}



/* --------------------------------------------------------------------- */
/* Cursor spotlight on cards (class + vars set by enhance.js)            */
/* --------------------------------------------------------------------- */

.hs-spot {
  --hs-spot-c: rgba(106, 234, 128, 0.09);
  background-image: radial-gradient(460px circle at var(--mx, -999px) var(--my, -999px), var(--hs-spot-c), transparent 60%);
}

.hs-spot--light {
  --hs-spot-c: rgba(0, 204, 106, 0.08);
}

.hs-spot--ring {
  isolation: isolate;
}

.hs-spot--ring::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 2;
  border-radius: inherit;
  padding: 1px;
  pointer-events: none;
  background: radial-gradient(300px circle at var(--mx, -999px) var(--my, -999px), var(--hs-glow), transparent 55%);
  -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
  -webkit-mask-composite: xor;
          mask: linear-gradient(#000 0 0) content-box exclude, linear-gradient(#000 0 0);
  opacity: 0;
  transition: opacity 0.4s ease;
}

.hs-spot--ring:hover::before {
  opacity: 1;
}

/* Service cards: an index counter + premium edge highlight */
.service-list {
  counter-reset: hs-svc;
}

.service-item {
  counter-increment: hs-svc;
  background-color: var(--color-black-deep);
  box-shadow: 0 40px 70px -35px rgba(0, 0, 0, 0.8), inset 0 1px 0 rgba(255, 255, 255, 0.06);
}

.service-item::after {
  content: counter(hs-svc, decimal-leading-zero);
  position: absolute;
  right: var(--space-8);
  bottom: var(--space-7);
  font-family: var(--font-mono);
  font-size: var(--fs-sm);
  letter-spacing: 0.14em;
  color: var(--white-26);
  pointer-events: none;
  transition: color 0.4s ease;
}

.service-item:hover::after {
  color: var(--color-green-light);
}

/* Channel cards (Contact) — hover lift in tone */
.channel-card {
  position: relative;
  transition: border-color 0.4s ease, background-color 0.4s ease, transform 0.6s var(--hs-ease-out);
}

.channel-card:hover {
  border-color: rgba(106, 234, 128, 0.22);
  background-color: rgba(255, 255, 255, 0.09);
}

/* --------------------------------------------------------------------- */
/* Media — slow cinematic zoom on hover                                  */
/* --------------------------------------------------------------------- */

.work-card__image,
.blog-card__image,
.aiservices-stage-card__image {
  transition: transform 1.4s var(--hs-ease-out), filter 0.8s ease;
}

.work-card:hover .work-card__image,
.aiservices-stage-card:hover .aiservices-stage-card__image {
  transform: scale(1.035);
}

.blog-card:hover .blog-card__image {
  transform: scale(1.02);
  filter: saturate(1.08);
}

.work-card__desc {
  -webkit-backdrop-filter: blur(14px) saturate(1.2);
          backdrop-filter: blur(14px) saturate(1.2);
  transition: border-color 0.4s ease, background-color 0.4s ease;
}

.work-card__desc:hover {
  border-color: rgba(106, 234, 128, 0.28);
  background: rgba(11, 13, 12, 0.75);
}

.work-card__desc-link {
  background-image: linear-gradient(currentColor, currentColor);
  background-repeat: no-repeat;
  background-position: 0 100%;
  background-size: 0% 1px;
  transition: background-size 0.45s var(--hs-ease-out);
}

.work-card__desc:hover .work-card__desc-link {
  background-size: 100% 1px;
}

/* Mobile: stop "Gianpula Village / View case study" wrapping into 3 lines. */
@media (max-width: 640px) {
  .work-card__desc {
    left: var(--space-3);
    right: var(--space-3);
    bottom: var(--space-3);
    padding: var(--space-4) var(--space-5);
  }

  .work-card__desc-meta {
    flex-wrap: wrap;
    row-gap: 4px;
  }

  .work-card__desc-name {
    flex: 1 1 100%;
  }

  .work-card__desc-link {
    margin-left: 0;
    white-space: nowrap;
  }

  .work-card__desc-text {
    margin-top: var(--space-2);
  }
}

/* --------------------------------------------------------------------- */
/* Rich text — animated link underline                                   */
/* --------------------------------------------------------------------- */

.rich-text a {
  text-decoration: none;
  background-image: linear-gradient(currentColor, currentColor), linear-gradient(rgba(10, 143, 79, 0.25), rgba(10, 143, 79, 0.25));
  background-repeat: no-repeat;
  background-position: 0 100%, 0 100%;
  background-size: 0% 1px, 100% 1px;
  transition: background-size 0.45s var(--hs-ease-out), color 0.2s ease;
}

.rich-text a:hover {
  background-size: 100% 1px, 100% 1px;
}

/* Legal pages: numbered section eyebrows + key-points callout */
.legal-content .legal-num {
  font-family: var(--font-mono);
  font-size: var(--fs-sm);
  letter-spacing: 0.14em;
  color: var(--color-green);
  margin: var(--space-11) 0 calc(var(--space-9) * -1 + var(--space-2));
}

.legal-content .legal-keypoints {
  font-family: var(--font-mono);
  font-size: var(--fs-sm);
  letter-spacing: 0.14em;
  text-transform: uppercase;
  margin-bottom: var(--space-3);
}

.legal-content .legal-keypoints + ul {
  background: #fff;
  border: 1px solid rgba(11, 13, 12, 0.08);
  border-radius: var(--radius-lg);
  padding: var(--space-6) var(--space-7) var(--space-6) calc(var(--space-7) + 18px);
  box-shadow: 0 30px 60px -40px rgba(11, 13, 12, 0.25);
}

/* --------------------------------------------------------------------- */
/* Live-chat launcher — gentle attention halo                            */
/* --------------------------------------------------------------------- */

.live-chat__launcher {
  animation: hs-halo 3.2s var(--hs-ease-out) 2s infinite;
}

.live-chat.is-open .live-chat__launcher {
  animation: none;
}

@keyframes hs-halo {
  0%   { box-shadow: 0 12px 30px -8px rgba(0, 0, 0, 0.5), 0 0 0 0 rgba(106, 234, 128, 0.5); }
  60%  { box-shadow: 0 12px 30px -8px rgba(0, 0, 0, 0.5), 0 0 0 14px rgba(106, 234, 128, 0); }
  100% { box-shadow: 0 12px 30px -8px rgba(0, 0, 0, 0.5), 0 0 0 0 rgba(106, 234, 128, 0); }
}

/* Safety: if a reCAPTCHA badge is ever injected by a plugin, keep it from
   sitting under the chat launcher (branding stays visible, just offset). */
.grecaptcha-badge {
  bottom: 96px !important;
}

/* --------------------------------------------------------------------- */
/* Stats — subtle hover glow on each metric                              */
/* --------------------------------------------------------------------- */

.stats__value {
  transition: text-shadow 0.5s ease, color 0.3s ease;
}

.stats__item:hover .stats__value {
  text-shadow: 0 0 28px rgba(106, 234, 128, 0.45);
}

/* --------------------------------------------------------------------- */
/* Reduced motion — honour the OS preference for everything above        */
/* --------------------------------------------------------------------- */

@media (prefers-reduced-motion: reduce) {
  @view-transition {
    navigation: none;
  }

  .hs-vt-scan { display: none; }

  .tag__dot,
  .live-chat__launcher,
  .hs-hero-fx::before {
    animation: none !important;
    opacity: 1;
  }

  .work-card__image,
  .blog-card__image,
  .aiservices-stage-card__image {
    transition: none;
  }

  .work-card:hover .work-card__image,
  .blog-card:hover .blog-card__image,
  .aiservices-stage-card:hover .aiservices-stage-card__image {
    transform: none;
  }
}

@media (hover: none) {
  .hs-hero-fx::before {
    -webkit-mask-image: radial-gradient(420px circle at 50% 20%, #000 0%, transparent 75%);
            mask-image: radial-gradient(420px circle at 50% 20%, #000 0%, transparent 75%);
  }
}

/* --------------------------------------------------------------------- */
/* Scroll-scrubbed sequences (JS in home.js / sequences.js writes the     */
/* per-frame transforms; transitions off so nothing lags the scroll).     */
/* --------------------------------------------------------------------- */

.testimonial-scroll.is-scrub {
  height: 260vh;
}

.testimonial-scroll.is-scrub .testimonial {
  transition: none;
  will-change: transform, opacity, filter;
}

.work-stack.is-scrub .work-card {
  transition: none;
  transform-origin: 50% 0;
  will-change: transform;
}

/* Insights carousel is stepped by scroll — arrows no longer needed. */
.news-carousel.is-scroll-driven .news-carousel__arrow {
  display: none;
}

.hs-steps-track {
  position: relative;
}

.hs-steps-pin {
  position: sticky;
  top: calc(var(--nav-height) + 24px);
}

/* --------------------------------------------------------------------- */
/* AI Services — reverse split scroll (built by enhance.js, desktop)      */
/* --------------------------------------------------------------------- */

.hs-split {
  position: relative;
  --hs-split-h: 100vh;
}

.hs-split__view {
  position: sticky;
  top: 0;
  z-index: 1;
  display: flex;
  height: var(--hs-split-h);
  overflow: hidden;
}

/* Stacking slides: each service is one full-width slide (text + diagram,
   one colour). The next slide rises over the current one, which eases
   back and dims beneath it. Transforms are written by initSplitScroll. */
html .hs-split .hs-split__slide {
  position: absolute !important;
  inset: 0 !important;
  width: 100% !important;
  min-height: 0 !important;
  display: flex;
  height: var(--hs-split-h) !important;
  scroll-snap-align: none !important;
  transition: none;
  pointer-events: auto;
  transform-origin: 50% 30%;
  will-change: transform;
  overflow: hidden;
  backface-visibility: hidden;
}
.hs-split .hs-split__slide::after {
  content: "";
  position: absolute;
  inset: 0;
  background: #000;
  opacity: var(--hs-dim, 0);
  pointer-events: none;
  z-index: 5;
}
.hs-split .hs-split__slide.is-rising { box-shadow: 0 -40px 80px -20px rgba(0, 0, 0, 0.45); }

.hs-split .aiservices-stage-card__text {
  flex: 0 0 50%;
  min-width: 0;
  transform: none !important;
}

.hs-split .aiservices-stage-card__media {
  flex: 1 1 auto;
  position: relative;
  overflow: hidden;
  transform: none !important;
}

.hs-split__snap {
  position: absolute;
  left: 0;
  width: 1px;
  pointer-events: none;
  height: var(--hs-split-h);
  scroll-snap-align: start;
  scroll-snap-stop: always;
}

/* Heroes whose copy sits in a plain .container: lift it above the injected
   grid/aurora layer. */
.hs-has-fx > .container {
  position: relative;
  z-index: 1;
}

/* 404 — the fixed 99px title and unshrinkable flex item overflowed phones
   (headline and header both cut off). Fluid type + full-width inner fix it. */
.error-404__inner {
  width: 100%;
  min-width: 0;
}

.error-404__title {
  font-size: clamp(44px, 11vw, var(--fs-hero));
  letter-spacing: -0.03em;
  overflow-wrap: break-word;
}

.error-404__search form {
  display: flex;
  gap: var(--space-2);
  max-width: 100%;
}

.error-404__search input[type="search"] {
  flex: 1 1 auto;
  min-width: 0;
}

/* --------------------------------------------------------------------- */
/* Product "What's included" — vertical winding snake                    */
/* (path + states driven by initFeatureSnake in enhance.js)              */
/* --------------------------------------------------------------------- */

.feature-snake {
  background: var(--color-off-white);
  padding: var(--space-11) 0 calc(var(--space-11) + var(--space-8));
  overflow: hidden;
}

.feature-snake__head {
  max-width: 680px;
  margin: 0 auto;
  text-align: center;
}

.feature-snake__body {
  position: relative;
  margin-top: var(--space-11);
  max-width: 1040px;
}

.feature-snake__svg {
  position: absolute;
  left: 0;
  top: 0;
  overflow: visible;
  pointer-events: none;
}

.feature-snake__track,
.feature-snake__draw {
  fill: none;
  stroke-linecap: round;
}

.feature-snake__track {
  stroke: rgba(11, 13, 12, 0.1);
  stroke-width: 2;
  stroke-dasharray: 2 8;
}

.feature-snake__draw {
  stroke: var(--color-green);
  stroke-width: 2.5;
  filter: drop-shadow(0 0 6px rgba(0, 204, 106, 0.45));
}

.feature-snake__link {
  stroke: rgba(11, 13, 12, 0.12);
  stroke-width: 1.5;
  stroke-dasharray: 3 5;
  transition: stroke 0.6s ease;
}

.feature-snake__link.is-on {
  stroke: rgba(0, 204, 106, 0.6);
}

.feature-snake__cursor {
  fill: var(--color-green-light);
  stroke: #fff;
  stroke-width: 3;
  opacity: 0;
  filter: drop-shadow(0 0 10px rgba(106, 234, 128, 0.9));
  transition: opacity 0.3s ease;
}

.feature-snake__cursor.is-on {
  opacity: 1;
}

.feature-snake__list {
  position: relative;
  list-style: none;
  margin: 0;
  padding: 0;
}

.feature-snake__item {
  position: relative;
  display: flex;
}

.feature-snake__item + .feature-snake__item {
  margin-top: 170px;
}


.feature-snake__item:nth-child(even) {
  justify-content: flex-end;
}

/* Entry port on each card's top edge, near its left corner (x set by JS
   to match the path exactly via --in-x). */
.feature-snake__node {
  position: absolute;
  z-index: 2;
  top: -8px;
  left: var(--node-x, 64px);
  width: 16px;
  height: 16px;
  margin-left: -8px;
  border-radius: 50%;
  background: var(--color-off-white);
  border: 2px solid rgba(11, 13, 12, 0.2);
  transition: background-color 0.5s ease, border-color 0.5s ease, box-shadow 0.6s ease, transform 0.6s var(--hs-ease-out);
}

.feature-snake__item.is-on .feature-snake__node {
  background: var(--color-green-light);
  border-color: #fff;
  transform: scale(1.15);
  box-shadow: 0 0 0 6px rgba(0, 204, 106, 0.14), 0 0 18px rgba(106, 234, 128, 0.8);
}

.feature-snake__card {
  position: relative;
  z-index: 1;
  width: 50%;
  background: #fff;
  border: 1px solid rgba(11, 13, 12, 0.07);
  border-radius: var(--radius-lg);
  padding: var(--space-8) var(--space-8) var(--space-7);
  box-shadow: 0 1px 2px rgba(11, 13, 12, 0.04), 0 30px 60px -36px rgba(11, 13, 12, 0.3);
  transition: opacity 0.8s ease, transform 0.9s var(--hs-ease-out), filter 0.8s ease, border-color 0.6s ease, box-shadow 0.6s ease;
}

/* Exit port on the bottom edge, near the right corner. */
.feature-snake__card::after {
  content: "";
  position: absolute;
  left: var(--out-x, 64px);
  bottom: -5px;
  width: 10px;
  height: 10px;
  margin-left: -5px;
  border-radius: 50%;
  background: #fff;
  border: 2px solid rgba(11, 13, 12, 0.18);
  transition: background-color 0.5s ease, border-color 0.5s ease;
}


.feature-snake__item.is-on .feature-snake__card::after {
  background: var(--color-green);
  border-color: #fff;
}

.feature-snake__body.is-ready .feature-snake__item:not(.is-on) .feature-snake__card {
  opacity: 0.3;
  filter: blur(3px) saturate(0.4);
  transform: translateY(24px) scale(0.98);
}

.feature-snake__item.is-on .feature-snake__card {
  border-color: rgba(0, 204, 106, 0.25);
  box-shadow: 0 1px 2px rgba(11, 13, 12, 0.04), 0 36px 70px -36px rgba(11, 13, 12, 0.35), 0 0 0 4px rgba(0, 204, 106, 0.05);
}

.feature-snake__index {
  display: inline-block;
  font-family: var(--font-mono);
  font-size: var(--fs-sm);
  letter-spacing: 0.14em;
  color: var(--color-green);
}

.feature-snake__card .feature-card__title {
  font-size: clamp(22px, 2vw, 28px);
  letter-spacing: -0.02em;
  line-height: 1.15;
  margin-top: var(--space-3);
}

.feature-snake__card .feature-card__desc {
  font-size: var(--fs-lg);
  line-height: 1.6;
  margin-top: var(--space-3);
  max-width: 42ch;
}

.feature-snake__item--featured .feature-snake__card {
  background: #111312;
  border-color: rgba(106, 234, 128, 0.3);
}

.feature-snake__item--featured .feature-card__title { color: #fff; }
.feature-snake__item--featured .feature-card__desc { color: rgba(255, 255, 255, 0.7); }

/* Phones: cards nearly full width, alternately nudged left/right so the
   line still winds between them. */
@media (max-width: 760px) {
  .feature-snake__item + .feature-snake__item {
    margin-top: 72px;
  }

  .feature-snake__card {
    width: 88%;
    padding: var(--space-7) var(--space-6) var(--space-6);
  }

}

@media (prefers-reduced-motion: reduce) {
  .feature-snake__card,
  .feature-snake__node {
    transition: none;
  }
}

/* Scrolled capsule stays a true graphite-black over light sections too. */
.site-header.is-scrolled .container {
  background-color: rgba(12, 13, 13, 0.9);
}

/* --------------------------------------------------------------------- */
/* Product hero — "live system" console (desktop)                        */
/* --------------------------------------------------------------------- */

.hs-console {
  display: none;
}

@media (min-width: 1100px) {
  .vertical-hero > .container {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 420px;
    column-gap: 72px;
    align-items: start;
  }

  .vertical-hero > .container > *:not(.hs-console) {
    grid-column: 1;
  }

  .hs-console {
    display: block;
    grid-column: 2;
    grid-row: 1 / span 5;
    align-self: center;
    position: relative;
    border-radius: 18px;
    padding: 16px;
    background: linear-gradient(180deg, rgba(255, 255, 255, 0.06), rgba(255, 255, 255, 0.02));
    border: 1px solid rgba(255, 255, 255, 0.09);
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.08), 0 40px 80px -30px rgba(0, 0, 0, 0.7), 0 0 0 1px rgba(0, 0, 0, 0.3);
    -webkit-backdrop-filter: blur(18px);
            backdrop-filter: blur(18px);
    transform: perspective(1400px) rotateY(-8deg) rotateX(4deg);
    transform-origin: 0 50%;
    animation: hs-console-in 1.2s 0.35s var(--hs-ease-out) both;
  }

  .hs-console::before {
    content: "";
    position: absolute;
    inset: -1px;
    border-radius: inherit;
    padding: 1px;
    background: linear-gradient(140deg, rgba(106, 234, 128, 0.55), transparent 35%, transparent 70%, rgba(106, 234, 128, 0.25));
    -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
    -webkit-mask-composite: xor;
            mask: linear-gradient(#000 0 0) content-box exclude, linear-gradient(#000 0 0);
    pointer-events: none;
  }
}

@keyframes hs-console-in {
  from { opacity: 0; transform: perspective(1400px) rotateY(-18deg) rotateX(8deg) translateY(30px); filter: blur(8px); }
}

.hs-console__bar {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 2px 4px 14px;
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.08em;
  color: var(--white-50);
}

.hs-console__dots { display: inline-flex; gap: 5px; }
.hs-console__dots i { width: 8px; height: 8px; border-radius: 50%; background: rgba(255, 255, 255, 0.14); }
.hs-console__title { flex: 1; }

.hs-console__live {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  color: var(--color-green-light);
  text-transform: uppercase;
}

.hs-console__live b {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: currentColor;
  animation: hs-ping 1.8s var(--hs-ease-out) infinite;
}

.hs-console__chart {
  position: relative;
  height: 128px;
  border-radius: 12px;
  background: rgba(0, 0, 0, 0.28);
  border: 1px solid rgba(255, 255, 255, 0.05);
  overflow: hidden;
}

.hs-console__chart svg { display: block; width: 100%; height: 100%; }
.hs-console__grid { stroke: rgba(255, 255, 255, 0.05); stroke-width: 1; fill: none; }

.hs-console__line {
  fill: none;
  stroke: var(--color-green-light);
  stroke-width: 2;
  vector-effect: non-scaling-stroke;
  stroke-dasharray: 600;
  stroke-dashoffset: 600;
  filter: drop-shadow(0 0 6px rgba(106, 234, 128, 0.7));
  animation: hs-draw 2.2s 0.8s var(--hs-ease-out) forwards;
}

.hs-console__area {
  opacity: 0;
  animation: hs-fade-in 1.2s 1.6s ease forwards;
}

.hs-console__tip {
  position: absolute;
  right: 0;
  top: 11%;
  width: 9px;
  height: 9px;
  margin: -4px -4px 0 0;
  border-radius: 50%;
  background: var(--color-green-light);
  box-shadow: 0 0 14px rgba(106, 234, 128, 0.9);
  opacity: 0;
  animation: hs-fade-in 0.4s 2.8s ease forwards, hs-ping 1.8s 3s infinite;
}

@keyframes hs-draw { to { stroke-dashoffset: 0; } }

.hs-console__kpis {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 8px;
  margin-top: 10px;
}

.hs-console__kpi {
  padding: 12px;
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.06);
}

.hs-console__kpi-value {
  display: block;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 22px;
  letter-spacing: -0.03em;
  color: #fff;
}

.hs-console__kpi-label {
  display: block;
  margin-top: 4px;
  font-size: 11px;
  line-height: 1.3;
  color: var(--white-50);
}

.hs-console__mods {
  margin: 10px 0 0;
  padding: 0;
  list-style: none;
}

.hs-console__mods li {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  padding: 10px 12px;
  border-top: 1px solid rgba(255, 255, 255, 0.05);
  font-size: 13px;
  color: var(--white-80);
  opacity: 0;
  animation: hs-mod-in 0.6s var(--d, 1s) var(--hs-ease-out) forwards;
}

.hs-console__mods em {
  font-style: normal;
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--color-green-light);
  padding: 4px 8px;
  border-radius: var(--radius-pill);
  background: rgba(0, 204, 106, 0.12);
}

@keyframes hs-mod-in {
  from { opacity: 0; transform: translateY(6px); }
  to { opacity: 1; transform: none; }
}

/* --------------------------------------------------------------------- */
/* Product page — split sections, check lists, pricing                   */
/* --------------------------------------------------------------------- */

.vertical-split__media {
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: 0 40px 80px -40px rgba(0, 0, 0, 0.7), 0 0 0 1px rgba(255, 255, 255, 0.06);
}

.vertical-split__list li::before,
.pricing-card__list li::before {
  content: "";
  width: 18px;
  height: 18px;
  margin-top: -1px;
  border-radius: 50%;
  flex-shrink: 0;
  background:
    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3E%3Cpath d='M4.5 8.2l2.3 2.3 4.7-5' fill='none' stroke='%2300cc6a' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center / 12px no-repeat,
    rgba(0, 204, 106, 0.14);
}

.pricing-card {
  position: relative;
  transition: transform 0.6s var(--hs-ease-out), box-shadow 0.6s var(--hs-ease-out), border-color 0.4s ease;
}

.pricing-card:hover {
  transform: translateY(-6px);
  border-color: rgba(0, 204, 106, 0.3);
  box-shadow: 0 40px 70px -40px rgba(11, 13, 12, 0.35);
}

.pricing-card--featured:hover {
  box-shadow: 0 40px 80px -30px rgba(0, 204, 106, 0.45);
}

@media (prefers-reduced-motion: reduce) {
  .hs-console,
  .hs-console__line,
  .hs-console__area,
  .hs-console__tip,
  .hs-console__mods li {
    animation: none;
    opacity: 1;
    stroke-dashoffset: 0;
  }
  .pricing-card:hover { transform: none; }
}

/* --------------------------------------------------------------------- */
/* Product "scan-reveal" split (initScanSplit in enhance.js)             */
/* --------------------------------------------------------------------- */

.scan-split {
  background: var(--color-navy-black);
  color: #fff;
  padding: var(--space-11) 0;
}

.scan-split__inner {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1.05fr);
  column-gap: 80px;
  max-width: 1200px;
}

.scan-split__text {
  min-height: 92vh;
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: var(--space-9) 0;
}

/* Blocks snap in: the active one's pieces rise into place one after
   another; inactive blocks sit back, dimmed and slightly lowered. */
.scan-split.is-ready .scan-split__text > * {
  opacity: 0.22;
  transform: translateY(16px);
  transition: opacity 0.5s ease, transform 0.7s var(--hs-ease-out);
}

.scan-split.is-ready .scan-split__text.is-active > * {
  opacity: 1;
  transform: none;
}

.scan-split.is-ready .scan-split__text.is-active > :nth-child(2) { transition-delay: 0.05s; }
.scan-split.is-ready .scan-split__text.is-active > :nth-child(3) { transition-delay: 0.1s; }
.scan-split.is-ready .scan-split__text.is-active > :nth-child(4) { transition-delay: 0.15s; }
.scan-split.is-ready .scan-split__text.is-active > :nth-child(5) { transition-delay: 0.2s; }

.scan-split__num {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: clamp(56px, 6vw, 88px);
  line-height: 1;
  letter-spacing: -0.05em;
  color: rgba(255, 255, 255, 0.16);
  margin-bottom: var(--space-6);
  transition: color 0.6s ease;
}

.scan-split__text.is-active .scan-split__num {
  color: rgba(255, 255, 255, 0.22);
}

.scan-split__text .vertical-split__title { color: #fff; margin-top: var(--space-4); }
.scan-split__text .vertical-split__desc { color: var(--white-60); }
.scan-split__text .vertical-split__list li { color: var(--white-80); }

.scan-split__inline-media {
  display: none;
}

.scan-split__frame-wrap {
  position: relative;
}

.scan-split__frame {
  position: sticky;
  top: calc(50vh - min(34vh, 300px));
  height: min(68vh, 600px);
  border-radius: 22px;
  background: #111312;
  box-shadow: 0 50px 100px -40px rgba(0, 0, 0, 0.8), 0 0 0 1px rgba(255, 255, 255, 0.07);
  overflow: hidden;
}

.scan-split__shot {
  position: absolute;
  inset: 0;
  overflow: hidden;
  clip-path: inset(100% 0 0 0 round 20px);
}

.scan-split__shot:first-child {
  clip-path: inset(0 0 0 0 round 20px);
}

.scan-split__shot img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transform-origin: 50% 100%;
  will-change: transform;
}

.scan-split__shot::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(11, 13, 12, 0.55), transparent 40%);
}

.scan-split__scanline {
  position: absolute;
  left: 0;
  right: 0;
  top: 100%;
  height: 2px;
  z-index: 3;
  opacity: 0;
  background: linear-gradient(90deg, transparent, var(--color-green-light), transparent);
  box-shadow: 0 0 22px 4px rgba(106, 234, 128, 0.55);
  transition: opacity 0.3s ease;
}

.scan-split__corner {
  position: absolute;
  z-index: 3;
  width: 22px;
  height: 22px;
  border: 2px solid var(--color-green-light);
  opacity: 0.85;
}

.scan-split__corner--tl { top: 16px; left: 16px; border-right: 0; border-bottom: 0; border-top-left-radius: 8px; }
.scan-split__corner--tr { top: 16px; right: 16px; border-left: 0; border-bottom: 0; border-top-right-radius: 8px; }
.scan-split__corner--bl { bottom: 16px; left: 16px; border-right: 0; border-top: 0; border-bottom-left-radius: 8px; }
.scan-split__corner--br { bottom: 16px; right: 16px; border-left: 0; border-top: 0; border-bottom-right-radius: 8px; }

.scan-split__hud {
  position: absolute;
  z-index: 3;
  top: 22px;
  left: 50px;
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 7px 12px;
  border-radius: var(--radius-pill);
  background: rgba(11, 13, 12, 0.6);
  border: 1px solid rgba(255, 255, 255, 0.1);
  -webkit-backdrop-filter: blur(10px);
          backdrop-filter: blur(10px);
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--white-60);
}

.scan-split__hud-count b { color: var(--color-green-light); font-weight: 500; }

.scan-split__segments {
  position: absolute;
  z-index: 3;
  left: 50px;
  right: 50px;
  bottom: 26px;
  display: flex;
  gap: 8px;
}

.scan-split__segments i {
  flex: 1;
  height: 3px;
  border-radius: 3px;
  background: rgba(255, 255, 255, 0.18);
  overflow: hidden;
}

.scan-split__segments b {
  display: block;
  height: 100%;
  background: var(--color-green-light);
  transform-origin: 0 50%;
  transform: scaleX(0);
}

.scan-split__segments i:first-child b { transform: scaleX(1); }

@media (max-width: 900px) {
  .scan-split.is-ready .scan-split__text > * { opacity: 1; transform: none; }
  .scan-split__inner { display: block; }
  .scan-split__frame-wrap { display: none; }
  .scan-split__text { min-height: 0; opacity: 1; padding: var(--space-8) 0; }
  .scan-split__inline-media {
    display: block;
    margin-top: var(--space-7);
    border-radius: var(--radius-lg);
    overflow: hidden;
    aspect-ratio: 4 / 3;
    box-shadow: 0 30px 60px -30px rgba(0, 0, 0, 0.8), 0 0 0 1px rgba(255, 255, 255, 0.07);
  }
  .scan-split__inline-media img { width: 100%; height: 100%; object-fit: cover; }
}

/* ===================================================================== */
/* Insights — Apple TV–style rails & cards (insight-rail.php)            */
/* ===================================================================== */

.tv-rail {
  --tv-gap: 22px;
  --tv-w: 250px;
  position: relative;
  margin-top: var(--space-9);
}

.tv-rail--landscape { --tv-w: 400px; }
.tv-rail--ranked { --tv-w: 230px; }

.tv-rail__head {
  margin-bottom: var(--space-4);
}

.tv-rail__title {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 22px;
  letter-spacing: -0.02em;
  color: #fff;
}

.tv-rail__title a {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  color: inherit;
}

.tv-rail__title svg {
  width: 20px;
  height: 20px;
  fill: none;
  stroke: currentColor;
  stroke-width: 2.4;
  stroke-linecap: round;
  stroke-linejoin: round;
  opacity: 0.6;
  transition: transform 0.4s var(--hs-ease-out), opacity 0.3s ease;
}

.tv-rail__title a:hover svg {
  transform: translateX(4px);
  opacity: 1;
  color: var(--color-green-light);
}

.tv-rail__viewport {
  /* Full-bleed: the row runs edge to edge of the screen, while the first
     card starts — and the last card ends — flush with the container. */
  --tv-bleed: var(--tv-bleed-px, max(0px, calc((100vw - 100%) / 2)));
  margin: calc(var(--space-6) * -1) calc(var(--tv-bleed) * -1);
  padding: var(--space-6) var(--tv-bleed);
  overflow-x: auto;
  overflow-y: hidden;
  scroll-snap-type: x proximity;
  scroll-padding-inline: var(--tv-bleed);
  scrollbar-width: none;
  overscroll-behavior-x: contain;
  cursor: grab;
}

.tv-rail__viewport.is-dragging {
  cursor: grabbing;
  scroll-snap-type: none;
}

.tv-rail__viewport.is-dragging .tv-card {
  pointer-events: none;
}

.tv-rail__viewport::-webkit-scrollbar { display: none; }

.tv-rail__track {
  display: flex;
  gap: var(--tv-gap);
  width: max-content;
}

.tv-card {
  position: relative;
  flex: 0 0 var(--tv-w);
  aspect-ratio: 2 / 3;
  border-radius: 16px;
  overflow: hidden;
  isolation: isolate;
  color: #fff;
  scroll-snap-align: start;
  background: #1a1c1b;
  box-shadow: 0 0 0 1px rgba(255, 255, 255, 0.07), 0 20px 40px -24px rgba(0, 0, 0, 0.8);
  transform: translateZ(0);
  transition: transform 0.6s var(--hs-ease-out), box-shadow 0.5s ease;
}

.tv-rail--landscape .tv-card { aspect-ratio: 16 / 10; }

.tv-card__media,
.tv-card__media img,
.tv-card__art {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
}

.tv-card__media img {
  object-fit: cover;
  transition: transform 1.2s var(--hs-ease-out), filter 0.6s ease;
}

/* No featured image: a generated "poster" on-brand. */
.tv-card__art {
  display: flex;
  align-items: flex-start;
  padding: 18px;
  background:
    radial-gradient(120% 80% at 100% 0%, rgba(0, 204, 106, 0.55), transparent 55%),
    radial-gradient(90% 70% at 0% 100%, rgba(106, 234, 128, 0.25), transparent 60%),
    linear-gradient(160deg, #1d2420, #0b0d0c);
}

.tv-card__art::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(255, 255, 255, 0.06) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.06) 1px, transparent 1px);
  background-size: 28px 28px;
  -webkit-mask-image: linear-gradient(to bottom, #000, transparent 70%);
          mask-image: linear-gradient(to bottom, #000, transparent 70%);
}

.tv-card__art span {
  position: relative;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 44px;
  line-height: 0.9;
  letter-spacing: -0.04em;
  color: rgba(255, 255, 255, 0.12);
  margin-top: 36px;
}

.tv-card__shade {
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(8, 9, 9, 0.92) 0%, rgba(8, 9, 9, 0.55) 34%, rgba(8, 9, 9, 0) 62%);
}

.tv-card__chips {
  position: absolute;
  z-index: 2;
  top: 12px;
  left: 12px;
  right: 12px;
  display: flex;
  gap: 6px;
  flex-wrap: wrap;
}

.tv-card__chip {
  display: inline-flex;
  align-items: center;
  padding: 5px 9px;
  border-radius: 8px;
  font-family: var(--font-body);
  font-weight: 600;
  font-size: 11px;
  letter-spacing: 0.01em;
  color: #fff;
  background: rgba(11, 13, 12, 0.55);
  border: 1px solid rgba(255, 255, 255, 0.14);
  -webkit-backdrop-filter: blur(10px);
          backdrop-filter: blur(10px);
}

.tv-card__chip--new {
  color: var(--color-navy-black);
  background: var(--color-green-light);
  border-color: transparent;
}

.tv-card__body {
  position: absolute;
  z-index: 2;
  left: 0;
  right: 0;
  bottom: 0;
  padding: 16px 16px 16px;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.tv-card__title {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 19px;
  line-height: 1.15;
  letter-spacing: -0.02em;
  text-wrap: balance;
  display: -webkit-box;
  -webkit-line-clamp: 4;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.tv-rail--landscape .tv-card__title { font-size: 20px; -webkit-line-clamp: 2; }

.tv-card__meta {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 12px;
  font-weight: 500;
  color: rgba(255, 255, 255, 0.7);
}

.tv-card__clock {
  width: 14px;
  height: 14px;
  fill: none;
  stroke: currentColor;
  stroke-width: 2;
  stroke-linecap: round;
}

/* Ranked ("Start here"): Apple TV "Top 10" style numbers */
.tv-card__rank {
  /* Same numeral treatment as the site's other "01" markers (AI Services,
     product scan-split, industries): Bricolage 700, tight tracking. */
  position: absolute;
  z-index: 2;
  top: 16px;
  left: 16px;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 52px;
  line-height: 1;
  letter-spacing: -0.04em;
  color: rgba(255, 255, 255, 0.92);
  text-shadow: 0 2px 18px rgba(0, 0, 0, 0.5);
}

/* Hover / focus — lift, ring, slow image zoom */
.tv-card:hover,
.tv-card:focus-visible,
.tv-card.is-focus {
  transform: translateY(-4px) scale(1.045);
  box-shadow: 0 0 0 1px rgba(255, 255, 255, 0.16), 0 40px 70px -28px rgba(0, 0, 0, 0.95);
  outline: none;
  z-index: 1;
}

.tv-card:focus-visible {
  box-shadow: 0 0 0 2px #fff, 0 40px 70px -28px rgba(0, 0, 0, 0.95);
}

.tv-card:hover .tv-card__media img,
.tv-card.is-focus .tv-card__media img {
  transform: scale(1.06);
}

/* --------------------------------------------------------------------- */
/* Home — rail inside the news-wipe panel (graphite, scroll-driven)       */
/* --------------------------------------------------------------------- */

.news-wipe__news {
  background: #121413;
  color: #fff;
}

.news-wipe__news .tag--dark { color: #fff; }
.news-wipe__news .blog__title { color: #fff; }
.news-wipe__news .blog__header { align-items: flex-end; }
.news-wipe__news .btn--outline { color: var(--white-80); }

.tv-rail--scroll {
  /* Size posters from the available panel height so the row fills the
     panel instead of leaving a band of empty space beneath it. */
  --tv-w: clamp(210px, min(22vw, calc((100vh - 340px) * 0.667)), 380px);
  margin-top: var(--space-7);
}

/* Centre the heading + rail block in the pinned panel, and let the row
   bleed past the inner container (the panel itself still clips). */
.news-wipe__news {
  align-items: center;
}

.news-wipe__news-inner {
  overflow: visible;
  max-height: none;
}

.tv-rail--scroll .tv-rail__viewport {
  overflow: visible;
  scroll-snap-type: none;
  cursor: default;
}

.tv-rail--scroll .tv-rail__track {
  will-change: transform;
}

.tv-rail--scroll .tv-card {
  transition: transform 0.7s var(--hs-ease-out), box-shadow 0.6s ease, opacity 0.6s ease, filter 0.6s ease;
}

.tv-rail--scroll .tv-card:not(.is-focus) {
  opacity: 0.62;
  filter: saturate(0.7);
}

.tv-rail--scroll .tv-card.is-focus {
  transform: scale(1.08);
}

@media (max-width: 700px) {
  .tv-rail { --tv-w: 62vw; }
  .tv-rail--landscape { --tv-w: 80vw; }
  .tv-card__title { font-size: 17px; }
}

/* --------------------------------------------------------------------- */
/* Insights page — section + spotlight banner                            */
/* --------------------------------------------------------------------- */

.tv-insights {
  background: var(--color-navy-black);
  padding: var(--space-8) 0 var(--space-11);
  overflow: hidden;
}

.tv-spotlight {
  position: relative;
  height: min(72vh, 620px);
  min-height: 460px;
  border-radius: 24px;
  overflow: hidden;
  background: #151716;
  box-shadow: 0 0 0 1px rgba(255, 255, 255, 0.07), 0 60px 100px -50px rgba(0, 0, 0, 0.9);
}

.tv-spotlight__slide {
  position: absolute;
  inset: 0;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.9s ease, visibility 0.9s;
}

.tv-spotlight__slide.is-active {
  opacity: 1;
  visibility: visible;
}

.tv-spotlight__img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transform: scale(1.08);
  transition: transform 7s linear;
}

.tv-spotlight__slide.is-active .tv-spotlight__img { transform: scale(1); }

.tv-spotlight__slide--noimg {
  background:
    radial-gradient(70% 90% at 85% 10%, rgba(0, 204, 106, 0.4), transparent 60%),
    radial-gradient(60% 60% at 10% 100%, rgba(106, 234, 128, 0.14), transparent 60%),
    linear-gradient(160deg, #1b211d, #0b0d0c);
}

.tv-spotlight__slide::after {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(90deg, rgba(8, 9, 9, 0.92) 0%, rgba(8, 9, 9, 0.6) 38%, rgba(8, 9, 9, 0) 70%),
    linear-gradient(to top, rgba(8, 9, 9, 0.8), transparent 45%);
}

.tv-spotlight__content {
  position: absolute;
  z-index: 2;
  left: clamp(24px, 5vw, 64px);
  bottom: clamp(56px, 8vh, 80px);
  max-width: 560px;
  color: #fff;
}

.tv-spotlight__slide .tv-spotlight__content > * {
  opacity: 0;
  transform: translateY(18px);
  transition: opacity 0.7s ease, transform 0.9s var(--hs-ease-out);
}

.tv-spotlight__slide.is-active .tv-spotlight__content > * { opacity: 1; transform: none; }
.tv-spotlight__slide.is-active .tv-spotlight__content > :nth-child(2) { transition-delay: 0.08s; }
.tv-spotlight__slide.is-active .tv-spotlight__content > :nth-child(3) { transition-delay: 0.16s; }
.tv-spotlight__slide.is-active .tv-spotlight__content > :nth-child(4) { transition-delay: 0.24s; }

.tv-spotlight__badges { display: flex; gap: 6px; }

.tv-spotlight__title {
  margin-top: var(--space-4);
  font-family: var(--font-display);
  font-weight: 700;
  font-size: clamp(30px, 3.6vw, 52px);
  line-height: 1.02;
  letter-spacing: -0.035em;
}

.tv-spotlight__text {
  margin-top: var(--space-4);
  font-size: var(--fs-xl);
  line-height: 1.55;
  color: rgba(255, 255, 255, 0.75);
}

.tv-spotlight__actions {
  display: flex;
  align-items: center;
  gap: var(--space-5);
  margin-top: var(--space-7);
}

.tv-spotlight__read {
  background: #fff;
  color: var(--color-navy-black);
  padding: 14px 26px;
  gap: 10px;
}

.tv-spotlight__read svg { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 2.2; stroke-linecap: round; stroke-linejoin: round; transition: transform 0.4s var(--hs-ease-out); }
.tv-spotlight__read:hover svg { transform: translateX(4px); }
.tv-spotlight__meta { font-family: var(--font-mono); font-size: var(--fs-sm); letter-spacing: 0.1em; text-transform: uppercase; color: var(--white-50); }

.tv-spotlight__nav {
  position: absolute;
  z-index: 3;
  top: 50%;
  width: 48px;
  height: 48px;
  margin-top: -24px;
  border: 0;
  background: none;
  color: rgba(255, 255, 255, 0.7);
  cursor: pointer;
  display: grid;
  place-items: center;
  opacity: 0;
  transition: opacity 0.3s ease, color 0.3s ease, transform 0.4s var(--hs-ease-out);
}

.tv-spotlight:hover .tv-spotlight__nav,
.tv-spotlight__nav:focus-visible { opacity: 1; }
.tv-spotlight__nav:hover { color: #fff; }
.tv-spotlight__nav--prev { left: 10px; }
.tv-spotlight__nav--next { right: 10px; }
.tv-spotlight__nav--prev:hover { transform: translateX(-3px); }
.tv-spotlight__nav--next:hover { transform: translateX(3px); }
.tv-spotlight__nav svg { width: 30px; height: 30px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }

.tv-spotlight__dots {
  position: absolute;
  z-index: 3;
  left: 50%;
  bottom: 24px;
  transform: translateX(-50%);
  display: flex;
  gap: 8px;
}

.tv-spotlight__dot {
  position: relative;
  width: 8px;
  height: 8px;
  padding: 0;
  border: 0;
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.35);
  overflow: hidden;
  cursor: pointer;
  transition: width 0.5s var(--hs-ease-out), background-color 0.3s ease;
}

.tv-spotlight__dot.is-active { width: 34px; background: rgba(255, 255, 255, 0.25); }

.tv-spotlight__dot i {
  position: absolute;
  inset: 0;
  background: #fff;
  transform-origin: 0 50%;
  transform: scaleX(0);
}

.tv-spotlight__dot.is-active i { animation: hs-dot-fill var(--dur, 6500ms) linear forwards; }
.tv-spotlight.is-paused .tv-spotlight__dot.is-active i { animation-play-state: paused; }

@keyframes hs-dot-fill { to { transform: scaleX(1); } }

@media (max-width: 700px) {
  .tv-spotlight { height: 78vh; min-height: 520px; border-radius: 18px; }
  .tv-spotlight__slide::after { background: linear-gradient(to top, rgba(8, 9, 9, 0.95) 0%, rgba(8, 9, 9, 0.6) 50%, rgba(8, 9, 9, 0.1) 100%); }
  .tv-spotlight__text { font-size: var(--fs-lg); }
}

@media (prefers-reduced-motion: reduce) {
  .tv-card, .tv-card__media img, .tv-spotlight__img, .tv-spotlight__slide .tv-spotlight__content > * { transition: none; }
  .tv-spotlight__img { transform: none; }
}

/* --------------------------------------------------------------------- */
/* Home "Our services" — spaced stack + green active card                 */
/* --------------------------------------------------------------------- */

/* Cards end 56px short of the stage so the next card's peek sits below a
   clear gap instead of overlapping the current card's bottom edge. */
.service-list .service-item {
  bottom: 56px;
  transform-origin: 50% 0;
  transition: border-color 0.6s ease, box-shadow 0.6s ease, background-color 0.6s ease;
}

.service-item__title,
.service-item::after {
  transition: color 0.6s ease;
}

.service-item.is-active {
  border-color: rgba(106, 234, 128, 0.22);
  box-shadow: 0 40px 70px -35px rgba(0, 0, 0, 0.8), inset 0 1px 0 rgba(106, 234, 128, 0.18), 0 0 60px -30px rgba(0, 204, 106, 0.35);
}

.service-item.is-active .service-item__title {
  color: var(--color-green-light);
}

.service-item.is-active::after {
  color: var(--color-green-light);
}

.service-list {
  height: 400px;
}

@media (max-width: 900px) {
  .service-list { height: 430px; }
  .service-list .service-item { bottom: 44px; }
}

/* --------------------------------------------------------------------- */
/* Home "Our projects" — scan-reveal HUD (built by sequences.js)          */
/* --------------------------------------------------------------------- */

.work-stack.is-scrub .work-card {
  transition: none;
  transform: none;
}

.work-stack.is-scrub .work-card__image {
  transition: none;
  transform-origin: 50% 100%;
  will-change: transform;
}

.work-hud {
  position: absolute;
  inset: 0;
  z-index: 20;
  pointer-events: none;
}

.work-hud__scan {
  position: absolute;
  left: 0;
  right: 0;
  top: 100%;
  height: 2px;
  opacity: 0;
  background: linear-gradient(90deg, transparent, var(--color-green-light), transparent);
  box-shadow: 0 0 22px 4px rgba(106, 234, 128, 0.55);
  transition: opacity 0.3s ease;
}

.work-hud__corner {
  position: absolute;
  width: 22px;
  height: 22px;
  border: 2px solid var(--color-green-light);
  opacity: 0.85;
}

.work-hud__corner--tl { top: 16px; left: 16px; border-right: 0; border-bottom: 0; border-top-left-radius: 8px; }
.work-hud__corner--tr { top: 16px; right: 16px; border-left: 0; border-bottom: 0; border-top-right-radius: 8px; }
.work-hud__corner--bl { bottom: 16px; left: 16px; border-right: 0; border-top: 0; border-bottom-left-radius: 8px; }
.work-hud__corner--br { bottom: 16px; right: 16px; border-left: 0; border-top: 0; border-bottom-right-radius: 8px; }

.work-hud__chip {
  position: absolute;
  top: 22px;
  left: 50px;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 7px 12px;
  border-radius: var(--radius-pill);
  background: rgba(11, 13, 12, 0.6);
  border: 1px solid rgba(255, 255, 255, 0.1);
  -webkit-backdrop-filter: blur(10px);
          backdrop-filter: blur(10px);
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--white-60);
}

.work-hud__chip b { color: var(--color-green-light); font-weight: 500; }
.work-hud__chip span { margin-left: 8px; color: var(--white-80); }

.work-hud__segs {
  position: absolute;
  top: 30px;
  right: 50px;
  display: flex;
  gap: 5px;
  width: 120px;
}

.work-hud__segs i {
  flex: 1;
  height: 3px;
  border-radius: 3px;
  background: rgba(255, 255, 255, 0.2);
  overflow: hidden;
}

.work-hud__segs b {
  display: block;
  height: 100%;
  background: var(--color-green-light);
  transform-origin: 0 50%;
  transform: scaleX(0);
}

.work-hud__segs i:first-child b { transform: scaleX(1); }

/* Project list: the active entry lights up green. */
.work__list-item {
  transition: color 0.4s ease;
}

.work__list-item.is-active .work__list-item-name {
  color: var(--color-green-light);
}

.work__list-item-name {
  transition: color 0.4s ease, transform 0.5s var(--hs-ease-out);
}

.work__list-item.is-active .work__list-item-name {
  transform: translateX(6px);
}

/* ===================================================================== */
/* Industries — "Industry scanner" (initIndustryScan in enhance.js)      */
/* ===================================================================== */

.ind-scan {
  background: var(--color-navy-black);
  color: #fff;
}

.ind-scan__stage {
  position: sticky;
  top: 0;
  height: 100vh;
  min-height: 720px;
  display: flex;
  align-items: center;
  box-sizing: border-box;
}

/* Same composition as the home "Our projects" block: 300px nav column
   with a hairline divider, 48px gap, a 640px stage, container width. */
.ind-scan__grid {
  display: grid;
  grid-template-columns: 300px minmax(0, 1fr);
  gap: var(--space-9);
  width: 100%;
  max-width: var(--container-width);
  margin: 0 auto;
  padding: 0 var(--space-8);
  height: 640px;
  margin-top: calc(var(--nav-height) / 2);
}

.ind-scan__index {
  display: flex;
  flex-direction: column;
  height: 640px;
  padding-right: var(--space-6);
  border-right: 1px solid var(--white-07);
}

.ind-scan__index ul {
  flex: 1 1 auto;
}

.ind-scan__index li {
  list-style: none;
}

.ind-scan__index-btn {
  background: none;
  border: 0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.05);
  font: inherit;
  text-align: left;
  cursor: pointer;
}

.ind-scan__index-btn:hover { opacity: 0.7; }
.ind-scan__index-btn.is-active:hover { opacity: 1; }

/* Frame */
.ind-scan__frame {
  position: relative;
  height: 640px;
  border-radius: var(--radius-lg);
  overflow: hidden;
  background: #111312;
  box-shadow: 0 60px 110px -50px rgba(0, 0, 0, 0.9), 0 0 0 1px rgba(255, 255, 255, 0.07);
}

.ind-scan__shot {
  position: absolute;
  inset: 0;
  overflow: hidden;
  clip-path: inset(100% 0 0 0 round 24px);
}

.ind-scan__shot:first-child { clip-path: inset(0 0 0 0 round 24px); }

.ind-scan__shot img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transform-origin: 50% 100%;
  will-change: transform;
}

.ind-scan__shot::after {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(90deg, rgba(8, 9, 9, 0.88) 0%, rgba(8, 9, 9, 0.55) 45%, rgba(8, 9, 9, 0.1) 80%),
    linear-gradient(to top, rgba(8, 9, 9, 0.6), transparent 50%);
}

.ind-scan__scan {
  position: absolute;
  z-index: 4;
  left: 0;
  right: 0;
  top: 100%;
  height: 2px;
  opacity: 0;
  background: linear-gradient(90deg, transparent, var(--color-green-light), transparent);
  box-shadow: 0 0 22px 4px rgba(106, 234, 128, 0.55);
  transition: opacity 0.3s ease;
}

.ind-scan__frame .work-hud__corner { z-index: 4; }
.ind-scan__chip { z-index: 4; }

/* Info panels — stacked, one active */
.ind-scan__panels {
  position: absolute;
  z-index: 3;
  left: 48px;
  right: 48px;
  bottom: 44px;
}

.ind-scan__panel {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  pointer-events: none;
}

.ind-scan__panel.is-active { pointer-events: auto; }
.ind-scan__panel-media { display: none; }

.ind-scan__panel-body > * {
  opacity: 0;
  transform: translateY(18px);
  transition: opacity 0.45s ease, transform 0.7s var(--hs-ease-out);
}

.ind-scan__panel.is-active .ind-scan__panel-body > * { opacity: 1; transform: none; }
.ind-scan__panel.is-active .ind-scan__panel-body > :nth-child(2) { transition-delay: 0.05s; }
.ind-scan__panel.is-active .ind-scan__panel-body > :nth-child(3) { transition-delay: 0.1s; }
.ind-scan__panel.is-active .ind-scan__panel-body > :nth-child(4) { transition-delay: 0.15s; }
.ind-scan__panel.is-active .ind-scan__panel-body > :nth-child(5) { transition-delay: 0.2s; }
.ind-scan__panel.is-active .ind-scan__panel-body > :nth-child(6) { transition-delay: 0.25s; }
.ind-scan__panel.is-active .ind-scan__panel-body > :nth-child(7) { transition-delay: 0.3s; }

.ind-scan__panel-num {
  display: block;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: clamp(40px, 5vw, 72px);
  line-height: 1;
  letter-spacing: -0.04em;
  color: rgba(255, 255, 255, 0.22);
}

.ind-scan__panel-code {
  margin-top: var(--space-4);
  font-family: var(--font-mono);
  font-size: var(--fs-sm);
  letter-spacing: 0.14em;
  color: var(--color-green-light);
}

.ind-scan__panel-title {
  margin-top: var(--space-2);
  font-family: var(--font-display);
  font-weight: 700;
  font-size: clamp(28px, 3vw, 40px);
  line-height: 1.1;
  letter-spacing: -0.03em;
}

.ind-scan__panel-desc {
  margin-top: var(--space-4);
  font-size: var(--fs-lg);
  line-height: 1.6;
  color: rgba(255, 255, 255, 0.75);
  max-width: 46ch;
}

.ind-scan__panel-label {
  margin-top: var(--space-6);
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--white-50);
}

.ind-scan__pills {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: var(--space-3);
}

.ind-scan__pills span {
  padding: 8px 13px;
  border-radius: var(--radius-pill);
  font-size: var(--fs-sm);
  color: #fff;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.14);
  -webkit-backdrop-filter: blur(10px);
          backdrop-filter: blur(10px);
}

.ind-scan__link {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-top: var(--space-6);
  font-weight: 600;
  font-size: var(--fs-md);
  color: var(--color-green-light);
}

.ind-scan__link svg { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; transition: transform 0.4s var(--hs-ease-out); }
.ind-scan__link:hover svg { transform: translateX(4px); }

/* Mobile: no pin — each sector is a full card (image + all info). */
@media (max-width: 900px) {
  .ind-scan__stage { position: static; height: auto; min-height: 0; padding: var(--space-9) 0; display: block; }
  .ind-scan__grid { display: block; height: auto; margin-top: 0; padding: 0 var(--space-5); }
  .ind-scan__index { height: auto; border-right: 0; padding-right: 0; margin-bottom: var(--space-7); }
  .ind-scan__index .work__list { display: none; }
  .ind-scan__frame { height: auto !important; overflow: visible; background: none; box-shadow: none; border-radius: 0; }
  .ind-scan__shot, .ind-scan__scan, .ind-scan__frame > .work-hud__corner, .ind-scan__chip { display: none; }
  .ind-scan__panels { position: static; width: auto; }
  .ind-scan__panel { position: relative; pointer-events: auto; margin-bottom: var(--space-7); border-radius: var(--radius-lg); overflow: hidden; background: #141615; box-shadow: 0 0 0 1px rgba(255, 255, 255, 0.07); }
  .ind-scan__panel-media { display: block; aspect-ratio: 16 / 10; }
  .ind-scan__panel-media img { width: 100%; height: 100%; object-fit: cover; }
  .ind-scan__panel-body { padding: var(--space-6); }
  .ind-scan__panel-body > * { opacity: 1; transform: none; }
  .ind-scan__panel-num { font-size: 44px; }
}

/* --------------------------------------------------------------------- */
/* Industries — "Not listed?" (light, sector marquees)                    */
/* --------------------------------------------------------------------- */

.sector-more {
  position: relative;
  overflow: hidden;
  background: var(--color-off-white);
  color: var(--text-dark);
  padding: var(--space-12) 0;
}

.sector-more::before {
  /* faint engineering grid, fading out toward the edges */
  content: "";
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(11, 13, 12, 0.05) 1px, transparent 1px),
    linear-gradient(90deg, rgba(11, 13, 12, 0.05) 1px, transparent 1px);
  background-size: 56px 56px;
  -webkit-mask-image: radial-gradient(70% 70% at 50% 50%, #000, transparent);
          mask-image: radial-gradient(70% 70% at 50% 50%, #000, transparent);
  pointer-events: none;
}

.sector-more__rows {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  padding: 44px 0;
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 18%, #000 82%, transparent);
          mask-image: linear-gradient(90deg, transparent, #000 18%, #000 82%, transparent);
}

.sector-more__row { overflow: hidden; }

.sector-more__track {
  display: flex;
  width: max-content;
  animation: hs-marquee 44s linear infinite;
  will-change: transform;
}

.sector-more__row--b .sector-more__track {
  animation-direction: reverse;
  animation-duration: 40s;
}

/* Track = 4 identical copies; moving by exactly one copy (-25%) with the
   spacing built into each pill (margin, not flex gap) makes the loop
   point invisible — no gaps, no jump. */
@keyframes hs-marquee {
  from { transform: translate3d(0, 0, 0); }
  to { transform: translate3d(-25%, 0, 0); }
}

.sector-more__pill {
  margin-right: 12px;
  flex-shrink: 0;
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 12px 20px;
  border-radius: var(--radius-pill);
  background: #fff;
  border: 1px solid rgba(11, 13, 12, 0.08);
  box-shadow: 0 10px 30px -20px rgba(11, 13, 12, 0.35);
  font-family: var(--font-display);
  font-weight: 600;
  font-size: var(--fs-lg);
  color: rgba(11, 13, 12, 0.72);
  white-space: nowrap;
}

.sector-more__pill i {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--color-green);
  opacity: 0.8;
}

.sector-more__content {
  position: relative;
  z-index: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  padding-block: var(--space-11);
}

.sector-more__content::before {
  /* soft halo so the copy reads cleanly over the moving pills */
  content: "";
  position: absolute;
  z-index: -1;
  left: 50%;
  top: 50%;
  width: min(900px, 100%);
  height: 130%;
  transform: translate(-50%, -50%);
  background: radial-gradient(closest-side, var(--color-off-white) 55%, rgba(247, 246, 243, 0));
}

.sector-more__title {
  margin-top: var(--space-5);
  font-family: var(--font-display);
  font-weight: 700;
  font-size: clamp(34px, 4.4vw, 60px);
  line-height: 1.04;
  letter-spacing: -0.035em;
  max-width: 16ch;
}

.sector-more__title span { color: rgba(11, 13, 12, 0.42); }

.sector-more__text {
  margin: var(--space-5) auto 0;
  max-width: 52ch;
  font-size: var(--fs-xl);
  line-height: 1.6;
  color: rgba(11, 13, 12, 0.62);
}

.sector-more__content .btn { margin-top: var(--space-8); }

@media (max-width: 700px) {
  .sector-more { padding: var(--space-11) 0; }
  .sector-more__pill { font-size: var(--fs-md); padding: 10px 16px; }
}

@media (prefers-reduced-motion: reduce) {
  .sector-more__track { animation: none; }
}

/* Scan-split (desktop): pinned text stage — blocks swap in place, driven
   frame-by-frame by initScanSplit (no CSS transitions, so nothing lags). */
.scan-split.is-stacked .scan-split__texts {
  position: relative;
}

/* Absolute wrapper spanning the column: the sticky stage inside it can
   never overrun the section (no negative-margin sticky tricks). */
.scan-split__textpin {
  position: absolute;
  inset: 0;
  z-index: 1;
}

.scan-split__textstage {
  position: sticky;
  top: calc(50vh - min(34vh, 300px));
  height: min(68vh, 600px);
}

.scan-split.is-stacked .scan-split__textstage .scan-split__text {
  position: absolute;
  inset: 0;
  min-height: 0;
  padding: 0;
  justify-content: center;
}

.scan-split.is-stacked .scan-split__text > *,
.scan-split.is-stacked .scan-split__text .vertical-split__list li {
  transition: none !important;
  will-change: transform, opacity, filter;
}

.scan-split.is-stacked .scan-split__text .scan-split__num {
  color: rgba(255, 255, 255, 0.22);
}

.scan-split__spacer {
  height: 92vh;
}

/* While a trackpad swipe drives a rail, snapping waits until it ends. */
.tv-rail__viewport.is-wheeling {
  scroll-snap-type: none;
}

/* ===================================================================== */
/* Native meeting booking (template-parts/components/booking.php)        */
/* ===================================================================== */

.booking {
  background: var(--color-navy-black);
  color: #fff;
  padding: var(--space-11) 0;
}

.booking__head { margin-bottom: var(--space-8); }

.booking__card {
  position: relative;
  display: grid;
  grid-template-columns: 320px minmax(0, 1fr);
  border-radius: 24px;
  overflow: hidden;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.05), rgba(255, 255, 255, 0.02));
  border: 1px solid rgba(255, 255, 255, 0.08);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.06), 0 60px 100px -50px rgba(0, 0, 0, 0.9);
  min-height: 520px;
}

.booking__card::before {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background: radial-gradient(600px circle at 0% 0%, rgba(0, 204, 106, 0.12), transparent 60%);
}

/* Left: meeting info */
.booking__info {
  position: relative;
  padding: var(--space-8);
  border-right: 1px solid rgba(255, 255, 255, 0.07);
  display: flex;
  flex-direction: column;
}

.booking__mark {
  display: grid;
  place-items: center;
  width: 52px;
  height: 52px;
  border-radius: 14px;
  background: rgba(106, 234, 128, 0.1);
  border: 1px solid rgba(106, 234, 128, 0.25);
}

.booking__mark img { width: 20px; height: auto; aspect-ratio: 9.43 / 12; }

.booking__host {
  margin-top: var(--space-5);
  font-family: var(--font-mono);
  font-size: var(--fs-sm);
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--white-50);
}

.booking__title {
  margin-top: var(--space-2);
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 26px;
  line-height: 1.15;
  letter-spacing: -0.02em;
}

.booking__facts {
  margin-top: var(--space-6);
  display: flex;
  flex-direction: column;
  gap: var(--space-3);
  font-size: var(--fs-md);
  color: var(--white-80);
}

.booking__facts li { display: flex; align-items: center; gap: 10px; }

.booking__facts svg,
.booking__nav svg,
.booking__back svg,
.booking__done-icon svg {
  width: 18px;
  height: 18px;
  flex-shrink: 0;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.booking__facts svg { color: var(--color-green-light); }

.booking__note {
  margin-top: var(--space-6);
  font-size: var(--fs-md);
  line-height: 1.6;
  color: var(--white-50);
}

.booking__picked {
  margin-top: auto;
  padding: var(--space-4) var(--space-5);
  border-radius: 14px;
  background: rgba(106, 234, 128, 0.1);
  border: 1px solid rgba(106, 234, 128, 0.28);
  animation: hs-mod-in 0.5s var(--hs-ease-out) both;
}

.booking__picked-label {
  display: block;
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--color-green-light);
}

.booking__picked-when { display: block; margin-top: 4px; font-weight: 600; }

/* Right: steps */
.booking__main { position: relative; padding: var(--space-8); }

.booking__step {
  display: none;
}

.booking__step.is-active {
  display: grid;
  animation: hs-step-in 0.55s var(--hs-ease-out) both;
}

@keyframes hs-step-in {
  from { opacity: 0; transform: translateY(14px); filter: blur(4px); }
}

.booking__step[data-step="pick"].is-active {
  grid-template-columns: minmax(0, 1.15fr) minmax(0, 1fr);
  gap: var(--space-8);
}

/* Month */
.booking__cal-head { display: flex; align-items: center; justify-content: space-between; }
.booking__month { font-family: var(--font-display); font-weight: 600; font-size: 20px; letter-spacing: -0.01em; }
.booking__cal-nav { display: flex; gap: 6px; }

.booking__nav {
  display: grid;
  place-items: center;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  border: 1px solid rgba(255, 255, 255, 0.12);
  background: rgba(255, 255, 255, 0.04);
  color: #fff;
  cursor: pointer;
  transition: background-color 0.3s ease, border-color 0.3s ease, opacity 0.3s ease;
}

.booking__nav:hover:not(:disabled) { background: rgba(255, 255, 255, 0.1); border-color: rgba(255, 255, 255, 0.25); }
.booking__nav:disabled { opacity: 0.3; cursor: default; }

.booking__dow,
.booking__days {
  display: grid;
  grid-template-columns: repeat(7, 1fr);
  gap: 6px;
}

.booking__dow {
  margin-top: var(--space-6);
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--white-40);
  text-align: center;
}

.booking__days { margin-top: var(--space-3); }

.booking__day {
  aspect-ratio: 1;
  display: grid;
  place-items: center;
  border-radius: 12px;
  font-family: var(--font-body);
  font-size: var(--fs-md);
  font-variant-numeric: tabular-nums;
  color: var(--white-26);
  border: 1px solid transparent;
  background: none;
}

.booking__day.is-pad { visibility: hidden; }

.booking__day.is-open {
  color: #fff;
  font-weight: 600;
  background: rgba(255, 255, 255, 0.05);
  border-color: rgba(255, 255, 255, 0.08);
  cursor: pointer;
  position: relative;
  transition: background-color 0.25s ease, border-color 0.25s ease, color 0.25s ease, transform 0.4s var(--hs-ease-out);
}

.booking__day.is-open::after {
  content: "";
  position: absolute;
  bottom: 6px;
  width: 4px;
  height: 4px;
  border-radius: 50%;
  background: var(--color-green-light);
}

.booking__day.is-open:hover { border-color: rgba(106, 234, 128, 0.45); background: rgba(106, 234, 128, 0.08); }

.booking__day.is-selected,
.booking__day.is-selected:hover {
  background: var(--color-green-light);
  border-color: var(--color-green-light);
  color: var(--color-navy-black);
  box-shadow: 0 10px 30px -10px rgba(106, 234, 128, 0.7);
}

.booking__day.is-selected::after { background: var(--color-navy-black); }
.booking__day.is-today:not(.is-selected) { box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.3); }

/* Slots */
.booking__slots { display: flex; flex-direction: column; min-width: 0; }
.booking__slots-day { font-family: var(--font-display); font-weight: 600; font-size: 18px; min-height: 36px; display: flex; align-items: center; }

.booking__slot-list {
  margin-top: var(--space-4);
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 10px;
  align-content: start;
  max-height: 360px;
  overflow-y: auto;
  padding-right: 4px;
  scrollbar-width: thin;
}

.booking__slot {
  padding: 14px 10px;
  border-radius: 12px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  background: rgba(255, 255, 255, 0.03);
  color: #fff;
  font-family: var(--font-body);
  font-weight: 600;
  font-size: var(--fs-md);
  font-variant-numeric: tabular-nums;
  cursor: pointer;
  transition: background-color 0.25s ease, border-color 0.25s ease, color 0.25s ease, box-shadow 0.4s var(--hs-ease-out);
}

.booking__slot-list.is-in .booking__slot {
  animation: hs-mod-in 0.45s var(--hs-ease-out) both;
  animation-delay: calc(var(--i, 0) * 30ms);
}

.booking__slot:hover {
  border-color: var(--color-green-light);
  background: var(--color-green-light);
  color: var(--color-navy-black);
  box-shadow: 0 12px 30px -12px rgba(106, 234, 128, 0.7);
}

/* Loading shimmer */
.booking__card.is-loading .booking__days,
.booking__card.is-loading .booking__slot-list {
  min-height: 220px;
  border-radius: 14px;
  background: linear-gradient(100deg, rgba(255, 255, 255, 0.03) 30%, rgba(255, 255, 255, 0.08) 50%, rgba(255, 255, 255, 0.03) 70%) 0 0 / 300% 100%;
  animation: hs-shimmer 1.4s linear infinite;
}

@keyframes hs-shimmer { to { background-position: -150% 0; } }

/* Details form */
.booking__form { max-width: 620px; align-content: start; }
.booking__back {
  justify-self: start;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 0;
  border: 0;
  background: none;
  color: var(--white-60);
  font: inherit;
  font-size: var(--fs-md);
  cursor: pointer;
}
.booking__back:hover { color: #fff; }
.booking__form-title { margin-top: var(--space-5); font-family: var(--font-display); font-weight: 700; font-size: 26px; letter-spacing: -0.02em; }
.booking__fields { margin-top: var(--space-6); display: grid; grid-template-columns: 1fr 1fr; gap: var(--space-4); }
.booking__full { grid-column: 1 / -1; }
.booking__error { margin-top: var(--space-4); color: #ff8b8b; font-size: var(--fs-md); }
.booking__submit { margin-top: var(--space-6); justify-self: start; }
.booking__card.is-busy .booking__submit { opacity: 0.6; pointer-events: none; }

/* Done */
.booking__done { align-content: center; justify-items: start; min-height: 360px; outline: none; }
.booking__done-icon {
  display: grid;
  place-items: center;
  width: 64px;
  height: 64px;
  border-radius: 50%;
  background: var(--color-green-light);
  color: var(--color-navy-black);
  box-shadow: 0 0 0 10px rgba(106, 234, 128, 0.12), 0 20px 50px -10px rgba(106, 234, 128, 0.6);
}
.booking__done-icon svg { width: 30px; height: 30px; stroke-width: 2.4; stroke-dasharray: 30; stroke-dashoffset: 30; animation: hs-draw 0.6s 0.2s var(--hs-ease-out) forwards; }
.booking__done-title { margin-top: var(--space-6); font-family: var(--font-display); font-weight: 700; font-size: clamp(28px, 3vw, 40px); letter-spacing: -0.03em; }
.booking__done-when { margin-top: var(--space-3); font-size: var(--fs-xl); color: var(--color-green-light); font-weight: 600; }
.booking__done-text { margin-top: var(--space-3); color: var(--white-60); max-width: 48ch; line-height: 1.6; }
.booking__done-actions { margin-top: var(--space-7); display: flex; flex-wrap: wrap; gap: var(--space-3); }

@media (max-width: 1000px) {
  .booking__card { grid-template-columns: 1fr; }
  .booking__info { border-right: 0; border-bottom: 1px solid rgba(255, 255, 255, 0.07); padding: var(--space-6); }
  .booking__note { display: none; }
  .booking__picked { margin-top: var(--space-5); }
  .booking__main { padding: var(--space-6); }
}

@media (max-width: 700px) {
  .booking__step[data-step="pick"].is-active { grid-template-columns: 1fr; gap: var(--space-6); }
  .booking__slot-list { grid-template-columns: repeat(3, 1fr); max-height: none; }
  .booking__fields { grid-template-columns: 1fr; }
  .booking__day { border-radius: 10px; }
}

@media (max-width: 420px) {
  .booking__slot-list { grid-template-columns: repeat(2, 1fr); }
}

@media (prefers-reduced-motion: reduce) {
  .booking__step.is-active, .booking__slot, .booking__picked { animation: none !important; }
}

.booking [hidden] { display: none !important; }

/* ===================================================================== */
/* Contact — "Ask us anything" split card                                */
/* ===================================================================== */

.contact-form-section .cf-split {
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.25fr);
  max-width: 1180px;
  margin: 0 auto;
  padding: 0;
  overflow: hidden;
  border-radius: 28px;
  background: #0f1110;
  border: 1px solid rgba(255, 255, 255, 0.07);
  box-shadow: 0 1px 0 rgba(255, 255, 255, 0.05) inset, 0 60px 120px -60px rgba(11, 13, 12, 0.7);
}

.cf-split__intro {
  position: relative;
  display: flex;
  flex-direction: column;
  padding: 56px 48px;
  color: #fff;
  background:
    radial-gradient(520px circle at 0% 0%, rgba(0, 204, 106, 0.22), transparent 60%),
    radial-gradient(420px circle at 100% 100%, rgba(106, 234, 128, 0.08), transparent 60%),
    #0b0d0c;
  border-right: 1px solid rgba(255, 255, 255, 0.07);
  isolation: isolate;
}

.cf-split__intro::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background-image:
    linear-gradient(rgba(255, 255, 255, 0.045) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.045) 1px, transparent 1px);
  background-size: 44px 44px;
  -webkit-mask-image: linear-gradient(160deg, #000 10%, transparent 70%);
          mask-image: linear-gradient(160deg, #000 10%, transparent 70%);
}

.cf-split__intro .contact-form-card__title {
  margin-top: var(--space-5);
  font-family: var(--font-display);
  font-weight: 700;
  font-size: clamp(32px, 3.4vw, 46px);
  line-height: 1.05;
  letter-spacing: -0.035em;
  color: #fff;
}

.cf-split__intro .contact-form-card__subtitle {
  margin-top: var(--space-4);
  font-size: var(--fs-xl);
  line-height: 1.6;
  color: var(--white-60);
  max-width: 38ch;
}

.cf-split__steps {
  list-style: none;
  margin: var(--space-9) 0 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: var(--space-5);
}

.cf-split__steps li {
  display: grid;
  grid-template-columns: 40px 1fr;
  gap: var(--space-4);
  position: relative;
}

.cf-split__steps li:not(:last-child)::after {
  content: "";
  position: absolute;
  left: 19px;
  top: 38px;
  bottom: calc(-1 * var(--space-5) + 2px);
  width: 1px;
  background: linear-gradient(rgba(106, 234, 128, 0.45), rgba(106, 234, 128, 0.05));
}

.cf-split__steps span {
  display: grid;
  place-items: center;
  width: 38px;
  height: 38px;
  border-radius: 12px;
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.08em;
  color: var(--color-green-light);
  background: rgba(106, 234, 128, 0.08);
  border: 1px solid rgba(106, 234, 128, 0.22);
}

.cf-split__steps strong {
  display: block;
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 17px;
  letter-spacing: -0.01em;
  margin-top: 8px;
}

.cf-split__steps p {
  margin-top: 4px;
  font-size: var(--fs-md);
  line-height: 1.55;
  color: var(--white-50);
}

.cf-split__foot {
  margin-top: auto;
  padding-top: var(--space-9);
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: var(--space-3);
}

.cf-split__badge {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 8px 14px;
  border-radius: var(--radius-pill);
  font-size: var(--fs-sm);
  font-weight: 600;
  color: #fff;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.1);
}

.cf-split__badge i {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--color-green-light);
  animation: hs-ping 2.2s var(--hs-ease-out) infinite;
}

.cf-split__link {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 18px;
  color: #fff;
  background-image: linear-gradient(var(--color-green-light), var(--color-green-light));
  background-repeat: no-repeat;
  background-position: 0 100%;
  background-size: 0% 1px;
  transition: background-size 0.45s var(--hs-ease-out), color 0.2s ease;
}

.cf-split__link:hover { color: var(--color-green-light); background-size: 100% 1px; }

/* Right: form */
.cf-split__form {
  padding: 56px 52px;
  background: #121413;
}

.cf-split__form .hs-form {
  display: grid;
  grid-template-columns: 1fr 1fr;
  column-gap: var(--space-4);
  row-gap: var(--space-5);
  align-content: start;
}

.cf-split__form .hs-form > * { grid-column: 1 / -1; }
.cf-split__form .hs-form > .form-field:has([name="name"]),
.cf-split__form .hs-form > .form-field:has([name="email"]) { grid-column: auto; }

/* Segmented toggle with sliding indicator */
.cf-split__form .form-tabs {
  position: relative;
  display: grid;
  grid-template-columns: 1fr 1fr;
  justify-self: start;
  width: min(100%, 380px);
  padding: 5px;
  margin-bottom: var(--space-3);
  border-radius: var(--radius-pill);
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.08);
}

.cf-split__form .form-tabs::before {
  content: "";
  position: absolute;
  top: 5px;
  bottom: 5px;
  left: 5px;
  width: calc(50% - 5px);
  border-radius: var(--radius-pill);
  background: var(--color-green-light);
  box-shadow: 0 8px 24px -8px rgba(106, 234, 128, 0.7);
  transition: transform 0.5s var(--hs-ease-out);
}

.cf-split__form .form-tabs:has(.form-tabs__tab:nth-child(2).is-active)::before { transform: translateX(100%); }

.cf-split__form .form-tabs__tab {
  position: relative;
  z-index: 1;
  background: none !important;
  box-shadow: none !important;
  border: 0;
  padding: 11px 14px;
  font-weight: 600;
  font-size: var(--fs-md);
  color: var(--white-60);
  transition: color 0.35s ease;
}

.cf-split__form .form-tabs__tab.is-active { color: var(--color-navy-black); }
.cf-split__form .form-tabs__tab:not(.is-active):hover { color: #fff; }

/* Fields */
.cf-split__form .form-field { margin: 0; }

.cf-split__form .form-field__label {
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.14em;
  color: var(--white-50);
  transition: color 0.3s ease;
}

.cf-split__form .form-field:focus-within .form-field__label { color: var(--color-green-light); }

.cf-split__form .form-field__input {
  background: rgba(255, 255, 255, 0.035);
  border: 1px solid rgba(255, 255, 255, 0.09);
  border-radius: 14px;
  padding: 16px 18px;
  font-size: var(--fs-lg);
  color: #fff;
  transition: border-color 0.3s ease, background-color 0.3s ease, box-shadow 0.4s var(--hs-ease-out);
}

.cf-split__form .form-field__input:hover { border-color: rgba(255, 255, 255, 0.18); }

.cf-split__form .form-field__input:focus {
  outline: none;
  background: rgba(106, 234, 128, 0.04);
  border-color: rgba(106, 234, 128, 0.6);
  box-shadow: 0 0 0 4px rgba(106, 234, 128, 0.12);
}

.cf-split__form .form-field__textarea { min-height: 140px; resize: vertical; }

.cf-split__form .contact-form__submit {
  justify-self: start;
  width: auto;
  min-width: 220px;
  margin-top: var(--space-3);
  padding: 17px 34px;
}

.cf-split__form .hs-form__success {
  padding: var(--space-8);
  border-radius: 18px;
  background: rgba(106, 234, 128, 0.08);
  border: 1px solid rgba(106, 234, 128, 0.25);
  text-align: left;
}

@media (max-width: 960px) {
  .contact-form-section .cf-split { grid-template-columns: 1fr; border-radius: 22px; }
  .cf-split__intro { padding: 40px 28px; border-right: 0; border-bottom: 1px solid rgba(255, 255, 255, 0.07); }
  .cf-split__steps { margin-top: var(--space-7); }
  .cf-split__foot { padding-top: var(--space-7); }
  .cf-split__form { padding: 36px 24px 32px; }
}

@media (max-width: 600px) {
  .cf-split__form .hs-form { grid-template-columns: 1fr; }
  .cf-split__form .hs-form > .form-field:has([name="name"]),
  .cf-split__form .hs-form > .form-field:has([name="email"]) { grid-column: 1 / -1; }
  .cf-split__form .form-tabs { width: 100%; }
  .cf-split__form .contact-form__submit { width: 100%; }
}

/* Content revealed instantly on a view-transition arrival (see enhance.js). */
.reveal.hs-instant > *,
.stagger-item.hs-instant,
.hs-instant {
  transition: none !important;
  animation: none !important;
  opacity: 1 !important;
  transform: none !important;
  filter: none !important;
}

/* ===================================================================== */
/* Mobile menu — full-screen overlay (≤640px)                            */
/* ===================================================================== */

@media (max-width: 640px) {
  html.hs-nav-open,
  html.hs-nav-open body { overflow: hidden; }

  /* Burger: two lines → X inside a round button */
  .site-header__burger {
    position: relative;
    width: 44px;
    height: 44px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.07);
    border: 1px solid rgba(255, 255, 255, 0.12);
    gap: 0;
    transition: background-color 0.3s ease, border-color 0.3s ease;
  }

  .site-header__burger span {
    position: absolute;
    left: 50%;
    top: 50%;
    width: 18px;
    height: 2px;
    margin-left: -9px;
    transition: transform 0.5s var(--hs-ease-out), background-color 0.3s ease, width 0.4s var(--hs-ease-out);
  }

  .site-header__burger span:nth-child(1) { transform: translateY(-4px); }
  .site-header__burger span:nth-child(2) { display: none; }
  .site-header__burger span:nth-child(3) { transform: translateY(4px); width: 12px; margin-left: -3px; }

  .site-header__burger.is-open {
    background: var(--color-green-light);
    border-color: var(--color-green-light);
  }

  .site-header__burger.is-open span { background: var(--color-navy-black); }
  .site-header__burger.is-open span:nth-child(1) { transform: rotate(45deg); }
  .site-header__burger.is-open span:nth-child(3) { transform: rotate(-45deg); width: 18px; margin-left: -9px; }

  /* The header stays above the overlay so the X is always reachable */
  .site-header { z-index: 1001; }

  .site-header__mobile-scrim { display: none !important; }

  .site-header__mobile-nav {
    position: fixed;
    inset: 0;
    top: 0;
    z-index: -1;
    max-height: none;
    height: 100dvh;
    padding: calc(var(--nav-height) + 28px) 24px calc(24px + env(safe-area-inset-bottom));
    border: 0;
    display: flex;
    flex-direction: column;
    background:
      radial-gradient(420px circle at 100% 0%, rgba(0, 204, 106, 0.22), transparent 60%),
      radial-gradient(360px circle at 0% 100%, rgba(106, 234, 128, 0.1), transparent 60%),
      #0b0d0c;
    overflow-y: auto;
    opacity: 1;
    visibility: hidden;
    transform: none;
    clip-path: circle(0 at calc(100% - 42px) 34px);
    transition: clip-path 0.7s cubic-bezier(0.76, 0, 0.24, 1), visibility 0s 0.7s;
  }

  .site-header__mobile-nav::before {
    content: "";
    position: absolute;
    inset: 0;
    pointer-events: none;
    background-image:
      linear-gradient(rgba(255, 255, 255, 0.04) 1px, transparent 1px),
      linear-gradient(90deg, rgba(255, 255, 255, 0.04) 1px, transparent 1px);
    background-size: 44px 44px;
    -webkit-mask-image: linear-gradient(to bottom, #000, transparent 75%);
            mask-image: linear-gradient(to bottom, #000, transparent 75%);
  }

  .site-header__mobile-nav.is-open {
    visibility: visible;
    clip-path: circle(150% at calc(100% - 42px) 34px);
    transition: clip-path 0.8s cubic-bezier(0.76, 0, 0.24, 1), visibility 0s;
  }

  .mnav__links {
    position: relative;
    display: flex;
    flex-direction: column;
  }

  .site-header__mobile-nav .mnav__link {
    display: flex;
    align-items: center;
    gap: 16px;
    width: 100%;
    padding: 18px 0;
    border: 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
    background: none;
    color: #fff;
    text-align: left;
    font: inherit;
    cursor: pointer;
  }

  .mnav__num {
    font-family: var(--font-mono);
    font-size: 11px;
    letter-spacing: 0.1em;
    color: var(--white-40);
    width: 22px;
    transition: color 0.3s ease;
  }

  .mnav__label {
    flex: 1;
    font-family: var(--font-display);
    font-weight: 700;
    font-size: clamp(30px, 9vw, 40px);
    line-height: 1;
    letter-spacing: -0.035em;
  }

  .mnav__arrow,
  .mnav__plus {
    width: 22px;
    height: 22px;
    fill: none;
    stroke: currentColor;
    stroke-width: 2;
    stroke-linecap: round;
    stroke-linejoin: round;
    color: var(--white-40);
    transition: transform 0.45s var(--hs-ease-out), color 0.3s ease;
  }

  .mnav__link[aria-current="page"] .mnav__label,
  .mnav__link[aria-current="page"] .mnav__num,
  .mnav__link[aria-current="page"] .mnav__arrow { color: var(--color-green-light); }

  .mnav__link:active .mnav__arrow { transform: translate(3px, -3px); }

  .site-header__mobile-accordion-trigger[aria-expanded="true"] .mnav__plus { transform: rotate(45deg); color: var(--color-green-light); }
  .site-header__mobile-accordion-trigger[aria-expanded="true"] .mnav__num { color: var(--color-green-light); }

  .mnav__subs {
    display: grid !important;
    grid-template-columns: 1fr 1fr;
    gap: 8px;
  }

  .site-header__mobile-accordion.is-open .mnav__subs { padding: 14px 0 18px; }

  .site-header__mobile-accordion-panel .mnav__sub {
    padding: 12px 14px;
    border-radius: 12px;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.08);
    font-size: var(--fs-md);
    font-weight: 600;
    color: var(--white-80);
  }

  .mnav__sub[aria-current="page"] { color: var(--color-navy-black); background: var(--color-green-light); border-color: var(--color-green-light); }

  .mnav__foot {
    position: relative;
    margin-top: auto;
    padding-top: 32px;
    display: flex;
    flex-direction: column;
    gap: 16px;
  }

  .site-header__mobile-nav .mnav__cta {
    margin: 0;
    width: 100%;
    justify-content: center;
    padding: 18px 24px;
    font-size: var(--fs-lg);
  }

  .mnav__contact { display: flex; flex-direction: column; gap: 6px; }
  .mnav__contact a { font-family: var(--font-display); font-weight: 600; font-size: 17px; color: #fff; }

  .mnav__badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    align-self: flex-start;
    font-size: var(--fs-sm);
    color: var(--white-50);
  }

  .mnav__badge i {
    width: 7px;
    height: 7px;
    border-radius: 50%;
    background: var(--color-green-light);
    animation: hs-ping 2.2s var(--hs-ease-out) infinite;
  }

  /* Staggered entrance */
  .mnav__links > *,
  .mnav__foot {
    opacity: 0;
    transform: translateY(24px);
    transition: opacity 0.3s ease, transform 0.3s ease;
  }

  .site-header__mobile-nav.is-open .mnav__links > *,
  .site-header__mobile-nav.is-open .mnav__foot {
    opacity: 1;
    transform: none;
    transition: opacity 0.6s ease, transform 0.8s var(--hs-ease-out);
    transition-delay: calc(0.18s + var(--i, 0) * 0.06s);
  }

  /* Header while open: flat on the overlay, CTA hidden to declutter */
  html.hs-nav-open .site-header .container {
    background: transparent !important;
    border-color: transparent !important;
    box-shadow: none !important;
    -webkit-backdrop-filter: none !important;
            backdrop-filter: none !important;
  }

  html.hs-nav-open .site-header__actions > .btn { opacity: 0; pointer-events: none; }
  .site-header__actions > .btn { transition: opacity 0.3s ease; }
}

@media (max-width: 640px) and (prefers-reduced-motion: reduce) {
  .site-header__mobile-nav,
  .site-header__mobile-nav.is-open { transition: none; }
  .mnav__links > *, .mnav__foot { transition: none !important; opacity: 1; transform: none; }
}

/* View-transition arrival: the first section (hero) is already in place. */
html.hs-vt-arrived main > .reveal:first-of-type,
html.hs-vt-arrived main > .reveal:first-of-type > *,
html.hs-vt-arrived main > section:first-of-type .reveal > *,
html.hs-vt-arrived .page-hero > *,
html.hs-vt-arrived .hero > * {
  transition: none !important;
  animation: none !important;
  opacity: 1 !important;
  transform: none !important;
  filter: none !important;
}

/* --------------------------------------------------------------------- */
/* Home "From the frontline of AI" — hero panel of the insights wipe      */
/* --------------------------------------------------------------------- */

.news-wipe__hero::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 0;
  background:
    linear-gradient(to top, rgba(5, 6, 6, 0.92) 0%, rgba(5, 6, 6, 0.55) 38%, rgba(5, 6, 6, 0) 70%),
    radial-gradient(700px circle at 0% 100%, rgba(0, 204, 106, 0.18), transparent 60%);
  pointer-events: none;
}

.news-wipe__hero-content {
  position: absolute;
  z-index: 1;
  left: 0;
  right: 0;
  bottom: 0;
  max-width: var(--container-width);
  margin: 0 auto;
  padding: 0 var(--space-8) clamp(48px, 9vh, 96px);
  color: #fff;
}

.news-wipe__hero-content .news-wipe__hero-title {
  position: static;
  max-width: 12ch;
  margin-top: var(--space-5);
  font-size: clamp(44px, 7vw, 104px);
  line-height: 0.95;
  letter-spacing: -0.04em;
  text-wrap: balance;
}

.news-wipe__hero-text {
  margin-top: var(--space-6);
  max-width: 48ch;
  font-size: var(--fs-xl);
  line-height: 1.6;
  color: var(--white-60);
}

.news-wipe__hero-meta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: var(--space-5) var(--space-8);
  margin-top: var(--space-8);
  padding-top: var(--space-6);
  border-top: 1px solid rgba(255, 255, 255, 0.12);
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--white-50);
}

.news-wipe__hero-meta span { display: inline-flex; align-items: baseline; gap: 10px; }

.news-wipe__hero-meta b {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 28px;
  letter-spacing: -0.03em;
  color: #fff;
}

.news-wipe__hero-cue { margin-left: auto; align-items: center !important; }

.news-wipe__hero-cue i {
  position: relative;
  width: 1px;
  height: 28px;
  background: rgba(255, 255, 255, 0.2);
  overflow: hidden;
}

.news-wipe__hero-cue i::after {
  content: "";
  position: absolute;
  left: 0;
  top: -40%;
  width: 1px;
  height: 40%;
  background: var(--color-green-light);
  animation: hs-cue 1.8s var(--hs-ease-in-out) infinite;
}

@keyframes hs-cue { to { top: 100%; } }

@media (max-width: 700px) {
  .news-wipe__hero-img { object-position: 65% 30%; }
  .news-wipe__hero::after {
    background:
      linear-gradient(to top, rgba(5, 6, 6, 0.95) 0%, rgba(5, 6, 6, 0.7) 50%, rgba(5, 6, 6, 0.15) 85%),
      radial-gradient(400px circle at 0% 100%, rgba(0, 204, 106, 0.2), transparent 60%);
  }
  .news-wipe__hero-content { padding: 0 var(--space-5) calc(var(--space-9) + env(safe-area-inset-bottom)); }
  .news-wipe__hero-content .news-wipe__hero-title { font-size: clamp(44px, 13vw, 64px); }
  .news-wipe__hero-text { font-size: var(--fs-lg); }
  .news-wipe__hero-meta { gap: var(--space-4) var(--space-6); }
  .news-wipe__hero-cue { margin-left: 0; width: 100%; }
}

@media (prefers-reduced-motion: reduce) {
  .news-wipe__hero-cue i::after { animation: none; }
}

/* Each solution card hugs its own content (the stage is sized to the
   tallest by initServiceFit), so short descriptions never leave a band of
   empty card beneath them. */
.service-list .service-item {
  bottom: auto !important;
  height: auto;
}

/* Footer seam: no divider line, and a 1px overlap so no sub-pixel gap can
   show the page background between the CTA and the footer. */
.site-footer { border-top: 0 !important; }
.cta { margin-bottom: -1px; }

/* Home "Our solutions": the last card no longer sits above a tall empty band. */
.services { padding-bottom: var(--space-9); }

/* Consistent heading rhythm: display headings that had no explicit line
   height inherited "normal" (~1.3), leaving wide gaps like "Our / projects."
   :where() keeps specificity at zero so any explicit rule still wins. */
:where(h1, h2, h3, h4) { line-height: 1.08; }
.services__title,
.blog__title,
.vertical-split__title,
.feature-overview__title,
.case-study-gallery__title,
.pricing__title,
.contact-calendar__title { line-height: 1.06; }

/* --------------------------------------------------------------------- */
/* Home testimonials — refined quotes + company tabs with progress        */
/* --------------------------------------------------------------------- */

.clients__list {
  gap: 6px;
  padding: 6px;
  border-radius: var(--radius-pill);
  background: rgba(11, 13, 12, 0.04);
  border: 1px solid rgba(11, 13, 12, 0.07);
  display: inline-flex;
}

.clients { display: flex; flex-direction: column; align-items: center; }

.clients__list li {
  position: relative;
  padding: 10px 20px 12px;
  border-radius: var(--radius-pill);
  font-family: var(--font-display);
  font-weight: 600;
  font-size: var(--fs-md);
  color: rgba(11, 13, 12, 0.45);
  cursor: pointer;
  overflow: hidden;
  transition: color 0.35s ease, background-color 0.35s ease, box-shadow 0.35s ease;
}

.clients__list li:hover { color: var(--text-dark); }

.clients__list li.is-featured {
  font-weight: 600;
  color: var(--text-dark);
  background: #fff;
  box-shadow: 0 1px 2px rgba(11, 13, 12, 0.06), 0 10px 24px -14px rgba(11, 13, 12, 0.3);
}

.clients__bar {
  position: absolute;
  left: 20px;
  right: 20px;
  bottom: 5px;
  height: 2px;
  border-radius: 2px;
  background: transparent;
  overflow: hidden;
}

.clients__bar b {
  display: block;
  height: 100%;
  background: var(--color-green);
  transform-origin: 0 50%;
  transform: scaleX(0);
}

.testimonial { max-width: 940px; }

.testimonial__quote {
  position: relative;
  font-weight: 600;
  font-size: clamp(24px, 2.9vw, 42px);
  line-height: 1.22;
  letter-spacing: -0.025em;
  text-wrap: balance;
}

.testimonial__quote::before {
  content: "\201C";
  display: block;
  height: 0.62em;
  margin-bottom: 0.1em;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 2.6em;
  line-height: 1;
  color: var(--color-green);
}

.testimonial__meta {
  gap: 14px;
  margin-top: var(--space-8);
  padding: 10px 20px 10px 10px;
  border-radius: var(--radius-pill);
  background: #fff;
  border: 1px solid rgba(11, 13, 12, 0.07);
  box-shadow: 0 16px 30px -22px rgba(11, 13, 12, 0.35);
}

.testimonial__avatar {
  width: 42px;
  height: 42px;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 16px;
  color: var(--color-navy-black);
}

.testimonial__name { font-size: var(--fs-lg); }
.testimonial__company { letter-spacing: 0.06em; }

@media (max-width: 640px) {
  .clients__list { flex-wrap: nowrap; max-width: 100%; overflow-x: auto; scrollbar-width: none; }
  .clients__list::-webkit-scrollbar { display: none; }
  .clients__list li { white-space: nowrap; padding: 9px 14px 11px; font-size: var(--fs-sm); }
  .clients__bar { left: 14px; right: 14px; }
  .testimonial__quote { font-size: clamp(20px, 5.6vw, 26px); }
}


/* --------------------------------------------------------------------- */
/* Mega menu preview — mini "live system" console per product             */
/* --------------------------------------------------------------------- */

.site-header__mega-preview { aspect-ratio: auto; min-height: 300px; }

.mega-con {
  position: absolute;
  inset: 0;
  padding: 16px;
  display: flex;
  flex-direction: column;
  gap: 10px;
  background:
    radial-gradient(360px circle at 100% 0%, rgba(0, 204, 106, 0.18), transparent 60%),
    linear-gradient(180deg, #151816, #0e100f);
  color: #fff;
}

.mega-con__bar {
  display: flex;
  align-items: center;
  gap: 10px;
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.08em;
  color: var(--white-50);
}

.mega-con__title { flex: 1; }

.mega-con__chart {
  flex: 1;
  min-height: 90px;
  border-radius: 12px;
  background: rgba(0, 0, 0, 0.3);
  border: 1px solid rgba(255, 255, 255, 0.05);
  overflow: hidden;
}

.mega-con__chart svg { display: block; width: 100%; height: 100%; }
.mega-con__area { fill: rgba(106, 234, 128, 0.12); }

.mega-con__line {
  fill: none;
  stroke: var(--color-green-light);
  stroke-width: 2;
  vector-effect: non-scaling-stroke;
  stroke-dasharray: 600;
  stroke-dashoffset: 600;
  filter: drop-shadow(0 0 6px rgba(106, 234, 128, 0.6));
}

.site-header__mega-preview-slide.is-active .mega-con__line { animation: hs-draw 1.4s var(--hs-ease-out) forwards; }

.mega-con__kpis { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; }

.mega-con__kpis div {
  padding: 10px;
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.06);
}

.mega-con__kpis b { display: block; font-family: var(--font-display); font-size: 18px; letter-spacing: -0.03em; }
.mega-con__kpis span { display: block; margin-top: 2px; font-size: 10.5px; line-height: 1.3; color: var(--white-50); }

.mega-con__mods { margin: 0; padding: 0; list-style: none; }

.mega-con__mods li {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 7px 4px;
  border-top: 1px solid rgba(255, 255, 255, 0.05);
  font-size: 12px;
  color: var(--white-80);
}

.mega-con__mods em {
  font-style: normal;
  font-family: var(--font-mono);
  font-size: 9.5px;
  letter-spacing: 0.14em;
  color: var(--color-green-light);
  padding: 3px 7px;
  border-radius: var(--radius-pill);
  background: rgba(0, 204, 106, 0.12);
}

/* The last snake card has no exit port (no connector leaves it). */
.feature-snake__item:last-child .feature-snake__card::after { display: none; }

/* --------------------------------------------------------------------- */
/* One progress-indicator language site-wide (matches the Insights        */
/* spotlight): small dots; the current one stretches into a pill that     */
/* fills as you progress. Used by the product scan-split, Our projects    */
/* and Industries frames.                                                 */
/* --------------------------------------------------------------------- */

.scan-split__segments,
.work-hud__segs,
.hs-dots {
  display: flex;
  align-items: center;
  gap: 8px;
  width: auto !important;
}

.scan-split__segments { left: 50%; right: auto; bottom: 24px; transform: translateX(-50%); }
.work-hud__segs { top: 32px; right: 48px; }
.ind-scan__dots { position: absolute; z-index: 4; top: 32px; right: 48px; }

.scan-split__segments i,
.work-hud__segs i,
.hs-dots i {
  flex: none;
  position: relative;
  width: 8px;
  height: 8px;
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.3);
  overflow: hidden;
  transition: width 0.5s var(--hs-ease-out), background-color 0.3s ease;
}

.scan-split__segments i.is-active,
.work-hud__segs i.is-active,
.hs-dots i.is-active {
  width: 34px;
  background: rgba(255, 255, 255, 0.22);
}

.scan-split__segments b,
.work-hud__segs b,
.hs-dots b {
  position: absolute;
  inset: 0;
  display: block;
  height: 100%;
  background: #fff;
  transform-origin: 0 50%;
  transform: scaleX(0);
}

.scan-split__segments i:first-child b,
.work-hud__segs i:first-child b,
.hs-dots i:first-child b { transform: scaleX(1); }

@media (max-width: 640px) {
  .work-hud__segs { top: auto; bottom: 26px; right: 50%; transform: translateX(50%); }
}

/* Industries index: the active sector reads white (number, name, arrow). */
.ind-scan__index .work__list-item.is-active .work__list-item-name,
.ind-scan__index .work__list-item.is-active .work__list-item-index { color: #fff; }
.ind-scan__index .work__list-item.is-active .work__list-item-icon { filter: brightness(0) invert(1); }

/* Insights page: full-width layout with one even gutter on both sides, so
   the spotlight and every rail start and end on the same margins. */
.tv-insights > .container {
  max-width: none;
  padding-left: clamp(20px, 3.4vw, 56px);
  padding-right: clamp(20px, 3.4vw, 56px);
}

.tv-insights .tv-spotlight { height: min(74vh, 680px); }

/* --------------------------------------------------------------------- */
/* Insights newsletter                                                    */
/* --------------------------------------------------------------------- */

.nl { background: var(--color-navy-black); padding: 0 0 var(--space-11); }
.tv-insights + .nl { padding-top: 0; }

.nl__card {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(0, 0.9fr);
  gap: var(--space-9);
  align-items: center;
  padding: clamp(32px, 5vw, 64px);
  border-radius: 28px;
  overflow: hidden;
  color: #fff;
  background:
    radial-gradient(600px circle at 100% 0%, rgba(0, 204, 106, 0.2), transparent 60%),
    radial-gradient(500px circle at 0% 100%, rgba(106, 234, 128, 0.08), transparent 60%),
    #111312;
  border: 1px solid rgba(255, 255, 255, 0.08);
  box-shadow: 0 60px 100px -60px rgba(0, 0, 0, 0.9);
}

.nl__card::before {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background-image:
    linear-gradient(rgba(255, 255, 255, 0.04) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.04) 1px, transparent 1px);
  background-size: 48px 48px;
  -webkit-mask-image: linear-gradient(120deg, #000, transparent 65%);
          mask-image: linear-gradient(120deg, #000, transparent 65%);
}

.nl__pitch, .nl__issue { position: relative; }

.nl__title {
  margin-top: var(--space-5);
  font-family: var(--font-display);
  font-weight: 700;
  font-size: clamp(32px, 3.6vw, 52px);
  line-height: 1.04;
  letter-spacing: -0.035em;
  max-width: 16ch;
}

.nl__text { margin-top: var(--space-4); font-size: var(--fs-xl); line-height: 1.6; color: var(--white-60); max-width: 46ch; }

.nl__perks { margin-top: var(--space-6); display: flex; flex-direction: column; gap: 10px; }

.nl__perks li {
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: var(--fs-md);
  color: var(--white-80);
}

.nl__perks li::before {
  content: "";
  width: 18px;
  height: 18px;
  flex-shrink: 0;
  border-radius: 50%;
  background:
    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3E%3Cpath d='M4.5 8.2l2.3 2.3 4.7-5' fill='none' stroke='%236aea80' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center / 12px no-repeat,
    rgba(106, 234, 128, 0.14);
}

.nl__form { margin-top: var(--space-7); max-width: 520px; }

.nl__form .hs-form {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 8px;
  padding: 6px;
  border-radius: var(--radius-pill);
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.12);
  transition: border-color 0.3s ease, box-shadow 0.4s var(--hs-ease-out);
}

.nl__form .hs-form:focus-within { border-color: rgba(106, 234, 128, 0.6); box-shadow: 0 0 0 4px rgba(106, 234, 128, 0.12); }
.nl__form .hs-form > *:not(.form-field):not(.contact-form__submit) { grid-column: 1 / -1; }
.nl__form .form-field { margin: 0; }
.nl__form .form-field__label { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }

.nl__form .form-field__input {
  height: 52px;
  padding: 0 18px;
  border: 0 !important;
  background: transparent !important;
  box-shadow: none !important;
  color: #fff;
  font-size: var(--fs-lg);
}

.nl__form .contact-form__submit { margin: 0; padding: 0 28px; height: 52px; }
.nl__form .form-error { padding-left: 18px; }
.nl__form .hs-form__success { border-radius: 18px; padding: var(--space-5); background: rgba(106, 234, 128, 0.1); }

/* Issue preview */
.nl__issue { display: flex; justify-content: center; perspective: 1400px; }

.nl__issue-card {
  width: min(100%, 400px);
  padding: 24px;
  border-radius: 20px;
  background: #f7f6f3;
  color: var(--text-dark);
  box-shadow: 0 50px 90px -40px rgba(0, 0, 0, 0.9), 0 0 0 1px rgba(255, 255, 255, 0.08);
  transform: rotateY(-10deg) rotateX(4deg);
  transition: transform 0.8s var(--hs-ease-out);
}

.nl__card:hover .nl__issue-card { transform: rotateY(-4deg) rotateX(2deg) translateY(-4px); }

.nl__issue-head { display: flex; align-items: center; gap: 12px; padding-bottom: 16px; border-bottom: 1px solid rgba(11, 13, 12, 0.08); }

.nl__issue-head img {
  width: 40px;
  height: 40px;
  padding: 10px 12px;
  border-radius: 12px;
  background: #0b0d0c;
}

.nl__issue-head b { display: block; font-family: var(--font-display); font-size: 16px; }
.nl__issue-head span { display: block; font-family: var(--font-mono); font-size: 11px; letter-spacing: 0.1em; color: rgba(11, 13, 12, 0.5); text-transform: uppercase; }
.nl__issue-label { margin-top: 18px; font-family: var(--font-mono); font-size: 10.5px; letter-spacing: 0.16em; text-transform: uppercase; color: var(--color-green); }
.nl__issue-list { margin: 10px 0 0; padding: 0; list-style: none; }

.nl__issue-list li {
  display: grid;
  grid-template-columns: 28px 1fr;
  gap: 8px;
  padding: 12px 0;
  border-bottom: 1px solid rgba(11, 13, 12, 0.07);
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 15px;
  line-height: 1.3;
}

.nl__issue-list li:last-child { border-bottom: 0; }
.nl__issue-list span { font-family: var(--font-mono); font-size: 11px; color: rgba(11, 13, 12, 0.4); padding-top: 3px; }

@media (max-width: 900px) {
  .nl__card { grid-template-columns: 1fr; }
  .nl__issue-card { transform: none; }
}

@media (max-width: 520px) {
  .nl__form .hs-form { grid-template-columns: 1fr; border-radius: 20px; }
  .nl__form .contact-form__submit { width: 100%; }
}

/* Contact page consistency: dark throughout, one card width, one button
   system, channel values styled like the rest of the site's links. */
.contact-form-section { background: var(--color-navy-black); padding: 0 0 var(--space-11); }
.contact-form-section .cf-split { max-width: none; }

.channel-card__value,
.channel-card__value--address {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: var(--font-display) !important;
  font-weight: 600;
  font-size: 17px !important;
  color: #fff !important;
  text-decoration: none !important;
}

.channel-card__value::after {
  content: "\2192";
  color: var(--color-green-light);
  transition: transform 0.4s var(--hs-ease-out);
}

.channel-card__value:hover::after { transform: translateX(4px); }
.channel-card__value--address::after { content: none; }
.channel-card__title { font-size: 20px; }

/* About timeline — snake variant with one card per year */
.feature-snake--timeline .feature-snake__card { padding: 16px 16px 28px; }

.feature-snake__media {
  aspect-ratio: 16 / 9;
  border-radius: 14px;
  overflow: hidden;
  margin-bottom: 22px;
  background: #e9e8e4;
}

.feature-snake__media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: saturate(0.9);
  transform: scale(1.06);
  transition: transform 1.2s var(--hs-ease-out);
}

.feature-snake__item.is-on .feature-snake__media img { transform: none; }

.feature-snake--timeline .feature-snake__year,
.feature-snake--timeline .feature-card__title,
.feature-snake--timeline .feature-card__desc { padding: 0 16px; }

.feature-snake__year {
  display: block;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 40px;
  line-height: 1;
  letter-spacing: -0.04em;
  color: var(--color-green);
}

.feature-snake--timeline .feature-card__title { margin-top: 10px; }

/* --------------------------------------------------------------------- */
/* About — team & contact grid                                            */
/* --------------------------------------------------------------------- */

.crew { background: var(--color-navy-black); color: #fff; padding: var(--space-11) 0; }
.crew__head { max-width: 640px; }
.crew__desc { margin-top: var(--space-4); font-size: var(--fs-xl); line-height: 1.6; color: var(--white-60); }

.crew__grid {
  margin-top: var(--space-9);
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 20px;
}

.crew-card,
.crew-contact {
  position: relative;
  border-radius: 22px;
  overflow: hidden;
  background: #121413;
  border: 1px solid rgba(255, 255, 255, 0.08);
  transition: border-color 0.4s ease, transform 0.6s var(--hs-ease-out), box-shadow 0.6s ease;
}

.crew-card:hover {
  border-color: rgba(106, 234, 128, 0.3);
  transform: translateY(-4px);
  box-shadow: 0 40px 70px -40px rgba(0, 0, 0, 0.9);
}

.crew-card__media { aspect-ratio: 4 / 4.4; overflow: hidden; background: #1a1c1b; }

.crew-card__media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: 50% 20%;
  filter: grayscale(0.35);
  transition: transform 1.2s var(--hs-ease-out), filter 0.8s ease;
}

.crew-card:hover .crew-card__media img { transform: scale(1.04); filter: grayscale(0); }

.crew-card__body { padding: 22px 22px 24px; }
.crew-card__name { font-family: var(--font-display); font-weight: 700; font-size: 24px; letter-spacing: -0.02em; }
.crew-card__role { margin-top: 6px; font-size: var(--fs-md); color: var(--white-60); line-height: 1.45; }
.crew-card__bio { margin-top: 12px; font-size: var(--fs-md); color: var(--white-60); line-height: 1.55; }
.crew-card__actions { margin-top: 18px; display: flex; flex-wrap: wrap; gap: 8px; align-items: center; }

.crew-card__li {
  display: grid;
  place-items: center;
  width: 38px;
  height: 38px;
  border-radius: 50%;
  border: 1px solid rgba(255, 255, 255, 0.14);
  font-weight: 700;
  font-size: 13px;
}

.crew-contact {
  display: flex;
  flex-direction: column;
  padding: 28px;
  background:
    radial-gradient(420px circle at 100% 0%, rgba(0, 204, 106, 0.24), transparent 60%),
    #121413;
}

.crew-contact__label { font-family: var(--font-mono); font-size: 11px; letter-spacing: 0.16em; text-transform: uppercase; color: var(--color-green-light); }
.crew-contact__title { margin-top: 12px; font-family: var(--font-display); font-weight: 700; font-size: 30px; line-height: 1.08; letter-spacing: -0.03em; }
.crew-contact__list { margin-top: 28px; display: flex; flex-direction: column; }

.crew-contact__list li {
  padding: 14px 0;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.crew-contact__list span { font-family: var(--font-mono); font-size: 10.5px; letter-spacing: 0.14em; text-transform: uppercase; color: var(--white-40); }
.crew-contact__list a { font-family: var(--font-display); font-weight: 600; font-size: 16px; line-height: 1.4; color: #fff; transition: color 0.2s ease; }
.crew-contact__list a:hover { color: var(--color-green-light); }
.crew-contact__cta { margin-top: auto; justify-content: center; }
.crew-contact__list + .crew-contact__cta { margin-top: 28px; }

@media (max-width: 1000px) {
  .crew__grid { grid-template-columns: 1fr 1fr; }
  .crew-contact { grid-column: 1 / -1; }
}

@media (max-width: 600px) {
  .crew__grid { grid-template-columns: 1fr; }
}

/* Software "Request a demo" — shares the contact split card */
.cf-split__label { margin-top: var(--space-8); font-family: var(--font-mono); font-size: 11px; letter-spacing: 0.16em; text-transform: uppercase; color: var(--color-green-light); }
.cf-split__checks { margin-top: var(--space-4); display: flex; flex-direction: column; gap: 12px; }

.cf-split__checks li {
  display: flex;
  align-items: center;
  gap: 12px;
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 16px;
}

.cf-split__checks li::before {
  content: "";
  width: 20px;
  height: 20px;
  flex-shrink: 0;
  border-radius: 50%;
  background:
    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3E%3Cpath d='M4.5 8.2l2.3 2.3 4.7-5' fill='none' stroke='%236aea80' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center / 12px no-repeat,
    rgba(106, 234, 128, 0.14);
}

.cf-split__meta { margin-top: var(--space-8); display: flex; gap: var(--space-7); }

.cf-split__meta span {
  display: flex;
  flex-direction: column;
  gap: 4px;
  font-size: var(--fs-sm);
  color: var(--white-50);
}

.cf-split__meta b { font-family: var(--font-display); font-weight: 700; font-size: 32px; letter-spacing: -0.03em; color: #fff; line-height: 1; }
.cf-split__alt { font-family: var(--font-display); font-weight: 600; font-size: 16px; color: var(--color-green-light); }
.cf-split__alt span { display: inline-block; transition: transform 0.4s var(--hs-ease-out); }
.cf-split__alt:hover span { transform: translateX(4px); }
#demo.contact-form-section { padding-top: var(--space-11); }

/* ===================================================================== */
/* Project case study pages                                              */
/* ===================================================================== */

.cs-meta { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; margin-top: var(--space-6); }

.cs-meta__chip {
  display: inline-flex;
  align-items: baseline;
  gap: 8px;
  padding: 9px 14px;
  border-radius: var(--radius-pill);
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.1);
  font-size: var(--fs-md);
  font-weight: 600;
  color: #fff;
}

.cs-meta__chip em { font-style: normal; font-family: var(--font-mono); font-size: 10px; letter-spacing: 0.14em; text-transform: uppercase; color: var(--white-40); }
.cs-meta__visit { margin-left: 6px; }

.cs-frame {
  position: relative;
  height: clamp(320px, 56vw, 620px) !important;
  border-radius: 24px !important;
  box-shadow: 0 60px 100px -50px rgba(0, 0, 0, 0.9), 0 0 0 1px rgba(255, 255, 255, 0.07);
}

.cs-frame img { width: 100%; height: 100%; object-fit: cover; transition: transform 1.6s var(--hs-ease-out); }
.cs-frame:hover img { transform: scale(1.02); }
.cs-frame .work-hud__corner { z-index: 2; }

.case-study-overview__inner { gap: var(--space-11); }

.cs-chapter { padding: var(--space-9) 0; border-top: 1px solid rgba(11, 13, 12, 0.08); scroll-margin-top: 110px; }
.cs-chapter:first-child { padding-top: 0; border-top: 0; }
.cs-chapter__num { font-family: var(--font-mono); font-size: 12px; letter-spacing: 0.14em; color: var(--color-green); }

.cs-chapter__title {
  margin-top: var(--space-3);
  font-family: var(--font-display);
  font-weight: 700;
  font-size: clamp(28px, 3vw, 40px);
  line-height: 1.06;
  letter-spacing: -0.03em;
  color: var(--text-dark);
}

.cs-chapter .case-study-overview__body { margin-top: var(--space-5); font-size: var(--fs-xl); line-height: 1.7; }

.case-study-details {
  position: sticky;
  top: calc(var(--nav-height) + 28px);
  background: #fff !important;
  box-shadow: 0 30px 60px -40px rgba(11, 13, 12, 0.3);
}

.cs-toc { display: flex; flex-direction: column; padding-bottom: var(--space-5); margin-bottom: var(--space-2); border-bottom: 1px solid rgba(11, 13, 12, 0.08); }

.cs-toc a {
  position: relative;
  display: flex;
  gap: 12px;
  padding: 9px 0 9px 16px;
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 15px;
  color: rgba(11, 13, 12, 0.4);
  transition: color 0.3s ease;
}

.cs-toc a::before {
  content: "";
  position: absolute;
  left: 0;
  top: 8px;
  bottom: 8px;
  width: 2px;
  border-radius: 2px;
  background: rgba(11, 13, 12, 0.1);
  transition: background-color 0.3s ease;
}

.cs-toc a span { font-family: var(--font-mono); font-size: 11px; padding-top: 2px; }
.cs-toc a:hover { color: var(--text-dark); }
.cs-toc a.is-active { color: var(--text-dark); }
.cs-toc a.is-active::before { background: var(--color-green); }

.cs-pills { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 6px; }
.cs-pills span { padding: 6px 11px; border-radius: var(--radius-pill); background: rgba(0, 204, 106, 0.08); border: 1px solid rgba(0, 204, 106, 0.2); font-size: 12.5px; font-weight: 600; color: #0a6b3c; }

.case-study-testimonial__quote::before {
  content: "\201C";
  display: block;
  height: 0.62em;
  margin-bottom: 0.12em;
  font-family: var(--font-display);
  font-size: 2.4em;
  line-height: 1;
  color: var(--color-green-light);
}

/* Next project */
.cs-next { background: var(--color-navy-black); padding: var(--space-11) 0; }

.cs-next__card {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 1.2fr) minmax(0, 1fr);
  border-radius: 24px;
  overflow: hidden;
  background: #121413;
  border: 1px solid rgba(255, 255, 255, 0.08);
  color: #fff;
  transition: border-color 0.4s ease, transform 0.6s var(--hs-ease-out);
}

.cs-next__card:hover { border-color: rgba(106, 234, 128, 0.35); transform: translateY(-4px); }
.cs-next__media { position: relative; min-height: 300px; overflow: hidden; }
.cs-next__media img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; transition: transform 1.4s var(--hs-ease-out); }
.cs-next__card:hover .cs-next__media img { transform: scale(1.05); }
.cs-next__body { position: relative; display: flex; flex-direction: column; justify-content: center; padding: clamp(28px, 4vw, 56px); }
.cs-next__label { font-family: var(--font-mono); font-size: 11px; letter-spacing: 0.16em; text-transform: uppercase; color: var(--color-green-light); }
.cs-next__name { margin-top: 12px; font-family: var(--font-display); font-weight: 700; font-size: clamp(32px, 4vw, 56px); line-height: 1; letter-spacing: -0.04em; }
.cs-next__summary { margin-top: 14px; color: var(--white-60); line-height: 1.6; max-width: 40ch; }

.cs-next__go {
  position: absolute;
  right: clamp(24px, 3vw, 40px);
  bottom: clamp(24px, 3vw, 40px);
  display: grid;
  place-items: center;
  width: 52px;
  height: 52px;
  border-radius: 50%;
  background: var(--color-green-light);
  color: var(--color-navy-black);
  font-size: 20px;
  transition: transform 0.5s var(--hs-ease-out);
}

.cs-next__card:hover .cs-next__go { transform: translateX(6px); }
.cs-next__all { display: inline-block; margin-top: var(--space-6); font-family: var(--font-display); font-weight: 600; color: var(--white-60); }
.cs-next__all:hover { color: #fff; }

@media (max-width: 900px) {
  .case-study-details { position: static; }
  .cs-toc { display: none; }
  .cs-next__card { grid-template-columns: 1fr; }
  .cs-next__media { min-height: 220px; }
  .cs-next__body { padding-bottom: 96px; }
}

/* ===================================================================== */
/* Get Funded                                                            */
/* ===================================================================== */

.gf-hero-note {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-left: 8px;
  font-size: var(--fs-md);
  color: var(--white-60);
}

.gf-hero-note i { width: 7px; height: 7px; border-radius: 50%; background: var(--color-green-light); animation: hs-ping 2.2s var(--hs-ease-out) infinite; }

.get-funded-program-card {
  position: relative;
  padding: 32px !important;
  border-radius: 22px !important;
  background: #121413 !important;
  border: 1px solid rgba(255, 255, 255, 0.08) !important;
  transition: border-color 0.4s ease, transform 0.6s var(--hs-ease-out), box-shadow 0.6s ease;
}

.get-funded-program-card:hover {
  border-color: rgba(106, 234, 128, 0.3) !important;
  transform: translateY(-4px);
  box-shadow: 0 40px 70px -40px rgba(0, 0, 0, 0.9);
}

.get-funded-program-card__title { font-size: 24px !important; letter-spacing: -0.02em; line-height: 1.12; }

.get-funded-program-card__amount {
  display: inline-flex !important;
  margin-top: 12px;
  padding: 7px 12px !important;
  border-radius: var(--radius-pill) !important;
  border: 0 !important;
  background: rgba(106, 234, 128, 0.14) !important;
  color: var(--color-green-light) !important;
  font-family: var(--font-display) !important;
  font-weight: 700;
  font-size: 15px !important;
  letter-spacing: -0.01em !important;
}

.get-funded-program-card__desc { margin-top: 16px !important; font-size: var(--fs-md) !important; line-height: 1.6 !important; color: var(--white-60) !important; }
.get-funded-program-card__actions { margin-top: auto !important; padding-top: 24px; gap: 8px !important; }

/* Steps: connected timeline */
.get-funded-steps__grid { position: relative; gap: 20px !important; }

.get-funded-step {
  padding: 28px;
  border-radius: 20px;
  background: #fff;
  border: 1px solid rgba(11, 13, 12, 0.07);
  box-shadow: 0 30px 60px -44px rgba(11, 13, 12, 0.35);
}

.get-funded-step__num {
  display: grid !important;
  place-items: center;
  width: 44px !important;
  height: 44px !important;
  border-radius: 14px !important;
  border: 0 !important;
  background: #0b0d0c !important;
  color: var(--color-green-light) !important;
  font-family: var(--font-mono);
  font-size: 12px !important;
}

.get-funded-step:not(:last-child)::after {
  content: "";
  position: absolute;
  top: 50px;
  right: -21px;
  width: 22px;
  height: 2px;
  background: var(--color-green);
}

.get-funded-step__title { font-size: 22px !important; letter-spacing: -0.02em; }

@media (max-width: 900px) {
  .get-funded-steps__grid { flex-direction: column; }
  .get-funded-step:not(:last-child)::after { top: auto; bottom: -21px; right: auto; left: 49px; width: 2px; height: 22px; }
}

#funding-application { padding-top: var(--space-11); }

/* Get Funded steps: connector starts after the card, not over the number */
.get-funded-step:not(:last-child)::after { left: auto !important; }
@media (max-width: 900px) { .get-funded-step:not(:last-child)::after { left: 49px !important; right: auto !important; } }

/* ===================================================================== */
/* Helper panel (bottom-right)                                           */
/* ===================================================================== */

.hs-help.live-chat__panel {
  width: 380px;
  max-width: calc(100vw - 32px);
  max-height: min(640px, calc(100dvh - 120px));
  padding: 0;
  display: flex;
  flex-direction: column;
  overflow: hidden;
  border-radius: 24px;
  background: #0f1110;
  border: 1px solid rgba(255, 255, 255, 0.1);
  box-shadow: 0 40px 90px -30px rgba(0, 0, 0, 0.85);
  color: #fff;
}

.hs-help__head {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 18px 18px 14px;
  background: radial-gradient(300px circle at 0% 0%, rgba(0, 204, 106, 0.22), transparent 70%);
}

.hs-help__mark { display: grid; place-items: center; width: 40px; height: 40px; border-radius: 12px; background: rgba(106, 234, 128, 0.12); border: 1px solid rgba(106, 234, 128, 0.25); }
.hs-help__mark img { width: 15px; height: auto; }
.hs-help__intro { flex: 1; }
.hs-help__title { font-family: var(--font-display); font-weight: 700; font-size: 18px; letter-spacing: -0.02em; }
.hs-help__status { display: flex; align-items: center; gap: 6px; margin-top: 2px; font-size: 12px; color: var(--white-50); }
.hs-help__status i { width: 6px; height: 6px; border-radius: 50%; background: var(--color-green-light); animation: hs-ping 2.2s var(--hs-ease-out) infinite; }

.hs-help__search {
  display: flex;
  align-items: center;
  gap: 10px;
  margin: 0 18px 12px;
  padding: 0 14px;
  height: 46px;
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.1);
  transition: border-color 0.3s ease, box-shadow 0.3s ease;
}

.hs-help__search:focus-within { border-color: rgba(106, 234, 128, 0.6); box-shadow: 0 0 0 4px rgba(106, 234, 128, 0.12); }
.hs-help__search svg { width: 18px; height: 18px; fill: none; stroke: var(--white-50); stroke-width: 2; stroke-linecap: round; flex-shrink: 0; }
.hs-help__search input { flex: 1; min-width: 0; border: 0; outline: 0; background: none; color: #fff; font: inherit; font-size: 14px; }
.hs-help__search input::placeholder { color: var(--white-40); }

.hs-help__body { flex: 1; overflow-y: auto; padding: 0 18px 18px; overscroll-behavior: contain; scrollbar-width: thin; }

.hs-help__actions { display: flex; flex-direction: column; gap: 8px; }

.hs-help__action {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px 14px;
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.07);
  transition: background-color 0.25s ease, border-color 0.25s ease, transform 0.4s var(--hs-ease-out);
}

.hs-help__action:hover { background: rgba(255, 255, 255, 0.08); border-color: rgba(255, 255, 255, 0.14); transform: translateX(2px); }
.hs-help__action svg { width: 20px; height: 20px; flex-shrink: 0; fill: none; stroke: var(--color-green-light); stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; }
.hs-help__action b { display: block; font-size: 14px; font-weight: 600; }
.hs-help__action em { display: block; font-style: normal; font-size: 12px; color: var(--white-50); margin-top: 1px; }
.hs-help__action--primary { background: var(--color-green-light); border-color: var(--color-green-light); color: var(--color-navy-black); }
.hs-help__action--primary:hover { background: #7af08f; border-color: #7af08f; }
.hs-help__action--primary svg { stroke: var(--color-navy-black); }
.hs-help__action--primary em { color: rgba(11, 13, 12, 0.65); }

.hs-help__label { margin: 18px 0 8px; font-family: var(--font-mono); font-size: 10.5px; letter-spacing: 0.16em; text-transform: uppercase; color: var(--white-40); }

.hs-help__faq { border-bottom: 1px solid rgba(255, 255, 255, 0.07); }

.hs-help__faq summary {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  padding: 11px 0;
  list-style: none;
  cursor: pointer;
  font-size: 13.5px;
  font-weight: 600;
  line-height: 1.4;
}

.hs-help__faq summary::-webkit-details-marker { display: none; }
.hs-help__faq summary svg { width: 16px; height: 16px; flex-shrink: 0; margin-top: 1px; fill: none; stroke: var(--white-50); stroke-width: 2; stroke-linecap: round; transition: transform 0.35s var(--hs-ease-out); }
.hs-help__faq[open] summary svg { transform: rotate(45deg); stroke: var(--color-green-light); }
.hs-help__faq p { padding: 0 0 12px; font-size: 13px; line-height: 1.6; color: var(--white-60); }

.hs-help__direct { display: flex; flex-wrap: wrap; gap: 6px; }

.hs-help__chip {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 12px;
  border-radius: var(--radius-pill);
  border: 1px solid rgba(255, 255, 255, 0.1);
  background: rgba(255, 255, 255, 0.04);
  color: #fff;
  font: inherit;
  font-size: 12.5px;
  font-weight: 600;
  cursor: pointer;
  transition: border-color 0.25s ease, background-color 0.25s ease;
}

.hs-help__chip:hover { border-color: rgba(106, 234, 128, 0.45); background: rgba(106, 234, 128, 0.06); }
.hs-help__chip em { font-style: normal; font-family: var(--font-mono); font-size: 10px; letter-spacing: 0.12em; text-transform: uppercase; color: var(--color-green-light); }

.hs-help__results { display: flex; flex-direction: column; gap: 6px; }

.hs-help__hit {
  display: flex;
  flex-direction: column;
  gap: 3px;
  padding: 12px 14px;
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.07);
  transition: border-color 0.25s ease, background-color 0.25s ease;
}

.hs-help__hit:hover, .hs-help__hit:focus-visible { border-color: rgba(106, 234, 128, 0.45); background: rgba(106, 234, 128, 0.06); }
.hs-help__hit em { font-style: normal; font-family: var(--font-mono); font-size: 10px; letter-spacing: 0.14em; text-transform: uppercase; color: var(--color-green-light); }
.hs-help__hit b { font-size: 14px; font-weight: 600; }
.hs-help__hit span { font-size: 12.5px; line-height: 1.5; color: var(--white-50); }
.hs-help__none { padding: 16px 2px; font-size: 13.5px; color: var(--white-60); }
.hs-help__none a { color: var(--color-green-light); }

@media (max-width: 640px) {
  .live-chat { right: 16px; bottom: 16px; }
  .hs-help.live-chat__panel { position: fixed; left: 12px; right: 12px; bottom: 88px; width: auto; max-width: none; }
}

.hs-help__mark img { width: 15px; height: 19px; aspect-ratio: auto; }
.hs-help__mark { overflow: hidden; }

/* Inline form validation (all forms) */
.form-error { display: block; min-height: 0; margin-top: 6px; font-size: 12.5px; font-weight: 500; color: #ff8b8b; }
.form-error:empty { display: none; }
.form-field__input[aria-invalid="true"] { border-color: rgba(255, 107, 107, 0.7) !important; box-shadow: 0 0 0 4px rgba(255, 107, 107, 0.12) !important; }
.nl__form .hs-form:has([aria-invalid="true"]) { border-color: rgba(255, 107, 107, 0.7); }

.form-error { font-family: var(--font-body) !important; letter-spacing: 0 !important; text-transform: none !important; }

/* 1. Testimonial tabs: no underline bar */
.clients__bar { display: none; }

/* 3. Our projects: wider description panel */
.work-card__desc { max-width: none; right: var(--space-6); }
@media (min-width: 901px) { .work-card__desc { right: 20%; } }

/* Ranked rail cards: chips sit under the big number, never on top of it */
.tv-rail--ranked .tv-card__chips { top: auto; bottom: auto; top: 78px; }
@media (max-width: 700px) {
  .tv-rail--ranked .tv-card__rank { font-size: 42px; top: 12px; left: 12px; }
  .tv-rail--ranked .tv-card__chips { top: 62px; left: 12px; }
}

/* Project CTA (before Next project) */
.cs-cta { background: var(--color-navy-black); padding: var(--space-11) 0 0; }

.cs-cta__card {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-8);
  padding: clamp(28px, 4vw, 56px);
  border-radius: 24px;
  color: #fff;
  background:
    radial-gradient(520px circle at 100% 0%, rgba(0, 204, 106, 0.24), transparent 60%),
    #121413;
  border: 1px solid rgba(106, 234, 128, 0.18);
}

.cs-cta__title { margin-top: var(--space-4); font-family: var(--font-display); font-weight: 700; font-size: clamp(28px, 3.4vw, 46px); line-height: 1.05; letter-spacing: -0.035em; }
.cs-cta__text { margin-top: var(--space-4); max-width: 52ch; color: var(--white-60); font-size: var(--fs-lg); line-height: 1.6; }
.cs-cta__actions { display: flex; flex-wrap: wrap; gap: 10px; flex-shrink: 0; }
.cs-cta + .cs-next { padding-top: var(--space-8); }

@media (max-width: 800px) {
  .cs-cta__card { flex-direction: column; align-items: flex-start; }
  .cs-cta__actions { width: 100%; }
  .cs-cta__actions .btn { flex: 1; justify-content: center; }
}

@media (max-width: 640px) {
  .services { padding-top: var(--space-9); padding-bottom: var(--space-8); }
  .service-item { padding: 28px 24px; }
  .service-item__title { font-size: 28px !important; line-height: 1.08; }
  .service-item__desc { font-size: 16px; }
}

/* Mobile polish from the overlap / readability sweep */
@media (max-width: 640px) {
  .work-card__desc { left: 12px !important; right: 12px !important; bottom: 46px !important; }
  .work-hud__segs { bottom: 20px; }
}

/* Tap targets: tiny dots get a 32px invisible hit area */
.tv-spotlight__dot { position: relative; }
.tv-spotlight__dot::after { content: ""; position: absolute; inset: -12px -6px; }
.tv-spotlight__dots { gap: 12px; }

/* Minimum readable label size */
.cs-meta__chip em,
.software-showcase__mockup-status span,
.hs-console__mods em,
.mega-con__mods em { font-size: 11px; }

.work__list-item-index { font-size: 11px; }

/* Indexed list + stage sections (Our projects on Home and Projects,
   Our industries): no faint divider lines between items or down the
   middle; spacing alone separates them. */
.work__nav,
.work--light .work__nav,
.ind-scan__index {
  border-right: 0 !important;
}

.work__list,
.work--light .work__list,
.ind-scan__index .work__list {
  border-top: 0 !important;
}

.work__list-item,
.work--light .work__list-item,
.ind-scan__index-btn {
  border-bottom: 0 !important;
}

@media (max-width: 900px) { .ind-scan__dots { display: none !important; } }

/* Our solutions: the next card previews faintly and fades out at the
   bottom edge instead of being hard-cut. */
.service-list {
  -webkit-mask-image: linear-gradient(to bottom, #000 calc(100% - 90px), transparent);
          mask-image: linear-gradient(to bottom, #000 calc(100% - 90px), transparent);
}

/* Mega menu: dismissed state wins over :hover; preview is clickable */
.site-header.hs-mega-dismissed .site-header__mega,
.site-header.hs-mega-dismissed .site-header__mega-scrim {
  opacity: 0 !important;
  visibility: hidden !important;
  pointer-events: none !important;
}
.site-header__mega-preview { cursor: pointer; transition: transform 0.5s var(--hs-ease-out), border-color 0.3s ease; }
.site-header__mega-preview:hover { transform: translateY(-3px); border-color: rgba(106, 234, 128, 0.35) !important; }
html.hs-mega-open, html.hs-mega-open body { overflow: hidden; }

/* ===================================================================== */
/* "Build smarter." CTA — word rise, aurora, no typewriter               */
/* ===================================================================== */

.cta { isolation: isolate; }
.cta__bg img { transform: scale(1.12); transition: transform 2.4s var(--hs-ease-out); }
.cta.is-in .cta__bg img { transform: scale(1); }

.cta::after {
  /* slow drifting aurora behind the headline */
  content: "";
  position: absolute;
  z-index: 1;
  left: 50%;
  top: 50%;
  width: min(1100px, 120vw);
  height: 620px;
  margin: -310px 0 0 calc(min(1100px, 120vw) / -2);
  background:
    radial-gradient(40% 55% at 35% 45%, rgba(0, 204, 106, 0.32), transparent 70%),
    radial-gradient(35% 50% at 68% 55%, rgba(106, 234, 128, 0.18), transparent 70%);
  filter: blur(30px);
  opacity: 0;
  pointer-events: none;
  transition: opacity 1.6s ease;
  animation: hs-aurora 14s ease-in-out infinite alternate;
}

.cta.is-in::after { opacity: 1; }

@keyframes hs-aurora {
  from { transform: translate3d(-4%, 2%, 0) rotate(-4deg) scale(1); }
  to   { transform: translate3d(4%, -3%, 0) rotate(5deg) scale(1.08); }
}

.cta__content { position: relative; z-index: 2; }
.cta__title .typewriter-clip { all: unset; }

.cta__w { display: inline-block; overflow: hidden; vertical-align: top; padding-bottom: 0.08em; margin-bottom: -0.08em; }
.cta__w > span {
  display: inline-block;
  transform: translateY(105%) rotate(4deg);
  transform-origin: 0 100%;
  transition: transform 1.1s var(--hs-ease-out);
  transition-delay: calc(0.12s + var(--w, 0) * 0.12s);
}

.cta.is-in .cta__w > span { transform: none; }

.cta__w.accent > span {
  background: linear-gradient(100deg, var(--color-green-light) 20%, #d8ffe0 45%, var(--color-green-light) 70%);
  background-size: 250% 100%;
  -webkit-background-clip: text;
          background-clip: text;
  color: transparent;
  -webkit-text-fill-color: transparent;
  animation: hs-sheen 6s ease-in-out 1.6s infinite;
}

@keyframes hs-sheen { 0%, 60% { background-position: 100% 0; } 100% { background-position: -150% 0; } }

.cta .tag,
.cta__sub,
.cta__actions,
.cta__note {
  opacity: 0;
  transform: translateY(18px);
  transition: opacity 0.8s ease, transform 1s var(--hs-ease-out);
}

.cta.is-in .tag { opacity: 1; transform: none; transition-delay: 0.05s; }
.cta.is-in .cta__sub { opacity: 1; transform: none; transition-delay: 0.45s; }
.cta.is-in .cta__actions { opacity: 1; transform: none; transition-delay: 0.6s; }
.cta.is-in .cta__note { opacity: 1; transform: none; transition-delay: 0.75s; }

/* the section's own fade-up would double the entrance */
.cta.reveal > * { opacity: 1 !important; transform: none !important; filter: none !important; }

.cta__sub {
  margin: var(--space-6) auto 0;
  max-width: 46ch;
  font-size: var(--fs-xl);
  line-height: 1.6;
  color: var(--white-60);
  text-align: center;
}

.cta__actions { margin-top: var(--space-8) !important; }
.cta__actions .btn--white { box-shadow: 0 14px 40px -14px rgba(255, 255, 255, 0.45); }
.cta__actions .btn--white:hover { transform: none; box-shadow: 0 0 0 4px rgba(255, 255, 255, 0.12), 0 18px 44px -14px rgba(255, 255, 255, 0.55); }

.cta__note {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 8px 22px;
  margin-top: var(--space-6);
  font-size: var(--fs-sm);
  color: var(--white-50);
}

.cta__note span { display: inline-flex; align-items: center; gap: 8px; }
.cta__note i { width: 6px; height: 6px; border-radius: 50%; background: var(--color-green-light); }

@media (prefers-reduced-motion: reduce) {
  .cta__w > span, .cta .tag, .cta__sub, .cta__actions, .cta__note { transform: none !important; opacity: 1 !important; transition: none !important; }
  .cta::after, .cta__w.accent > span { animation: none; }
}

/* ===================================================================== */
/* Footer wordmark "signal"                                              */
/* ===================================================================== */

.hs-wm { position: relative; }

.hs-wm > svg path {
  transform: translateY(40%);
  opacity: 0;
  transform-box: fill-box;
  transition: transform 1.2s var(--hs-ease-out), opacity 0.8s ease;
  transition-delay: calc(var(--i, 0) * 0.07s);
}

.hs-wm.is-in > svg path { transform: none; opacity: 1; }

.hs-wm__glow {
  position: absolute;
  inset: 0;
  pointer-events: none;
  /* A wide, feathered light rather than a hard spotlight: many soft stops so
     the falloff has no visible edge. */
  -webkit-mask-image: radial-gradient(34vw 150% at var(--gx, 50%) var(--gy, 55%), rgba(0,0,0,0.9) 0%, rgba(0,0,0,0.62) 18%, rgba(0,0,0,0.34) 38%, rgba(0,0,0,0.14) 58%, rgba(0,0,0,0.04) 76%, transparent 92%);
          mask-image: radial-gradient(34vw 150% at var(--gx, 50%) var(--gy, 55%), rgba(0,0,0,0.9) 0%, rgba(0,0,0,0.62) 18%, rgba(0,0,0,0.34) 38%, rgba(0,0,0,0.14) 58%, rgba(0,0,0,0.04) 76%, transparent 92%);
  opacity: 0;
  transition: opacity 1.6s ease;
}

.hs-wm.is-in .hs-wm__glow { opacity: 0.28; transition-delay: 1s; }
.hs-wm.is-hover .hs-wm__glow { opacity: 0.55; transition-delay: 0s; }

.hs-wm__glow svg { display: block; width: 100%; height: auto; margin-bottom: -5.5vw; }
.hs-wm__glow svg path {
  fill: #7ff08f !important;
  filter: none;
}

@media (prefers-reduced-motion: reduce) {
  .hs-wm > svg path { transform: none; opacity: 1; transition: none; }
  .hs-wm__glow { display: none; }
}

/* ===================================================================== */
/* Insights page — featured + filterable grid                            */
/* ===================================================================== */

.ins { background: var(--color-navy-black); color: #fff; padding: var(--space-8) 0 var(--space-11); }

.ins-feat {
  display: grid;
  grid-template-columns: minmax(0, 1.25fr) minmax(0, 1fr);
  border-radius: 24px;
  overflow: hidden;
  background: #121413;
  border: 1px solid rgba(255, 255, 255, 0.08);
  transition: border-color 0.4s ease, transform 0.6s var(--hs-ease-out);
}

.ins-feat:hover { border-color: rgba(106, 234, 128, 0.3); transform: translateY(-3px); }
.ins-feat__media { position: relative; min-height: 380px; overflow: hidden; background: #1a1c1b; }
.ins-feat__media img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; transition: transform 1.4s var(--hs-ease-out); }
.ins-feat:hover .ins-feat__media img { transform: scale(1.04); }
.ins-feat__body { display: flex; flex-direction: column; justify-content: center; gap: 16px; padding: clamp(28px, 4vw, 56px); }
.ins-feat__chips { display: flex; gap: 6px; }
.ins-feat__title { font-family: var(--font-display); font-weight: 700; font-size: clamp(28px, 3vw, 42px); line-height: 1.06; letter-spacing: -0.03em; }
.ins-feat__text { color: var(--white-60); font-size: var(--fs-lg); line-height: 1.6; }
.ins-feat__meta { display: flex; align-items: center; gap: 8px; font-family: var(--font-mono); font-size: 11px; letter-spacing: 0.12em; text-transform: uppercase; color: var(--white-40); margin-top: 8px; }
.ins-feat__go { margin-left: auto; display: grid; place-items: center; width: 46px; height: 46px; border-radius: 50%; background: var(--color-green-light); color: var(--color-navy-black); font-size: 18px; transition: transform 0.5s var(--hs-ease-out); }
.ins-feat:hover .ins-feat__go { transform: translateX(5px); }

.ins__bar { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 16px; margin: var(--space-11) 0 var(--space-6); }
.ins__title { font-family: var(--font-display); font-weight: 700; font-size: clamp(26px, 2.6vw, 36px); letter-spacing: -0.03em; }
.ins__filters { display: flex; flex-wrap: wrap; gap: 6px; padding: 5px; border-radius: var(--radius-pill); background: rgba(255, 255, 255, 0.05); border: 1px solid rgba(255, 255, 255, 0.08); }
.ins__filter { padding: 9px 16px; border: 0; border-radius: var(--radius-pill); background: none; color: var(--white-60); font: inherit; font-size: var(--fs-md); font-weight: 600; cursor: pointer; transition: background-color 0.3s ease, color 0.3s ease; }
.ins__filter:hover { color: #fff; }
.ins__filter.is-active { background: var(--color-green-light); color: var(--color-navy-black); }

.ins__grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 20px; }

.ins-card {
  display: flex;
  flex-direction: column;
  border-radius: 20px;
  overflow: hidden;
  background: #121413;
  border: 1px solid rgba(255, 255, 255, 0.07);
  transition: border-color 0.4s ease, transform 0.6s var(--hs-ease-out), box-shadow 0.6s ease;
}

.ins-card[hidden] { display: none; }
.ins-card:hover { border-color: rgba(106, 234, 128, 0.3); transform: translateY(-4px); box-shadow: 0 40px 70px -40px rgba(0, 0, 0, 0.9); }
.ins__grid.is-filtering { overflow: clip; overflow-clip-margin: 24px; }
.ins-card { will-change: transform; }
.ins-card__media { position: relative; aspect-ratio: 16 / 10; overflow: hidden; background: #1a1c1b; }
.ins-card__media img { width: 100%; height: 100%; object-fit: cover; transition: transform 1.2s var(--hs-ease-out); }
.ins-card:hover .ins-card__media img { transform: scale(1.05); }
.ins-card__body { display: flex; flex-direction: column; gap: 10px; padding: 20px 22px 24px; flex: 1; }
.ins-card__topic { font-family: var(--font-mono); font-size: 11px; letter-spacing: 0.14em; text-transform: uppercase; color: var(--color-green-light); }
.ins-card__title { font-family: var(--font-display); font-weight: 700; font-size: 20px; line-height: 1.2; letter-spacing: -0.02em; }
.ins-card__meta { margin-top: auto; padding-top: 8px; font-size: 12.5px; color: var(--white-40); }

.ins + .nl { padding-top: 0; }

@media (max-width: 1000px) { .ins__grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 760px) {
  .ins-feat { grid-template-columns: 1fr; }
  .ins-feat__media { min-height: 220px; }
  .ins__grid { grid-template-columns: 1fr; }
  .ins__filters { width: 100%; overflow-x: auto; flex-wrap: nowrap; scrollbar-width: none; }
}

/* View-transition arrival: EVERY entrance effect is suppressed while the
   scan wipe plays (it is the entrance), and during the one-frame hand-off
   after it, so nothing on screen animates twice. */
html.hs-vt-arrived .reveal > *,
html.hs-vt-arrived .stagger-item,
html.hs-vt-arrived .cta .tag,
html.hs-vt-arrived .cta__sub,
html.hs-vt-arrived .cta__actions,
html.hs-vt-arrived .cta__note,
html.hs-vt-arrived .cta__w > span,
html.hs-vt-arrived .hs-console,
html.hs-vt-arrived .hs-console__mods li,
html.hs-vt-arrived .hs-console__area,
html.hs-vt-arrived .hs-console__tip,
html.hs-vt-arrived .hs-wm > svg path,
html.hs-vt-settle .reveal > *,
html.hs-vt-settle .stagger-item,
html.hs-vt-settle .cta *,
html.hs-vt-settle .hs-wm > svg path {
  transition: none !important;
  animation: none !important;
  opacity: 1 !important;
  transform: none !important;
  filter: none !important;
}

html.hs-vt-arrived .hs-console__line { animation: none !important; stroke-dashoffset: 0 !important; }
html.hs-vt-arrived .hs-hero-fx::before { animation: none !important; opacity: 1 !important; }
html.hs-vt-arrived .hs-console { transform: perspective(1400px) rotateY(-8deg) rotateX(4deg) !important; }

/* Our projects: description panel spans the card with equal side margins */
.work-card__desc { left: var(--space-6) !important; right: var(--space-6) !important; max-width: none !important; }
@media (max-width: 640px) { .work-card__desc { left: 12px !important; right: 12px !important; } }

/* ── Project single: CTA and Next project are now two distinct pieces ──
   CTA: a full-bleed green band. Next: a full-bleed image banner with all
   content in normal flow (no absolutely positioned arrow over text). */
.cs-cta { position: relative; background: var(--color-off-white, #f4f2ee); padding: clamp(64px, 9vw, 120px) 0; color: #0b0d0c; overflow: hidden; }
.cs-cta::before { content: ""; position: absolute; inset: 0; pointer-events: none; background-image: radial-gradient(rgba(11,13,12,0.09) 1px, transparent 1.2px); background-size: 18px 18px; -webkit-mask-image: linear-gradient(90deg, transparent 35%, #000 100%); mask-image: linear-gradient(90deg, transparent 35%, #000 100%); }
.cs-cta .container { position: relative; }
.cs-cta .cs-cta__card { background: none; border: 0; border-radius: 0; padding: 0; color: inherit; align-items: flex-end; }
.cs-cta .tag { color: #0b0d0c; }
.cs-cta .cs-cta__title { font-size: clamp(34px, 4.6vw, 64px); line-height: 1; letter-spacing: -0.045em; max-width: 17ch; color: #0b0d0c; }
.cs-cta .cs-cta__text { color: rgba(11, 13, 12, 0.66); }
.cs-cta .btn--outline { background: transparent; color: #0b0d0c; border-color: rgba(11, 13, 12, 0.22); }
.cs-cta .btn--outline:hover { background: rgba(11, 13, 12, 0.05); border-color: #0b0d0c; color: #0b0d0c; }

.cs-cta + .cs-next, .cs-next { padding: clamp(56px, 8vw, 104px) 0 clamp(64px, 9vw, 120px); background: var(--color-navy-black); }
.cs-next__head { display: flex; align-items: baseline; justify-content: space-between; gap: 16px; margin-bottom: var(--space-6); }
.cs-next__head .cs-next__label { font-size: 12px; }
.cs-next__all { margin: 0 !important; font-size: 15px; }
.cs-next__card {
  position: relative; display: flex !important; align-items: flex-end;
  min-height: clamp(360px, 42vw, 560px); border-radius: 24px; overflow: hidden;
  border: 0 !important; background: #121413; color: #fff; isolation: isolate;
  grid-template-columns: none !important;
}
.cs-next__card:hover { transform: none !important; }
.cs-next__media { position: absolute !important; inset: 0; min-height: 0 !important; z-index: -1; }
.cs-next__media::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(11,13,12,0.05) 20%, rgba(11,13,12,0.55) 60%, rgba(11,13,12,0.92) 100%); }
.cs-next__body { width: 100%; padding: clamp(24px, 4vw, 56px) !important; display: block !important; }
.cs-next__name { display: block; margin: 0 !important; font-size: clamp(40px, 7vw, 104px) !important; letter-spacing: -0.05em; line-height: 0.95; }
.cs-next__row { display: flex; align-items: flex-end; justify-content: space-between; gap: 24px; margin-top: 18px; }
.cs-next__summary { margin: 0 !important; color: rgba(255,255,255,0.72) !important; max-width: 48ch; }
.cs-next__go {
  position: static !important; flex-shrink: 0; width: auto !important; height: auto !important;
  display: inline-flex !important; align-items: center; gap: 10px; padding: 14px 22px; border-radius: 999px;
  background: #6AEA80 !important; color: #0b0d0c !important; font-family: var(--font-display); font-weight: 600; font-size: 15px;
  transition: gap .4s var(--hs-ease-out), background .3s;
}
.cs-next__card:hover .cs-next__go { transform: none !important; gap: 16px; background: #fff !important; }
@media (max-width: 900px) {
  .cs-cta .cs-cta__card { align-items: flex-start; }
  .cs-next__body { padding-bottom: clamp(24px, 4vw, 56px) !important; }
  .cs-next__row { flex-direction: column; align-items: flex-start; gap: 18px; }
  .cs-next__card { min-height: 440px; }
}

/* ===================================================================== */
/* AI & Automation explorer: text aligned to the site container, and     */
/* illustrative diagrams (template-parts/components/ai-diagram.php) in   */
/* place of photos. Stage is 560x600, scaled by initAiDiagrams.          */
/* ===================================================================== */

.aiservices-stage-card__text,
.hs-split .aiservices-stage-card__text {
  padding-left: max(var(--space-9), calc((100vw - var(--container-width)) / 2 + var(--space-8)));
  padding-right: var(--space-9);
}
@media (min-width: 901px) {
  .aiservices-stage-card__text, .hs-split__col--text { flex-basis: 50% !important; }
}

.aiservices-stage-card__media--diagram { overflow: hidden; }

.aid {
  --aid-bg: #f4f2ee; --aid-ink: #0b0d0c; --aid-line: rgba(11, 13, 12, 0.78); --aid-soft: rgba(11, 13, 12, 0.5);
  --aid-faint: rgba(11, 13, 12, 0.14); --aid-card: #fbfaf8; --aid-fill: #dfe6dd; --aid-acc: #00CC6A; --aid-acc-ink: #0b0d0c;
  --aid-acc-soft: rgba(0, 204, 106, 0.16); --aid-dot: rgba(11, 13, 12, 0.09);
  position: absolute; inset: 0; display: grid; place-items: center; overflow: hidden;
  background: var(--aid-bg); color: var(--aid-ink);
  font-family: var(--font-body);
}
.aid--dark {
  --aid-bg: #0f1110; --aid-ink: #f4f2ee; --aid-line: rgba(255, 255, 255, 0.5); --aid-soft: rgba(255, 255, 255, 0.5);
  --aid-faint: rgba(255, 255, 255, 0.12); --aid-card: #151816; --aid-fill: #1e2620; --aid-acc: #6AEA80; --aid-acc-ink: #0b0d0c;
  --aid-acc-soft: rgba(106, 234, 128, 0.14); --aid-dot: rgba(255, 255, 255, 0.07);
}
.aid::before {
  content: ""; position: absolute; inset: 0; pointer-events: none;
  background-image: radial-gradient(var(--aid-dot) 1px, transparent 1.3px); background-size: 16px 16px;
}
.aid__stage { position: absolute; left: 50%; top: 50%; width: 560px; height: 600px; transform: translate(-50%, -50%) scale(var(--aid-s, 1)); transform-origin: center; }
.aid__stage > *, .aid-svg { position: absolute; }
.aid-svg { inset: 0; width: 560px; height: 600px; overflow: visible; }
.aid-line, .aid-flow { fill: none; stroke-width: 1.5; }
.aid-line { stroke: var(--aid-line); }
.aid-flow { stroke: var(--aid-acc); stroke-dasharray: 3 6; stroke-linecap: round; }
.aid.is-on .aid-flow { animation: aid-flow 1.1s linear infinite; }
@keyframes aid-flow { to { stroke-dashoffset: -18; } }

.aid-cap { font-family: var(--font-mono); font-size: 11px; letter-spacing: 0.14em; text-transform: uppercase; color: var(--aid-soft); white-space: nowrap; }
.aid-n { display: inline-grid; place-items: center; flex: none; width: 17px; height: 17px; border: 1.2px solid currentColor; border-radius: 50%; font: 500 9.5px/1 var(--font-mono); font-style: normal; opacity: 0.8; }
.aid-pill {
  display: inline-flex; align-items: center; gap: 8px; white-space: nowrap;
  padding: 9px 16px 9px 11px; border: 1.5px solid var(--aid-line); border-radius: 999px;
  background: var(--aid-card); font-size: 14px; line-height: 1; color: var(--aid-ink);
}
.aid-pill--fill { background: var(--aid-fill); }
.aid-pill--acc { background: var(--aid-acc); border-color: var(--aid-acc); color: var(--aid-acc-ink); }
.aid-tick { width: 14px; height: 14px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.aid-row { left: 0; right: 0; display: flex; justify-content: center; gap: 10px; }

/* Entrance helpers: everything waits for .is-on (replays on re-entry). */
.aid-pop { opacity: 0; transform: translateY(10px); transition: opacity .5s ease, transform .7s var(--hs-ease-out); transition-delay: calc(var(--k, 0) * 110ms + 250ms); }
.aid.is-on .aid-pop { opacity: 1; transform: none; }

/* D1: hub */
.aid-box { display: flex; align-items: center; height: 40px; padding: 0 14px; width: 130px; border: 1.5px solid var(--aid-line); background: var(--aid-card); font-size: 14px; white-space: nowrap; opacity: 0; transition: opacity .5s ease, transform .8s var(--hs-ease-out), border-color .4s, box-shadow .4s; transition-delay: calc(var(--k) * 80ms); }
.aid-box--l { transform: translateX(-24px); }
.aid-box--r { transform: translateX(24px); transition-delay: calc(var(--k) * 80ms + 350ms); }
.aid-box--acc { border-color: var(--aid-acc); color: var(--aid-acc); }
.aid--light .aid-box--acc { color: #00994f; }
.aid.is-on .aid-box { opacity: 1; transform: none; }
.aid.is-on .aid-box--l, .aid.is-on .aid-box--r:not(.aid-box--acc) { animation: aid-ping 4.8s ease-in-out infinite; animation-delay: calc(var(--k) * 0.8s + 1.2s); }
@keyframes aid-ping { 0%, 18%, 100% { border-color: var(--aid-line); box-shadow: none; } 6% { border-color: var(--aid-acc); box-shadow: 0 0 0 4px var(--aid-acc-soft); } }
.aid-hub { left: 196px; top: 216px; width: 168px; height: 168px; border: 1.5px solid var(--aid-line); background: var(--aid-card); box-shadow: 0 30px 60px -30px rgba(0,0,0,.35); opacity: 0; transform: scale(.94); transition: opacity .6s ease .15s, transform .9s var(--hs-ease-out) .15s; }
.aid.is-on .aid-hub { opacity: 1; transform: none; }
.aid-hub__logo { position: absolute; left: 16px; bottom: 44px; width: 92px; height: auto; color: var(--aid-ink); }
.aid--dark .aid-hub__logo { color: #6AEA80; }
.aid-hub__bar { position: absolute; left: 16px; right: 16px; bottom: 20px; height: 14px; display: flex; gap: 3px; }
.aid-hub__bar i { flex: 1; background: var(--aid-acc); opacity: .18; }
.aid.is-on .aid-hub__bar i { animation: aid-bar 1.6s ease-in-out infinite; }
.aid-hub__bar i:nth-child(2) { animation-delay: .1s !important; } .aid-hub__bar i:nth-child(3) { animation-delay: .2s !important; }
.aid-hub__bar i:nth-child(4) { animation-delay: .3s !important; } .aid-hub__bar i:nth-child(5) { animation-delay: .4s !important; }
.aid-hub__bar i:nth-child(6) { animation-delay: .5s !important; } .aid-hub__bar i:nth-child(7) { animation-delay: .6s !important; }
.aid-hub__bar i:nth-child(8) { animation-delay: .7s !important; }
@keyframes aid-bar { 0%, 100% { opacity: .18; } 30% { opacity: 1; } }

/* D2: document */
.aid-doc { left: 40px; top: 110px; width: 212px; height: 290px; padding: 22px 20px; border: 1.5px solid var(--aid-line); background: var(--aid-card); overflow: hidden; display: flex; flex-direction: column; gap: 12px; box-shadow: 0 30px 60px -34px rgba(0,0,0,.35); opacity: 0; transform: translateY(14px) rotate(-2deg); transition: opacity .6s ease, transform .9s var(--hs-ease-out); }
.aid.is-on .aid-doc { opacity: 1; transform: rotate(-2deg); }
.aid-doc__cap { font-family: var(--font-mono); font-size: 11px; letter-spacing: .14em; text-transform: uppercase; color: var(--aid-soft); }
.aid-doc__no { font-family: var(--font-display); font-weight: 700; font-size: 22px; letter-spacing: -0.03em; margin: -6px 0 6px; }
.aid-doc__ln { display: block; height: 8px; border-radius: 4px; background: var(--aid-faint); }
.aid-doc__ln--gap { margin-top: 12px; }
.aid-doc__ln--tot { margin-top: auto; height: 12px; align-self: flex-end; background: var(--aid-acc-soft); outline: 1.5px solid var(--aid-acc); outline-offset: 3px; }
.aid-doc__scan { position: absolute; left: 0; right: 0; top: 0; height: 2px; background: var(--aid-acc); box-shadow: 0 0 14px 2px var(--aid-acc); opacity: 0; }
.aid-doc__scan::after { content: ""; position: absolute; left: 0; right: 0; bottom: 2px; height: 46px; background: linear-gradient(to top, var(--aid-acc-soft), transparent); }
.aid.is-on .aid-doc__scan { animation: aid-scan 2.8s cubic-bezier(.45, 0, .55, 1) infinite .6s; }
@keyframes aid-scan { 0% { top: 0; opacity: 0; } 8% { opacity: 1; } 88% { opacity: 1; } 100% { top: 100%; opacity: 0; } }
.aid-fields { left: 300px; top: 110px; width: 232px; padding: 16px 0 6px; border: 1.5px solid var(--aid-line); background: var(--aid-card); }
.aid-cap--in { position: static; display: block; padding: 0 16px 10px; border-bottom: 1.5px solid var(--aid-faint); }
.aid-field { display: grid; grid-template-columns: 1fr auto 16px; align-items: center; gap: 8px; padding: 12px 16px; border-bottom: 1px solid var(--aid-faint); font-size: 13px; opacity: 0; transform: translateX(10px); transition: opacity .45s ease, transform .7s var(--hs-ease-out); transition-delay: calc(var(--k) * 220ms + 700ms); }
.aid-field:last-child { border-bottom: 0; }
.aid-field em { font-style: normal; color: var(--aid-soft); }
.aid-field b { font-weight: 600; }
.aid-field svg { width: 16px; height: 16px; fill: none; stroke: var(--aid-acc); stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.aid.is-on .aid-field { opacity: 1; transform: none; }
.aid--d2 .aid-pop { transition-delay: calc(var(--k) * 140ms + 1.2s); }

/* D3: workflow */
.aid-node { display: flex; flex-direction: column; justify-content: center; gap: 4px; width: 220px; height: 52px; padding: 0 16px; border: 1.5px solid var(--aid-line); background: var(--aid-card); font-size: 14px; white-space: nowrap; opacity: 0; transform: translateY(10px); transition: opacity .5s ease, transform .8s var(--hs-ease-out); transition-delay: calc(var(--k) * 140ms); }
.aid-node em { font-family: var(--font-mono); font-style: normal; font-size: 9.5px; letter-spacing: .14em; text-transform: uppercase; color: var(--aid-soft); }
.aid-node--ai em { color: var(--aid-acc); }
.aid--light .aid-node--ai em { color: #00994f; }
.aid.is-on .aid-node { opacity: 1; transform: none; animation: aid-lit 6s ease-in-out infinite; animation-delay: calc(var(--k) * 0.7s + 0.8s); }
@keyframes aid-lit { 0%, 100% { border-color: var(--aid-line); box-shadow: none; } 4%, 60% { border-color: var(--aid-acc); box-shadow: 0 0 0 4px var(--aid-acc-soft); } 72% { border-color: var(--aid-line); box-shadow: none; } }
.aid-node-done { opacity: 0; transform: scale(.9); transition: opacity .5s ease, transform .6s cubic-bezier(.3, 1.4, .5, 1); transition-delay: 1.1s; }
.aid.is-on .aid-node-done { opacity: 1; transform: none; }

/* D4: assistant window */
.aid-win { left: 40px; top: 60px; width: 480px; height: 480px; display: flex; flex-direction: column; border: 1.5px solid var(--aid-line); background: var(--aid-card); box-shadow: 0 40px 80px -40px rgba(0,0,0,.4); opacity: 0; transform: translateY(14px); transition: opacity .6s ease, transform .9s var(--hs-ease-out); }
.aid.is-on .aid-win { opacity: 1; transform: none; }
.aid-win__bar { display: flex; align-items: center; gap: 6px; height: 42px; padding: 0 16px; border-bottom: 1.5px solid var(--aid-faint); }
.aid-win__bar i { width: 9px; height: 9px; border-radius: 50%; border: 1.2px solid var(--aid-soft); }
.aid-win__logo { width: 70px; height: auto; margin-left: 10px; color: var(--aid-ink); }
.aid--dark .aid-win__logo { color: #6AEA80; }
.aid-win__bar span { margin-left: 6px; font-family: var(--font-mono); font-size: 11px; letter-spacing: .14em; text-transform: uppercase; color: var(--aid-soft); }
.aid-win__body { position: relative; flex: 1; padding: 20px; display: flex; flex-direction: column; gap: 14px; }
.aid-msg { margin: 0; font-size: 14px; line-height: 1.45; }
.aid-msg--me { align-self: flex-end; max-width: 72%; padding: 11px 15px; border-radius: 16px 16px 4px 16px; background: var(--aid-ink); color: var(--aid-bg); opacity: 0; transform: translateY(8px); transition: opacity .45s ease .3s, transform .7s var(--hs-ease-out) .3s; }
.aid-think { position: absolute; left: 20px; top: 88px; display: flex; gap: 4px; padding: 12px 14px; border-radius: 16px; background: var(--aid-fill); opacity: 0; }
.aid-think i { width: 6px; height: 6px; border-radius: 50%; background: var(--aid-soft); }
.aid.is-on .aid-think { animation: aid-think 1.1s ease 0.9s both; }
.aid.is-on .aid-think i { animation: aid-dot .6s ease-in-out infinite alternate; }
.aid-think i:nth-child(2) { animation-delay: .2s !important; } .aid-think i:nth-child(3) { animation-delay: .4s !important; }
@keyframes aid-think { 0% { opacity: 0; } 15%, 80% { opacity: 1; } 100% { opacity: 0; } }
@keyframes aid-dot { to { transform: translateY(-4px); opacity: .4; } }
.aid-msg--ai { align-self: stretch; padding: 15px 16px; border: 1.5px solid var(--aid-faint); border-radius: 16px 16px 16px 4px; display: flex; flex-direction: column; gap: 9px; opacity: 0; transform: translateY(8px); transition: opacity .5s ease 2s, transform .8s var(--hs-ease-out) 2s; }
.aid-msg--ai p { margin: 0 0 3px; }
.aid.is-on .aid-msg--me, .aid.is-on .aid-msg--ai { opacity: 1; transform: none; }
.aid-bar { display: grid; grid-template-columns: 128px 1fr; align-items: center; gap: 10px; font-size: 12.5px; }
.aid-bar em { font-style: normal; color: var(--aid-soft); white-space: nowrap; }
.aid-bar i { display: block; height: 12px; width: var(--w); background: var(--aid-acc); transform: scaleX(0); transform-origin: left; transition: transform 1s var(--hs-ease-out); transition-delay: calc(var(--k) * 110ms + 2.3s); }
.aid.is-on .aid-bar i { transform: none; }
.aid-src { display: flex; gap: 6px; margin-top: 4px; }
.aid-src span { padding: 5px 10px; border: 1px solid var(--aid-faint); border-radius: 999px; font-family: var(--font-mono); font-size: 10px; letter-spacing: .08em; color: var(--aid-soft); }
.aid-win__input { display: flex; align-items: center; justify-content: space-between; margin: 0 16px 16px; height: 46px; padding: 0 6px 0 16px; border: 1.5px solid var(--aid-faint); border-radius: 999px; font-size: 13px; color: var(--aid-soft); }
.aid-win__input i { display: grid; place-items: center; width: 34px; height: 34px; border-radius: 50%; background: var(--aid-acc); }
.aid-win__input svg { width: 16px; height: 16px; fill: none; stroke: #0b0d0c; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }

/* D5: capacity */
.aid-cap-row { left: 40px; width: 480px; }
.aid-cap-row__label { display: block; margin-bottom: 10px; font-family: var(--font-display); font-weight: 600; font-size: 16px; }
.aid-cap-row__bar { display: flex; height: 46px; border: 1.5px solid var(--aid-line); background: var(--aid-card); overflow: hidden; }
.aid-seg { display: flex; align-items: center; justify-content: flex-end; padding-right: 12px; font: 600 14px/1 var(--font-display); font-style: normal; color: #0b0d0c; flex: 0 0 var(--w); transform: scaleX(0); transform-origin: left; transition: transform .9s var(--hs-ease-out); transition-delay: calc(var(--k) * 120ms + 200ms); }
.aid-seg + .aid-seg { box-shadow: inset 1.5px 0 0 var(--aid-bg); }
.aid.is-on .aid-seg { transform: none; }
.aid-seg--0 { background: color-mix(in srgb, var(--aid-ink) 55%, transparent); }
.aid-seg--1 { background: color-mix(in srgb, var(--aid-ink) 35%, transparent); }
.aid-seg--2 { background: color-mix(in srgb, var(--aid-ink) 18%, transparent); }
.aid-seg--3 { background: var(--aid-acc); }
.aid-legend { left: 40px; width: 480px; display: flex; flex-wrap: wrap; gap: 8px 18px; font-size: 12.5px; color: var(--aid-soft); }
.aid-legend span { display: inline-flex; align-items: center; gap: 7px; }
.aid-legend i { width: 10px; height: 10px; }
.aid-grid3 { left: 40px; width: 480px; height: 150px; display: grid; grid-template-columns: repeat(3, 1fr); border: 1.5px solid var(--aid-line); background: var(--aid-card); }
.aid-grid3 div { display: flex; flex-direction: column; gap: 8px; padding: 18px 16px; opacity: 0; transform: translateY(8px); transition: opacity .5s ease, transform .8s var(--hs-ease-out); transition-delay: calc(var(--k) * 140ms + 1.3s); }
.aid-grid3 div + div { border-left: 1.5px solid var(--aid-line); }
.aid-grid3 b { font-family: var(--font-display); font-weight: 600; font-size: 15px; line-height: 1.2; }
.aid-grid3 span { font-size: 13px; line-height: 1.45; color: var(--aid-soft); }
.aid.is-on .aid-grid3 div { opacity: 1; transform: none; }
.aid-note { right: 40px; top: 516px; font-family: var(--font-mono); font-size: 10px; letter-spacing: .14em; text-transform: uppercase; color: var(--aid-soft); opacity: .7; }

@media (max-width: 900px) {
  .aiservices-stage-card__media--diagram { position: relative; min-height: 0 !important; height: min(112vw, 560px); }
}
@media (prefers-reduced-motion: reduce) {
  .aid *, .aid *::before, .aid *::after { animation: none !important; transition: none !important; }
  .aid .aid-pile .aid-pill { transform: rotate(var(--r)); opacity: 1; }
  .aid [style*="--k"], .aid-pop, .aid-box, .aid-hub, .aid-doc, .aid-field, .aid-node, .aid-node-done, .aid-win, .aid-msg--me, .aid-msg--ai, .aid-grid3 div, .aid-stack .aid-pill { opacity: 1 !important; }
  .aid-bar i, .aid-seg { transform: none !important; }
}

/* Nav: no indicator dot on the current page (it read as a stray mark). */
.site-header__nav > a[aria-current="page"]::after,
.site-header__nav a[aria-current="page"]::after { content: none !important; display: none !important; }

/* Explorer layout: text starts on the container's left edge, the diagram
   ends on its right edge, so both halves share the same outer margin. */
.aiservices-explorer { --aid-edge: max(var(--space-9), calc((100vw - var(--container-width)) / 2 + var(--space-8))); }
.aiservices-stage-card__text, .hs-split .aiservices-stage-card__text { padding-left: var(--aid-edge); padding-right: clamp(40px, 5vw, 88px); }
.aiservices-stage-card__text-inner { max-width: 500px; }
@media (min-width: 901px) {
  .aid { padding-right: calc(var(--aid-edge) - clamp(16px, 2vw, 32px)); box-sizing: border-box; }
  .aid__stage { left: calc(50% - (var(--aid-edge) - clamp(16px, 2vw, 32px)) / 2); }
}

/* D0: an example week. Blocks fill the calendar, a scan sweeps across and
   the repetitive ones shrink to thin "auto" chips, freeing the week. */
.aid-toggle { display: flex; padding: 3px; border: 1.5px solid var(--aid-line); border-radius: 999px; background: var(--aid-card); font-size: 12px; }
.aid-toggle span { position: relative; z-index: 1; width: 86px; padding: 7px 0; text-align: center; border-radius: 999px; transition: color .4s ease 1.8s; }
.aid-toggle span:first-child { color: var(--aid-bg); }
.aid-toggle i { position: absolute; left: 3px; top: 3px; bottom: 3px; width: 86px; border-radius: 999px; background: var(--aid-ink); transition: transform .6s var(--hs-ease-out) 1.8s, background-color .4s ease 1.8s; }
.aid.is-on .aid-toggle i { transform: translateX(86px); background: var(--aid-acc); }
.aid.is-on .aid-toggle span:first-child { color: var(--aid-ink); }
.aid.is-on .aid-toggle span:nth-child(2) { color: var(--aid-acc-ink); }
.aid:not(.is-on) .aid-toggle i, .aid:not(.is-on) .aid-toggle span { transition-delay: 0s; }

.aid-week { left: 40px; top: 96px; width: 480px; height: 404px; display: grid; grid-template-columns: repeat(5, 1fr); border: 1.5px solid var(--aid-line); background: var(--aid-card); overflow: hidden; }
.aid-day + .aid-day { border-left: 1.5px solid var(--aid-faint); }
.aid-day__name { display: flex; align-items: center; height: 34px; padding: 0 10px; border-bottom: 1.5px solid var(--aid-line); font-family: var(--font-mono); font-size: 10.5px; letter-spacing: .14em; text-transform: uppercase; color: var(--aid-soft); }
.aid-day__col { position: relative; height: 368px; background-image: repeating-linear-gradient(to bottom, transparent 0 45px, var(--aid-faint) 45px 46px); }
.aid-blk {
  position: absolute; left: 5px; right: 5px; top: calc(var(--t) * 46px + 3px); height: calc(var(--d) * 46px - 6px);
  display: flex; align-items: flex-start; padding: 7px 8px; overflow: hidden;
  border: 1.5px solid var(--aid-line); background: var(--aid-card); font-size: 11px; line-height: 1.2;
  opacity: 0; transform: translateY(6px);
  transition: opacity .4s ease, transform .6s var(--hs-ease-out), height .7s var(--hs-ease-out), background-color .5s ease, border-color .5s ease;
  transition-delay: calc(var(--q) * 40ms), calc(var(--q) * 40ms), 0s, 0s, 0s;
}
.aid-blk b { font-weight: 500; white-space: nowrap; transition: opacity .3s ease; }
.aid-blk--rep { border-color: transparent; background: color-mix(in srgb, var(--aid-ink) 13%, transparent); color: color-mix(in srgb, var(--aid-ink) 72%, transparent); }
.aid-blk em { position: absolute; left: 7px; top: 3px; display: inline-flex; align-items: center; gap: 4px; font-style: normal; font-family: var(--font-mono); font-size: 9.5px; letter-spacing: .08em; text-transform: uppercase; color: var(--aid-acc); opacity: 0; transition: opacity .3s ease; }
.aid--light .aid-blk em { color: #00994f; }
.aid-blk em svg { width: 11px; height: 11px; fill: none; stroke: currentColor; stroke-width: 2.2; stroke-linecap: round; stroke-linejoin: round; }
.aid.is-on .aid-blk { opacity: 1; transform: none; }
.aid.is-on .aid-blk--rep { height: 20px; background: var(--aid-acc-soft); border: 1.5px dashed var(--aid-acc); transition-delay: calc(var(--q) * 40ms), calc(var(--q) * 40ms), calc(2s + var(--c) * .3s), calc(2s + var(--c) * .3s), calc(2s + var(--c) * .3s); }
.aid.is-on .aid-blk--rep b { opacity: 0; transition-delay: calc(1.95s + var(--c) * .3s); }
.aid.is-on .aid-blk--rep em { opacity: 1; transition-delay: calc(2.25s + var(--c) * .3s); }
.aid-week__scan { position: absolute; top: 34px; bottom: 0; left: 0; width: 2px; background: var(--aid-acc); box-shadow: 0 0 16px 2px var(--aid-acc); opacity: 0; }
.aid-week__scan::before { content: ""; position: absolute; top: 0; bottom: 0; right: 2px; width: 60px; background: linear-gradient(to left, var(--aid-acc-soft), transparent); }
.aid.is-on .aid-week__scan { animation: aid-sweep 1.7s cubic-bezier(.45, 0, .55, 1) 1.85s both; }
@keyframes aid-sweep { 0% { left: 0; opacity: 0; } 8% { opacity: 1; } 92% { opacity: 1; } 100% { left: 100%; opacity: 0; } }
.aid-back { left: 40px; width: 480px; display: flex; align-items: baseline; justify-content: space-between; padding-top: 14px; border-top: 1.5px solid var(--aid-line); opacity: 0; transform: translateY(8px); transition: opacity .5s ease, transform .8s var(--hs-ease-out); }
.aid-back span { font-family: var(--font-mono); font-size: 11px; letter-spacing: .14em; text-transform: uppercase; color: var(--aid-soft); }
.aid-back b { font-family: var(--font-display); font-weight: 700; font-size: 22px; letter-spacing: -0.03em; color: var(--aid-acc); }
.aid--light .aid-back b { color: #00994f; }
.aid.is-on .aid-back { opacity: 1; transform: none; transition-delay: 3.7s; }
@media (prefers-reduced-motion: reduce) {
  .aid .aid-blk { opacity: 1 !important; transform: none !important; }
  .aid .aid-back { opacity: 1 !important; transform: none !important; }
}

/* AI & Automation: each slide is one solid colour edge to edge (text half and
   diagram half share it), with the dot texture running behind both halves.
   Slides alternate light / dark; the split swap is unchanged. */
html body .aiservices-stage-card .aiservices-stage-card__text { background: radial-gradient(rgba(255, 255, 255, 0.07) 1px, transparent 1.3px) 0 0 / 16px 16px, var(--color-navy-black) !important; }
html body .aiservices-stage-card:nth-child(odd) .aiservices-stage-card__text { background: radial-gradient(rgba(11, 13, 12, 0.09) 1px, transparent 1.3px) 0 0 / 16px 16px, var(--color-off-white) !important; }
.aid--light { --aid-bg: var(--color-off-white); }
.aid--dark { --aid-bg: var(--color-navy-black); }
@media (min-width: 901px) {
  /* Continue the text half's dot grid across the seam. */
  .aid::before { background-position: calc(-50vw) 0; }
}

/* ===================================================================== */
/* Mega menu: wider single-line list + per-solution illustrations       */
/* (template-parts/components/mega-diagram.php). Stage 400x300.         */
/* ===================================================================== */

@media (min-width: 901px) {
  .site-header__mega-col { max-width: 520px; flex: 0 0 auto; width: auto; min-width: 0; }
  .site-header__mega-list a { font-size: clamp(18px, 1.75vw, 25px); padding: 13px 0; white-space: nowrap; }
  .site-header__mega-preview { max-width: 460px; aspect-ratio: 4 / 3; min-height: 0; }
}

.mgd {
  --mg-line: rgba(255, 255, 255, 0.42); --mg-faint: rgba(255, 255, 255, 0.1); --mg-soft: rgba(255, 255, 255, 0.5);
  --mg-card: #151816; --mg-acc: #6AEA80; --mg-acc-soft: rgba(106, 234, 128, 0.14);
  position: absolute; inset: 0; overflow: hidden; background: #0f1110; color: #f4f2ee; font-family: var(--font-body);
}
.mgd::before { content: ""; position: absolute; inset: 0; background-image: radial-gradient(rgba(255, 255, 255, 0.07) 1px, transparent 1.3px); background-size: 14px 14px; }
.mgd__stage { position: absolute; left: 50%; top: 50%; width: 400px; height: 300px; transform: translate(-50%, -50%) scale(var(--aid-s, 1)); }
.mgd__stage > *, .mg-box > *, .mg-web > *, .mg-phone > * { position: absolute; }
.mg-svg { inset: 0; width: 400px; height: 300px; overflow: visible; }
.mg-box { border: 1.5px solid var(--mg-line); background: var(--mg-card); }
.mg-cap { font-family: var(--font-mono); font-size: 9.5px; letter-spacing: .14em; text-transform: uppercase; color: var(--mg-soft); white-space: nowrap; display: inline-flex; align-items: center; gap: 6px; }
.mg-big { font-family: var(--font-display); font-weight: 700; font-size: 22px; letter-spacing: -0.03em; color: var(--mg-acc); }
.mg-tick { width: 13px; height: 13px; flex: none; fill: none; stroke: var(--mg-acc); stroke-width: 2.2; stroke-linecap: round; stroke-linejoin: round; }
.mg-pill { display: inline-flex; align-items: center; gap: 6px; padding: 7px 12px; border-radius: 999px; border: 1.5px solid var(--mg-line); font-size: 11.5px; white-space: nowrap; }
.mg-pill--acc { background: var(--mg-acc); border-color: var(--mg-acc); color: #0b0d0c; }
.mg-pill--acc .mg-tick { stroke: #0b0d0c; }
.mg-pill--sm { padding: 5px 9px; font-size: 10.5px; }
.mg-flow { fill: none; stroke: var(--mg-acc); stroke-width: 1.5; stroke-dasharray: 3 6; stroke-linecap: round; }
.is-active .mg-flow { animation: aid-flow 1.1s linear infinite; }

/* Shared entrance, replayed each time a slide becomes active. */
.mg-in { opacity: 0; transform: translateY(8px); transition: opacity .4s ease, transform .6s var(--hs-ease-out); }
.is-active .mg-in { opacity: 1; transform: none; transition-delay: calc(var(--k, 0) * 80ms + 60ms); }

/* Websites & Apps */
.mg-web__bar { left: 0; right: 0; top: 0; height: 26px; display: flex; align-items: center; gap: 5px; padding: 0 10px; border-bottom: 1.5px solid var(--mg-faint); }
.mg-web__bar i { width: 7px; height: 7px; border-radius: 50%; border: 1.2px solid var(--mg-soft); }
.mg-web__bar span { margin-left: 10px; padding: 2px 10px; border-radius: 999px; background: var(--mg-faint); font-family: var(--font-mono); font-size: 9px; color: var(--mg-soft); }
.mg-blk { display: block; border-radius: 3px; background: rgba(255, 255, 255, 0.55); }
.mg-blk--soft { background: rgba(255, 255, 255, 0.2); }
.mg-blk--acc { background: var(--mg-acc); border-radius: 999px; }
.mg-card { display: block; width: 74px; height: 66px; border: 1.2px solid var(--mg-faint); background: rgba(255, 255, 255, 0.03); border-radius: 4px; }
.mg-phone { width: 106px; height: 184px; border: 1.5px solid var(--mg-line); border-radius: 18px; background: var(--mg-card); box-shadow: 0 24px 50px -20px rgba(0, 0, 0, .8); }
.mg-phone::before { content: ""; position: absolute; left: 50%; top: 8px; width: 30px; height: 5px; margin-left: -15px; border-radius: 3px; background: var(--mg-faint); }
.is-active .mgd--web .mg-phone { transition-delay: .45s; }

/* Operations: kanban */
.mg-col { top: 24px; width: 118px; height: 212px; border: 1.5px solid var(--mg-faint); background: rgba(255, 255, 255, 0.02); }
.mg-col span { position: absolute; left: 10px; top: 10px; font-family: var(--font-mono); font-size: 9.5px; letter-spacing: .14em; text-transform: uppercase; color: var(--mg-soft); }
.mg-kcard { width: 106px; height: 40px; display: flex; align-items: center; padding: 0 10px; border: 1.5px solid var(--mg-line); background: var(--mg-card); font-size: 11px; white-space: nowrap; }
.mg-kcard--move { justify-content: space-between; border-color: var(--mg-acc); box-shadow: 0 0 0 3px var(--mg-acc-soft); opacity: 0; }
.mg-kcard--move b { font-weight: 500; }
.mg-kcard--move em { opacity: 0; }
.is-active .mg-kcard--move { animation: mg-kanban 4.2s cubic-bezier(.65, 0, .35, 1) .5s infinite; }
.is-active .mg-kcard--move em { animation: mg-kdone 4.2s ease .5s infinite; }
@keyframes mg-kanban { 0% { opacity: 0; transform: none; } 6%, 22% { opacity: 1; transform: none; } 36%, 52% { opacity: 1; transform: translateX(126px); } 66%, 90% { opacity: 1; transform: translateX(252px); } 100% { opacity: 0; transform: translateX(252px); } }
@keyframes mg-kdone { 0%, 64% { opacity: 0; } 70%, 92% { opacity: 1; } 100% { opacity: 0; } }
.mg-foot { display: inline-flex; align-items: center; gap: 8px; font-size: 11px; color: var(--mg-soft); }
.mg-foot i { width: 7px; height: 7px; border-radius: 50%; background: var(--mg-acc); box-shadow: 0 0 8px var(--mg-acc); }

/* Sales: pipeline */
.mg-stage { top: 24px; width: 86px; height: 70px; padding: 10px; border: 1.5px solid var(--mg-line); background: var(--mg-card); }
.mg-stage span { position: static; display: block; font-family: var(--font-mono); font-size: 9px; letter-spacing: .12em; text-transform: uppercase; color: var(--mg-soft); }
.mg-stage b { position: static; display: block; margin-top: 10px; font-family: var(--font-display); font-size: 22px; letter-spacing: -0.03em; }
.mg-stage--won { border-color: var(--mg-acc); }
.mg-stage--won b { color: var(--mg-acc); }
.mg-deal { padding: 6px 10px; border-radius: 999px; background: var(--mg-acc); color: #0b0d0c; font-size: 10.5px; font-weight: 600; white-space: nowrap; opacity: 0; }
.is-active .mg-deal { animation: mg-deal 4.4s cubic-bezier(.65, 0, .35, 1) .6s infinite; }
@keyframes mg-deal { 0% { opacity: 0; transform: none; } 6%, 18% { opacity: 1; transform: none; } 30%, 40% { transform: translateX(94px); } 52%, 62% { transform: translateX(188px); } 74%, 92% { opacity: 1; transform: translateX(262px); } 100% { opacity: 0; transform: translateX(262px); } }
.mg-vbar { bottom: 12px; width: 40px; height: calc(var(--h) * 0.62); background: var(--mg-acc-soft); border-top: 2px solid var(--mg-acc); transform: scaleY(0); transform-origin: bottom; transition: transform .8s var(--hs-ease-out); }
.mg-vbar:last-child { background: var(--mg-acc); }
.is-active .mg-vbar { transform: none; transition-delay: calc(var(--k) * 70ms + .4s); }

/* Marketing: funnel + incoming toasts */
.mg-chips { display: flex; gap: 5px; }
.mg-chips i { position: static; padding: 3px 8px; border: 1px solid var(--mg-faint); border-radius: 999px; font-style: normal; font-size: 9.5px; color: var(--mg-soft); }
.mg-fun { left: 14px; right: 14px; height: 44px; font-size: 11px; }
.mg-fun span { position: absolute; left: 0; top: 0; color: var(--mg-soft); }
.mg-fun b { position: absolute; right: 0; top: 0; font-weight: 600; }
.mg-fun i { position: absolute; left: 0; bottom: 8px; height: 12px; width: var(--w); min-width: 6px; background: var(--mg-acc); transform: scaleX(0); transform-origin: left; transition: transform .9s var(--hs-ease-out); }
.is-active .mg-fun i { transform: none; transition-delay: calc(var(--k) * 150ms + .3s); }
.mg-toast { width: 128px; display: flex; align-items: center; gap: 7px; padding: 10px 11px; border: 1.5px solid var(--mg-line); background: var(--mg-card); font-size: 10.5px; line-height: 1.2; opacity: 0; transform: translateX(16px); transition: opacity .4s ease, transform .6s var(--hs-ease-out); }
.mg-toast i { width: 7px; height: 7px; flex: none; border-radius: 50%; background: var(--mg-acc); box-shadow: 0 0 8px var(--mg-acc); }
.is-active .mg-toast { opacity: 1; transform: none; transition-delay: calc(var(--k) * 380ms + .7s); }

/* iGaming: risk gauge + live feed */
.mg-gauge { width: 120px; height: 70px; overflow: visible; }
.mg-gauge__bg, .mg-gauge__fg { fill: none; stroke-width: 9; stroke-linecap: round; }
.mg-gauge__bg { stroke: var(--mg-faint); }
.mg-gauge__fg { stroke: var(--mg-acc); stroke-dasharray: 158; stroke-dashoffset: 158; transition: stroke-dashoffset 1.2s var(--hs-ease-out); }
.is-active .mg-gauge__fg { stroke-dashoffset: 114; transition-delay: .35s; }
.mg-gauge__label { left: 0; right: 0; top: 120px; text-align: center; font-family: var(--font-display); font-size: 15px; color: var(--mg-acc); }
.mg-kv { left: 14px; right: 14px; display: flex; justify-content: space-between; padding-top: 8px; border-top: 1px solid var(--mg-faint); font-size: 11px; }
.mg-kv em { font-style: normal; color: var(--mg-soft); }
.mg-live { width: 6px; height: 6px; border-radius: 50%; background: var(--mg-acc); box-shadow: 0 0 8px var(--mg-acc); animation: mg-pulse 1.6s ease-in-out infinite; }
@keyframes mg-pulse { 50% { opacity: .35; } }
.mg-row { left: 14px; right: 14px; height: 30px; display: flex; align-items: center; justify-content: space-between; gap: 8px; padding: 0 10px; border: 1px solid var(--mg-faint); font-size: 11px; white-space: nowrap; opacity: 0; transform: translateY(6px); transition: opacity .35s ease, transform .5s var(--hs-ease-out); }
.is-active .mg-row { opacity: 1; transform: none; transition-delay: calc(var(--k) * 260ms + .4s); }
.mg-flag { font-style: normal; font-family: var(--font-mono); font-size: 9px; letter-spacing: .08em; text-transform: uppercase; padding: 2px 6px; border: 1px solid var(--mg-acc); color: var(--mg-acc); border-radius: 999px; }

/* Architecture: plan draws itself */
.mg-draw { fill: none; stroke: #f4f2ee; stroke-width: 2.5; stroke-dasharray: 1; stroke-dashoffset: 1; stroke-linecap: square; transition: stroke-dashoffset 1.4s cubic-bezier(.65, 0, .35, 1); }
.mg-draw--soft { stroke: var(--mg-soft); stroke-width: 1.2; }
.is-active .mg-draw { stroke-dashoffset: 0; transition-delay: calc(var(--k, 0) * 350ms + .1s); }
.mg-dim { fill: none; stroke: var(--mg-acc); stroke-width: 1; }
.mg-dimtxt { left: 118px; top: 279px; padding: 0 6px; background: #0f1110; font-family: var(--font-mono); font-size: 9.5px; color: var(--mg-acc); }
.mg-room { font-family: var(--font-mono); font-size: 9.5px; letter-spacing: .12em; text-transform: uppercase; color: var(--mg-soft); opacity: 0; transition: opacity .5s ease; }
.is-active .mg-room { opacity: 1; transition-delay: 1.2s; }
.mg-swatch { display: flex; align-items: center; gap: 9px; font-size: 11.5px; }
.mg-swatch i { position: static; width: 34px; height: 34px; border: 1.5px solid var(--mg-line); }

/* Importation: route + stock */
.mg-node { display: inline-flex; align-items: center; gap: 6px; padding: 6px 10px; border: 1.5px solid var(--mg-line); background: var(--mg-card); font-size: 11px; white-space: nowrap; }
.mg-node i { width: 6px; height: 6px; border-radius: 50%; background: var(--mg-acc); }
.mg-truck { left: 0; top: 0; width: 12px; height: 12px; margin: -6px 0 0 -6px; border-radius: 3px; background: var(--mg-acc); box-shadow: 0 0 12px var(--mg-acc); offset-path: path("M44 92 C110 30 160 30 200 80 S300 140 356 80"); offset-rotate: 0deg; opacity: 0; }
.is-active .mg-truck { animation: mg-truck 4s cubic-bezier(.45, 0, .55, 1) .5s infinite; }
@keyframes mg-truck { 0% { offset-distance: 0%; opacity: 0; } 8% { opacity: 1; } 42%, 52% { offset-distance: 48%; } 90% { opacity: 1; } 100% { offset-distance: 100%; opacity: 0; } }
.mg-stock { left: 14px; right: 14px; height: 20px; display: grid; grid-template-columns: 96px 1fr 88px; align-items: center; gap: 10px; font-size: 10.5px; }
.mg-stock em { font-style: normal; color: var(--mg-soft); white-space: nowrap; }
.mg-stock i { position: relative; height: 8px; background: var(--mg-faint); }
.mg-stock i::after { content: ""; position: absolute; left: 0; top: 0; bottom: 0; width: var(--w); background: var(--mg-acc); transform: scaleX(0); transform-origin: left; transition: transform .9s var(--hs-ease-out); }
.is-active .mg-stock i::after { transform: none; transition-delay: calc(var(--k) * 140ms + .45s); }
.mg-stock b { font-weight: 500; text-align: right; white-space: nowrap; }

/* Finance: reconciliation */
.mg-row--fin em { font-style: normal; color: var(--mg-soft); flex: 1; }
.mg-row--fin b { font-weight: 500; font-variant-numeric: tabular-nums; }
.mg-row--fin .mg-tick { opacity: 0; transition: opacity .3s ease; }
.is-active .mg-row--fin .mg-tick { opacity: 1; transition-delay: calc(var(--k) * 260ms + .75s); }
.mg-late { opacity: 0; transform: scale(.9); transition: opacity .4s ease, transform .5s cubic-bezier(.3, 1.4, .5, 1); }
.is-active .mg-late { opacity: 1; transform: none; transition-delay: 1.9s; }
.mg-donut { left: 38px; top: 14px; width: 70px; height: 70px; transform: rotate(-90deg); }
.mg-donut circle { fill: none; stroke-width: 6; }
.mg-donut__bg { stroke: var(--mg-faint); }
.mg-donut__a, .mg-donut__b { stroke-dasharray: 0 100; transition: stroke-dasharray 1.1s var(--hs-ease-out); }
.mg-donut__a { stroke: var(--mg-acc); }
.mg-donut__b { stroke: rgba(255, 255, 255, 0.45); }
.is-active .mg-donut__a { stroke-dasharray: 58 100; transition-delay: .5s; }
.is-active .mg-donut__b { stroke-dasharray: 0 58 26 100; transition-delay: .7s; }

@media (prefers-reduced-motion: reduce) {
  .mgd *, .mgd *::after { animation: none !important; transition: none !important; }
  .mgd .mg-in, .mgd .mg-toast, .mgd .mg-row, .mgd .mg-room, .mgd .mg-late, .mgd .mg-deal, .mgd .mg-kcard--move { opacity: 1 !important; transform: none !important; }
  .mgd .mg-draw { stroke-dashoffset: 0; }
}

/* Mobile nav, Software: one solution per row, each title on a single line. */
@media (max-width: 900px) {
  .mnav__subs { display: flex !important; flex-direction: column; gap: 6px !important; grid-template-columns: none !important; }
  .mnav__sub { display: flex !important; align-items: center; justify-content: space-between; gap: 12px; min-height: 0 !important; padding: 13px 16px !important; font-size: 15.5px !important; line-height: 1.2; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
  .mnav__sub::after { content: ""; flex: none; width: 12px; height: 12px; background: url("../img/icon-arrow-diagonal-green.svg") center / contain no-repeat; opacity: .8; }
}
@media (max-width: 380px) { .mnav__label { font-size: clamp(34px, 10.4vw, 40px) !important; white-space: nowrap; } }

/* Mega list hover: slide the label with a transform instead of adding
   padding, so long titles never reflow or get squeezed. Fixed column width. */
@media (min-width: 901px) {
  .site-header__mega-col { flex: 0 0 520px; width: 520px; }
  .site-header__mega-list a,
  .site-header__mega-list a:hover,
  .site-header__mega-list a:focus-visible { padding-left: 0 !important; }
  .site-header__mega-list a > span { display: block; min-width: 0; transition: transform .35s var(--hs-ease-out); }
  .site-header__mega-list a:hover > span,
  .site-header__mega-list a:focus-visible > span { transform: translateX(12px); }
}

/* Product hero: the solution's illustration in the console's glass frame.
   Desktop: tilted beside the copy. Below 1100px: flat, under the buttons. */
.hs-illo {
  position: relative;
  margin-top: var(--space-9);
  max-width: 560px;
  border-radius: 18px;
  padding: 12px;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.06), rgba(255, 255, 255, 0.02));
  border: 1px solid rgba(255, 255, 255, 0.09);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.08), 0 40px 80px -30px rgba(0, 0, 0, 0.7);
  -webkit-backdrop-filter: blur(18px);
          backdrop-filter: blur(18px);
  animation: hs-illo-in 1.1s 0.3s var(--hs-ease-out) both;
}
.hs-illo::before {
  content: ""; position: absolute; inset: -1px; border-radius: inherit; padding: 1px; pointer-events: none;
  background: linear-gradient(140deg, rgba(106, 234, 128, 0.55), transparent 35%, transparent 70%, rgba(106, 234, 128, 0.25));
  -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
  -webkit-mask-composite: xor;
          mask: linear-gradient(#000 0 0) content-box exclude, linear-gradient(#000 0 0);
}
.hs-illo__bar { display: flex; align-items: center; gap: 10px; padding: 2px 4px 12px; font-family: var(--font-mono); font-size: 11px; letter-spacing: 0.08em; color: var(--white-50); }
.hs-illo__title { flex: 1; }
.hs-illo__screen { position: relative; aspect-ratio: 4 / 3; border-radius: 10px; overflow: hidden; border: 1px solid rgba(255, 255, 255, 0.06); }
@keyframes hs-illo-in { from { opacity: 0; transform: translateY(24px); filter: blur(6px); } }

@media (min-width: 1100px) {
  .vertical-hero > .container:has(.hs-illo) { grid-template-columns: minmax(0, 1fr) 480px; column-gap: 64px; }
  .vertical-hero > .container > *:not(.hs-console):not(.hs-illo) { grid-column: 1; }
  .vertical-hero > .container > .hs-illo {
    grid-column: 2; grid-row: 1 / span 5; align-self: center; margin-top: 0; max-width: none;
    transform: perspective(1400px) rotateY(-8deg) rotateX(4deg); transform-origin: 0 50%;
    animation-name: hs-illo-in-tilt;
  }
}
@keyframes hs-illo-in-tilt { from { opacity: 0; transform: perspective(1400px) rotateY(-18deg) rotateX(8deg) translateY(30px); filter: blur(8px); } }
@media (max-width: 640px) { .hs-illo { margin-top: var(--space-8); padding: 8px; border-radius: 14px; } }
html.hs-vt-arrived .hs-illo { animation: none !important; }
@media (prefers-reduced-motion: reduce) { .hs-illo { animation: none; } }

/* Hide the page scrollbar. Opening the nav locks scrolling, which removed
   the scrollbar and shifted the layout sideways (jitter). With no visible
   page scrollbar the width never changes; scrolling itself is unaffected. */
html, body { scrollbar-width: none; -ms-overflow-style: none; scrollbar-gutter: auto !important; }
html::-webkit-scrollbar, body::-webkit-scrollbar { display: none; width: 0; height: 0; }

/* Product content blocks: the frame takes the artwork's 16:9 shape and every
   image is fitted (never cropped); other ratios sit on the frame colour. */
.scan-split__frame { height: auto; aspect-ratio: 16 / 9; top: calc(50vh - min(15vw, 190px)); background: #0b0d0c; }
.scan-split__shot img, .scan-split__inline-media img { object-fit: contain !important; background: #0b0d0c; }
.scan-split__shot::after { background: linear-gradient(to top, rgba(11, 13, 12, 0.35), transparent 28%); }
@media (max-width: 1100px) { .scan-split__inline-media { aspect-ratio: 16 / 9 !important; background: #0b0d0c; } }

/* ===================================================================== */
/* Images fit their frames (site-wide audit)                            */
/* ===================================================================== */

/* Article covers are 16:9: every frame that shows one is 16:9 too. */
.blog-card__image { aspect-ratio: 16 / 9; height: auto !important; object-fit: cover; }
.tv-rail--landscape .tv-card { aspect-ratio: 16 / 9; }
.tv-rail--scroll.tv-rail--landscape { --tv-w: clamp(300px, min(34vw, calc((100vh - 360px) * 1.5)), 540px); }
@media (max-width: 700px) { .tv-rail--scroll.tv-rail--landscape { --tv-w: 80vw; } }
.article-hero__image { height: auto !important; aspect-ratio: 16 / 9; }

/* Frames whose shape can't match every image: show the whole image, and
   fill the spare space with a soft blurred glow of the same picture. The
   image URL is set as --fit-src by initImageFit (enhance.js). */
.hs-fit { overflow: hidden; background-color: #0b0d0c; isolation: isolate; }
.hs-fit.hs-fit--rel { position: relative; }
.hs-fit::before {
  content: ""; position: absolute; inset: -48px; z-index: -1; pointer-events: none;
  background: var(--fit-src, none) center / cover no-repeat;
  filter: blur(38px) saturate(1.15) brightness(0.55);
}
.hs-fit img { object-fit: contain !important; }
.ins-feat__media.hs-fit img { transform: none !important; }

/* ===================================================================== */
/* Cookie consent (inc/consent.php + assets/js/consent.js)              */
/* ===================================================================== */

.site-footer__col h2.site-footer__heading {
  font-family: var(--font-mono); font-size: var(--fs-xs); font-weight: 400; line-height: 1.4;
  letter-spacing: 0.1em; text-transform: uppercase; color: var(--white-40); margin: 0 0 var(--space-4);
}
.site-footer__col:has(.site-footer__consent) { display: flex; flex-wrap: wrap; align-items: baseline; column-gap: var(--space-6); }
.site-footer__col:has(.site-footer__consent) > h2 { flex: 0 0 100%; }
.site-footer__consent {
  padding: 0; border: 0; background: none; cursor: pointer; white-space: nowrap;
  font: inherit; font-size: var(--fs-md); color: var(--white-60); transition: color 0.2s ease;
}
.site-footer__consent:hover { color: #fff; }

.hs-consent {
  position: fixed; z-index: 10050; left: 24px; bottom: 24px; width: min(420px, calc(100vw - 32px));
  padding: 22px 22px 18px; border-radius: 20px; color: #fff;
  background: rgba(17, 19, 18, 0.92); border: 1px solid rgba(255, 255, 255, 0.1);
  box-shadow: 0 30px 80px -20px rgba(0, 0, 0, 0.8), inset 0 1px 0 rgba(255, 255, 255, 0.06);
  -webkit-backdrop-filter: blur(18px) saturate(1.2); backdrop-filter: blur(18px) saturate(1.2);
  opacity: 0; transform: translateY(16px); transition: opacity 0.35s ease, transform 0.5s var(--hs-ease-out);
}
.hs-consent.is-in { opacity: 1; transform: none; }
.hs-consent__title { margin: 0 0 8px; font-family: var(--font-display); font-weight: 700; font-size: 17px; letter-spacing: -0.02em; }
.hs-consent__text { margin: 0; font-size: 13.5px; line-height: 1.55; color: rgba(255, 255, 255, 0.68); }
.hs-consent__text a { color: var(--color-green-light); text-decoration: underline; text-underline-offset: 3px; }
.hs-consent__prefs { display: grid; gap: 8px; margin-top: 14px; }
.hs-consent__opt { display: flex; gap: 12px; align-items: flex-start; padding: 10px 12px; border-radius: 12px; background: rgba(255, 255, 255, 0.04); border: 1px solid rgba(255, 255, 255, 0.07); cursor: pointer; }
.hs-consent__opt.is-locked { cursor: default; opacity: 0.75; }
.hs-consent__opt input { margin-top: 3px; width: 16px; height: 16px; accent-color: var(--color-green-light); flex: none; }
.hs-consent__opt b { display: block; font-size: 13.5px; font-weight: 600; }
.hs-consent__opt em { display: block; font-style: normal; font-size: 12px; line-height: 1.45; color: rgba(255, 255, 255, 0.55); }
.hs-consent__actions { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; margin-top: 16px; }
.hs-consent__btn { padding: 10px 16px !important; font-size: 13.5px !important; }
.hs-consent__link { margin-left: auto; padding: 8px 4px; border: 0; background: none; color: rgba(255, 255, 255, 0.7); font: inherit; font-size: 13.5px; text-decoration: underline; text-underline-offset: 3px; cursor: pointer; }
.hs-consent__link:hover { color: #fff; }
.hs-consent :focus-visible { outline: 2px solid var(--color-green-light); outline-offset: 2px; }
@media (max-width: 640px) {
  .hs-consent { left: 12px; right: 12px; bottom: 12px; width: auto; padding: 18px 16px 14px; }
  .hs-consent__actions .hs-consent__btn { flex: 1 1 calc(50% - 4px); justify-content: center; }
  .hs-consent__link { margin: 0 auto; }
  html.hs-consent-open .live-chat { opacity: 0; pointer-events: none; }
}
@media (prefers-reduced-motion: reduce) { .hs-consent { transition: none; } }
.hs-consent [hidden] { display: none !important; }

/* Privacy notice under forms. */
.hs-form__privacy { margin: 12px 0 0; font-size: 12.5px; line-height: 1.5; color: var(--white-50, rgba(255,255,255,.5)); }
.hs-form__privacy a { color: inherit; text-decoration: underline; text-underline-offset: 3px; }
.hs-form__privacy a:hover { color: var(--color-green-light); }
.section-light .hs-form__privacy, .contact-form--light .hs-form__privacy { color: rgba(11, 13, 12, 0.55); }

/* FAQ questions are h3 headings wrapping the toggle button. */
.faq-item__heading { margin: 0; padding: 0; font: inherit; letter-spacing: inherit; }

/* Cloudflare Turnstile widget. */
.hs-turnstile { margin: 4px 0 16px; min-height: 65px; }
.booking__fields .hs-turnstile { grid-column: 1 / -1; margin: 4px 0 0; }
.newsletter__form .hs-turnstile { margin: 10px 0; }

/* Statutory company details (Maltese e-commerce rules): quiet, always present. */
.site-footer__legal-line { position: relative; z-index: 1; padding-top: var(--space-5); padding-bottom: var(--space-6); }
.site-footer__legal-line p { margin: 0; font-size: 12px; line-height: 1.6; color: var(--white-40, rgba(255,255,255,.4)); }
@media (max-width: 640px) { .site-footer__legal-line p { font-size: 11.5px; } }

/* Newsletter: the pill stays a single row; the privacy notice (and the
   Turnstile widget, where active) sit underneath it, outside the pill. */
.nl__form .hs-form { position: relative; margin-bottom: 48px; }
.nl__form .hs-form:has(.cf-turnstile) { margin-bottom: 132px; }
.nl__form .hs-form > .hs-form__privacy { position: absolute; left: 20px; right: 0; top: calc(100% + 12px); margin: 0; }
.nl__form .hs-form > .cf-turnstile { position: absolute; left: 12px; top: calc(100% + 52px); margin: 0; }
@media (max-width: 700px) {
  .nl__form .hs-form { margin-bottom: 64px; }
  .nl__form .hs-form:has(.cf-turnstile) { margin-bottom: 148px; }
  .nl__form .hs-form > .hs-form__privacy { left: 8px; }
  .nl__form .hs-form > .cf-turnstile { top: calc(100% + 68px); }
}

/* Mega menu: always a dark glass panel, whatever is behind it, so the
   links stay readable over light sections too. */
.site-header__mega-scrim {
  background: rgba(8, 9, 9, 0.9) !important;
  -webkit-backdrop-filter: blur(22px) saturate(1.15) !important;
          backdrop-filter: blur(22px) saturate(1.15) !important;
}

/* Lenis now runs on every page and the snap engine eases between rests,
   so the browser's abrupt native mandatory snap is switched off. */
html.hs-smooth-on.haystack-snap { scroll-snap-type: none !important; }

/* ===================================================================== */
/* Single insight (single.php + haystack_article_prepare)               */
/* ===================================================================== */

.art-hero {
  --art-join: clamp(110px, 13vw, 190px);
  position: relative; overflow: hidden; color: #fff;
  background: var(--color-navy-black);
  padding: calc(var(--nav-height, 68px) + clamp(40px, 6vw, 88px)) 0 clamp(48px, 6vw, 72px);
}
.art-hero.has-cover {
  padding-bottom: 0;
  background: linear-gradient(to bottom, var(--color-navy-black) 0, var(--color-navy-black) calc(100% - var(--art-join)), var(--color-off-white) calc(100% - var(--art-join)));
}
.art-hero__glow { position: absolute; right: -10%; top: -30%; width: 70%; height: 90%; pointer-events: none; background: radial-gradient(closest-side, rgba(0, 204, 106, 0.16), transparent 70%); }
.art-hero__inner { position: relative; }
.art-hero__back { display: inline-flex; align-items: center; gap: 6px; margin-bottom: 28px; font-family: var(--font-mono); font-size: 11.5px; letter-spacing: 0.14em; text-transform: uppercase; color: var(--white-50, rgba(255,255,255,.5)); transition: color .25s ease, gap .3s var(--hs-ease-out); }
.art-hero__back svg { width: 14px; height: 14px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.art-hero__back:hover { color: var(--color-green-light); gap: 10px; }
.art-hero .tag { margin-bottom: 18px; }
.art-hero__title { max-width: 18ch; margin: 0; font-family: var(--font-display); font-weight: 700; font-size: clamp(36px, 5.2vw, 68px); line-height: 1.02; letter-spacing: -0.04em; }
.art-hero__lead { max-width: 60ch; margin: 22px 0 0; font-size: clamp(17px, 1.5vw, 20px); line-height: 1.6; color: rgba(255, 255, 255, 0.68); }
.art-hero__meta { display: flex; flex-wrap: wrap; align-items: center; gap: 12px 14px; margin-top: 30px; }
.art-avatar { display: inline-grid; place-items: center; flex: none; width: 40px; height: 40px; border-radius: 50%; background: var(--color-green-light); color: var(--color-navy-black); font-family: var(--font-mono); font-size: 13px; font-weight: 500; letter-spacing: 0.04em; }
.art-avatar--lg { width: 56px; height: 56px; font-size: 16px; }
.art-hero__by { display: flex; flex-direction: column; gap: 3px; line-height: 1.2; }
.art-hero__by b { font-size: 15px; font-weight: 600; }
.art-hero__by em { font-style: normal; font-family: var(--font-mono); font-size: 10.5px; letter-spacing: 0.12em; text-transform: uppercase; color: var(--white-50, rgba(255,255,255,.5)); }
.art-hero__facts { display: inline-flex; gap: 8px; margin-left: 10px; padding-left: 16px; border-left: 1px solid rgba(255, 255, 255, 0.14); font-size: 14px; color: rgba(255, 255, 255, 0.58); }
.art-cover { position: relative; margin-top: clamp(36px, 5vw, 56px); aspect-ratio: 16 / 9; border-radius: 22px; overflow: hidden; background: var(--color-navy-black); border: 1px solid rgba(255, 255, 255, 0.08); box-shadow: 0 50px 100px -40px rgba(0, 0, 0, 0.55), 0 30px 60px -45px rgba(0, 204, 106, 0.35); }
.art-cover img { width: 100%; height: 100%; object-fit: cover; display: block; }

.art-body { background: var(--color-off-white); color: var(--text-dark, #0b0d0c); padding: clamp(48px, 6vw, 80px) 0 clamp(80px, 9vw, 128px); }
.art-body__grid { display: grid; grid-template-columns: 210px minmax(0, 720px) 48px; justify-content: space-between; gap: 48px; align-items: start; }
.art-main { min-width: 0; grid-column: 2; }

.art-toc { grid-column: 1; position: sticky; top: calc(var(--nav-height, 68px) + 36px); }
.art-toc__label, .art-share__label { margin: 0 0 12px; font-family: var(--font-mono); font-size: 10.5px; letter-spacing: 0.16em; text-transform: uppercase; color: rgba(11, 13, 12, 0.45); }
.art-toc ol, .art-toc-mobile ol { list-style: none; margin: 0; padding: 0; }
.art-toc a { display: block; padding: 7px 0 7px 14px; border-left: 2px solid rgba(11, 13, 12, 0.1); font-size: 13.5px; line-height: 1.4; color: rgba(11, 13, 12, 0.55); transition: color .25s ease, border-color .25s ease; }
.art-toc a:hover { color: var(--color-navy-black); }
.art-toc a.is-active { color: var(--color-navy-black); border-left-color: var(--color-green, #00CC6A); font-weight: 500; }

.art-share { grid-column: 3; position: sticky; top: calc(var(--nav-height, 68px) + 36px); display: flex; flex-direction: column; align-items: center; gap: 10px; }
.art-share__label { margin-bottom: 4px; }
.art-share a, .art-share button { position: relative; display: grid; place-items: center; width: 44px; height: 44px; padding: 0; border-radius: 50%; cursor: pointer; background: #fff; border: 1px solid rgba(11, 13, 12, 0.12); color: var(--color-navy-black); transition: background-color .25s ease, color .25s ease, border-color .25s ease, transform .35s var(--hs-ease-out); }
.art-share a:hover, .art-share button:hover { background: var(--color-navy-black); border-color: var(--color-navy-black); color: var(--color-green-light); transform: translateY(-2px); }
.art-share svg { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.art-share a[aria-label*="Facebook"] svg path { fill: currentColor; stroke: none; }
.art-share__copied { position: absolute; right: calc(100% + 8px); top: 50%; transform: translateY(-50%); padding: 4px 9px; border-radius: 999px; background: var(--color-navy-black); color: var(--color-green-light); font-family: var(--font-mono); font-size: 10.5px; letter-spacing: 0.08em; white-space: nowrap; }

.art-toc-mobile { display: none; margin-bottom: 32px; border: 1px solid rgba(11, 13, 12, 0.12); border-radius: 16px; background: #fff; }
.art-toc-mobile summary { display: flex; justify-content: space-between; align-items: center; padding: 14px 18px; cursor: pointer; list-style: none; font-family: var(--font-mono); font-size: 11px; letter-spacing: 0.16em; text-transform: uppercase; color: rgba(11, 13, 12, 0.6); }
.art-toc-mobile summary::-webkit-details-marker { display: none; }
.art-toc-mobile summary svg { width: 16px; height: 16px; fill: none; stroke: currentColor; stroke-width: 2; transition: transform .3s ease; }
.art-toc-mobile[open] summary svg { transform: rotate(180deg); }
.art-toc-mobile ol { padding: 0 18px 12px; }
.art-toc-mobile a { display: block; padding: 9px 0; border-top: 1px solid rgba(11, 13, 12, 0.07); font-size: 15px; color: rgba(11, 13, 12, 0.75); }

/* Article typography (light body). Link text uses a darker green for
   contrast on off-white; decoration uses the brand green. */
.art-content { font-family: var(--font-body); }
.art-content > p, .art-content li { font-size: 18px; line-height: 1.75; color: rgba(11, 13, 12, 0.78); }
.art-content > p { margin: 0 0 1.25em; }
.art-content > p.is-style-lead { font-size: clamp(19px, 1.6vw, 22px); line-height: 1.6; color: var(--color-navy-black); }
.art-content strong { color: var(--color-navy-black); font-weight: 600; }
.art-content h2 { margin: 2.1em 0 0.65em; font-family: var(--font-display); font-weight: 700; font-size: clamp(26px, 2.4vw, 34px); line-height: 1.14; letter-spacing: -0.03em; color: var(--color-navy-black); scroll-margin-top: calc(var(--nav-height, 68px) + 32px); }
.art-content h3 { margin: 1.7em 0 0.5em; font-family: var(--font-display); font-weight: 600; font-size: clamp(19px, 1.6vw, 22px); line-height: 1.25; letter-spacing: -0.02em; color: var(--color-navy-black); }
.art-content ul, .art-content ol { margin: 0 0 1.4em; padding: 0; list-style: none; }
.art-content ul > li, .art-content ol > li { position: relative; margin: 0.5em 0; padding-left: 28px; }
.art-content ul > li::before { content: ""; position: absolute; left: 6px; top: 0.72em; width: 7px; height: 7px; border-radius: 50%; background: var(--color-green, #00CC6A); }
.art-content ol { counter-reset: art; }
.art-content ol > li { counter-increment: art; }
.art-content ol > li::before { content: counter(art, decimal-leading-zero); position: absolute; left: 0; top: 0.2em; font-family: var(--font-mono); font-size: 12px; color: var(--color-green, #00CC6A); }
.art-content a { color: #00874a; text-decoration: underline; text-decoration-color: rgba(0, 204, 106, 0.45); text-underline-offset: 3px; text-decoration-thickness: 1px; transition: color .2s ease, text-decoration-color .2s ease; }
.art-content a:hover { color: var(--color-navy-black); text-decoration-color: var(--color-green, #00CC6A); }
.art-content blockquote { margin: 1.8em 0; padding: 4px 0 4px 22px; border-left: 3px solid var(--color-green, #00CC6A); font-family: var(--font-display); font-size: 22px; line-height: 1.45; color: var(--color-navy-black); }
.art-content blockquote p { margin: 0; font-size: inherit; color: inherit; }

.art-takeaways { position: relative; margin: 8px 0 44px; padding: 28px 30px 22px; border-radius: 20px; background: var(--color-navy-black); color: #fff; overflow: hidden; }
.art-takeaways::before { content: ""; position: absolute; right: -20%; top: -60%; width: 70%; height: 160%; background: radial-gradient(closest-side, rgba(0, 204, 106, 0.18), transparent 70%); pointer-events: none; }
.art-takeaways__label { position: relative; margin: 0 0 14px; font-family: var(--font-mono); font-size: 11px; letter-spacing: 0.16em; text-transform: uppercase; color: var(--color-green-light); }
.art-takeaways ul { position: relative; margin: 0; }
.art-takeaways ul > li { font-size: 16.5px; line-height: 1.6; color: rgba(255, 255, 255, 0.84); padding-left: 32px; margin: 0.65em 0; }
.art-takeaways ul > li::before { width: 18px; height: 18px; left: 0; top: 0.2em; border-radius: 50%; background: rgba(106, 234, 128, 0.16) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3E%3Cpath d='M4 8.5l2.5 2.5L12 5.5' fill='none' stroke='%236AEA80' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center / 12px no-repeat; }
.art-takeaways strong { color: #fff; }

.art-faq { display: grid; gap: 10px; margin: 8px 0 40px; }
.art-faq__item { border: 1px solid rgba(11, 13, 12, 0.1); border-radius: 16px; background: #fff; transition: border-color .25s ease, box-shadow .3s ease; }
.art-faq__item:hover { border-color: rgba(11, 13, 12, 0.22); }
.art-faq__item[open] { border-color: rgba(0, 204, 106, 0.45); box-shadow: 0 16px 40px -28px rgba(11, 13, 12, 0.35); }
.art-faq__item summary { position: relative; display: block; padding: 18px 56px 18px 22px; cursor: pointer; list-style: none; }
.art-faq__item summary::-webkit-details-marker { display: none; }
.art-faq__item summary h3 { margin: 0; font-size: 17px; line-height: 1.35; }
.art-faq__item summary::after { content: ""; position: absolute; right: 20px; top: 50%; width: 22px; height: 22px; margin-top: -11px; border-radius: 50%; background: rgba(11, 13, 12, 0.05) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3E%3Cpath d='M8 4v8M4 8h8' fill='none' stroke='%230b0d0c' stroke-width='1.8' stroke-linecap='round'/%3E%3C/svg%3E") center / 12px no-repeat; transition: transform .35s var(--hs-ease-out), background-color .25s ease; }
.art-faq__item[open] summary::after { transform: rotate(45deg); background-color: rgba(0, 204, 106, 0.18); }
.art-faq__answer { padding: 0 22px 20px; }
.art-faq__answer p, .art-faq__answer li { margin: 0; font-size: 16px; line-height: 1.7; color: rgba(11, 13, 12, 0.72); }

.art-content > p.art-cta-line { margin-top: 32px; padding: 20px 24px; border-radius: 16px; background: rgba(0, 204, 106, 0.08); border: 1px solid rgba(0, 204, 106, 0.28); font-size: 17px; color: var(--color-navy-black); }

.art-author { display: flex; gap: 18px; align-items: flex-start; margin-top: 56px; padding-top: 32px; border-top: 1px solid rgba(11, 13, 12, 0.1); }
.art-author__label { margin: 0 0 4px; font-family: var(--font-mono); font-size: 10.5px; letter-spacing: 0.16em; text-transform: uppercase; color: rgba(11, 13, 12, 0.45); }
.art-author__name { margin: 0; font-family: var(--font-display); font-weight: 700; font-size: 20px; letter-spacing: -0.02em; color: var(--color-navy-black); }
.art-author__name em { display: block; margin-top: 3px; font-style: normal; font-family: var(--font-mono); font-weight: 400; font-size: 10.5px; letter-spacing: 0.12em; text-transform: uppercase; color: rgba(11, 13, 12, 0.5); }
.art-author__bio { margin: 10px 0 0; font-size: 15px; line-height: 1.6; color: rgba(11, 13, 12, 0.65); }

.art-cta { position: relative; overflow: hidden; display: flex; justify-content: space-between; align-items: flex-end; gap: 24px; margin-top: 40px; padding: clamp(26px, 3.5vw, 40px); border-radius: 24px; background: var(--color-navy-black); color: #fff; }
.art-cta::before { content: ""; position: absolute; left: -10%; bottom: -80%; width: 70%; height: 180%; background: radial-gradient(closest-side, rgba(0, 204, 106, 0.2), transparent 70%); pointer-events: none; }
.art-cta > * { position: relative; }
.art-cta__eyebrow { margin: 0 0 8px; font-family: var(--font-mono); font-size: 11px; letter-spacing: 0.16em; text-transform: uppercase; color: var(--color-green-light); }
.art-cta__title { margin: 0; font-family: var(--font-display); font-weight: 700; font-size: clamp(24px, 2.4vw, 30px); line-height: 1.1; letter-spacing: -0.03em; }
.art-cta__text { max-width: 44ch; margin: 10px 0 0; font-size: 15px; line-height: 1.6; color: rgba(255, 255, 255, 0.65); }
.art-cta__actions { display: flex; flex-wrap: wrap; gap: 10px; flex: none; }

@media (max-width: 1100px) {
  .art-body__grid { grid-template-columns: minmax(0, 1fr); gap: 0; }
  .art-main { grid-column: 1; max-width: 720px; }
  .art-toc { display: none; }
  .art-toc-mobile { display: block; }
  .art-share { grid-column: 1; grid-row: 2; position: static; flex-direction: row; justify-content: flex-start; margin-top: 32px; }
  .art-share__label { margin: 0 6px 0 0; }
  .art-share__copied { right: auto; left: 50%; top: auto; bottom: calc(100% + 8px); transform: translateX(-50%); }
}
@media (max-width: 640px) {
  .art-hero__facts { margin-left: 0; padding-left: 0; border-left: 0; width: 100%; }
  .art-content > p, .art-content li { font-size: 17px; }
  .art-takeaways { padding: 22px 20px 16px; border-radius: 18px; }
  .art-cta { flex-direction: column; align-items: flex-start; }
  .art-cta__actions, .art-cta__actions .btn { width: 100%; justify-content: center; }
  .art-cover { border-radius: 16px; }
}
.art-hero__back { display: flex; width: max-content; }

/* ===================================================================== */
/* Footer: four columns + one aligned legal row (footer.php)            */
/* ===================================================================== */

.hs-foot {
  display: grid; grid-template-columns: minmax(0, 1.4fr) repeat(3, minmax(0, 1fr)); gap: var(--space-9);
  padding-top: var(--space-10); padding-bottom: var(--space-9);
  border-bottom: 1px solid var(--white-07);
}
.hs-foot__statement { max-width: 30ch; margin: 0; font-family: var(--font-display); font-weight: 600; font-size: clamp(19px, 1.6vw, 23px); line-height: 1.3; letter-spacing: -0.02em; color: #fff; }
.hs-foot__cta { display: inline-flex; align-items: center; gap: 8px; margin-top: var(--space-5); padding: 10px 16px 10px 18px; border-radius: var(--radius-pill); border: 1px solid rgba(106, 234, 128, 0.35); color: var(--color-green-light); font-size: 14.5px; font-weight: 500; transition: background-color .3s ease, color .3s ease, border-color .3s ease, gap .35s var(--hs-ease-out); }
.hs-foot__cta svg { width: 15px; height: 15px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; transition: transform .35s var(--hs-ease-out); }
.hs-foot__cta:hover { background: var(--color-green-light); border-color: var(--color-green-light); color: var(--color-navy-black); gap: 12px; }
.hs-foot__cta:hover svg { transform: translate(2px, -2px); }
.hs-foot__heading { margin: 0 0 var(--space-5); font-family: var(--font-mono); font-size: var(--fs-xs); font-weight: 400; line-height: 1.4; letter-spacing: 0.14em; text-transform: uppercase; color: var(--white-40); }
.hs-foot__list { display: grid; gap: 12px; margin: 0; padding: 0; list-style: none; }
.hs-foot__list a, .hs-foot__link-btn { display: inline-block; padding: 0; border: 0; background: none; cursor: pointer; font: inherit; font-size: 15px; line-height: 1.35; color: var(--white-60); text-align: left; transition: color .2s ease, transform .3s var(--hs-ease-out); }
.hs-foot__list a:hover, .hs-foot__link-btn:hover { color: #fff; transform: translateX(3px); }
.hs-foot__link-btn { margin-top: 12px; }
.hs-foot__social { display: flex; gap: 10px; margin-top: var(--space-5); }
.hs-foot__social a { display: grid; place-items: center; width: 38px; height: 38px; border-radius: 50%; border: 1px solid var(--white-12); background: var(--white-06); transition: background-color .25s ease, border-color .25s ease, transform .3s var(--hs-ease-out); }
.hs-foot__social a:hover { background: rgba(106, 234, 128, 0.12); border-color: rgba(106, 234, 128, 0.45); transform: translateY(-2px); }
.hs-foot__social img { width: 16px; height: 16px; opacity: 0.8; }

.hs-foot__bottom { display: flex; align-items: center; justify-content: space-between; gap: var(--space-6); padding-top: var(--space-6); padding-bottom: var(--space-6); }
.hs-foot__legal { display: flex; flex-wrap: wrap; gap: 4px 0; margin: 0; font-family: var(--font-mono); font-size: 11.5px; line-height: 1.6; letter-spacing: 0.04em; color: var(--white-40); }
.hs-foot__legal span + span::before { content: "·"; margin: 0 10px; color: var(--white-26); }

/* Back to top: glass circle, a thin ring that fills with scroll progress,
   green on hover. */
.hs-top.back-to-top {
  position: relative; flex: none; display: grid; place-items: center; width: 48px; height: 48px; padding: 0;
  border: 0; border-radius: 50%; cursor: pointer; color: var(--color-green-light);
  background: rgba(255, 255, 255, 0.05); box-shadow: inset 0 0 0 1px var(--white-12);
  -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px);
  transition: background-color .35s ease, color .35s ease, transform .45s var(--hs-ease-out), box-shadow .35s ease;
}
.hs-top__ring { position: absolute; inset: 0; width: 100%; height: 100%; transform: rotate(-90deg); fill: none; stroke-width: 1.5; }
.hs-top__ring circle { stroke: transparent; }
.hs-top__ring .hs-top__progress { stroke: var(--color-green-light); stroke-dasharray: 100; stroke-dashoffset: calc(100 - var(--hs-top-p, 0) * 100); stroke-linecap: round; transition: stroke-dashoffset .15s linear, stroke .3s ease; }
.hs-top__arrow { position: relative; width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; transition: transform .45s var(--hs-ease-out); }
.hs-top.back-to-top:hover { background: var(--color-green-light); color: var(--color-navy-black); transform: translateY(-3px); box-shadow: 0 14px 30px -10px rgba(0, 204, 106, 0.55), inset 0 0 0 1px var(--color-green-light); }
.hs-top.back-to-top:hover .hs-top__arrow { transform: translateY(-2px); }
.hs-top.back-to-top:hover .hs-top__progress { stroke: var(--color-navy-black); }
.hs-top.back-to-top:active { transform: translateY(0) scale(0.95); transition-duration: .15s; }
.hs-top.back-to-top:focus-visible { outline: 2px solid var(--color-green-light); outline-offset: 3px; }

@media (max-width: 1000px) {
  .hs-foot { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .hs-foot__brand { grid-column: 1 / -1; }
}
@media (max-width: 640px) {
  .site-footer .hs-foot { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: var(--space-8) var(--space-6); padding-top: var(--space-9); padding-bottom: var(--space-8); }
  .hs-foot > .hs-foot__col:last-child { grid-column: 1 / -1; }
  .site-footer .hs-foot__bottom { align-items: flex-end; padding-top: var(--space-6); padding-bottom: var(--space-7); }
  .hs-foot__legal { flex-direction: column; gap: 2px; }
  .hs-foot__legal span + span::before { content: none; }
}

/* Form cards (contact, product demo, funding): the two halves meet with no
   gap, so the card's own background never shows through as a strip. */
.contact-form-card.cf-split { column-gap: 0 !important; }
.cf-split__intro { border-right: 1px solid var(--white-07); }
@media (max-width: 900px) { .cf-split__intro { border-right: 0; border-bottom: 1px solid var(--white-07); } .contact-form-card.cf-split { row-gap: 0 !important; } }

/* Home hero: the background drifts with parallax, so give it spare height
   above and below (the hero clips it) and no strip is ever uncovered. */
.hero > .hero__bg { top: -12%; bottom: -26%; }

/* Stats on phones and tablets: a centred 2 x 2 grid with hairline dividers,
   instead of left-aligned halves with a wide empty right side. */
@media (max-width: 900px) {
  .stats .stats__list { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .stats .stats__item { padding: 30px 12px !important; text-align: center; border: 0 !important; }
  .stats .stats__item:nth-child(odd) { border-right: 1px solid var(--white-07) !important; }
  .stats .stats__item:nth-child(-n+2) { border-bottom: 1px solid var(--white-07) !important; }
  .stats .stats__label { margin-top: 8px; }
}

/* Mobile alignment: section headings share the page's 20px gutter. */
@media (max-width: 900px) {
  .services .services__heading { padding-left: 0 !important; padding-right: 0 !important; }
}
@media (max-width: 640px) {
  .work .work__grid { padding-left: var(--space-5) !important; padding-right: var(--space-5) !important; }
}
html.hs-foot-static .site-footer { position: relative !important; bottom: auto !important; }
html.hs-foot-static .footer-spacer { display: none !important; }
/* Legal row: company, number and VAT on one line; the registered office on
   its own line (never a line starting with a separator). */
.hs-foot__legal span:last-child { flex-basis: 100%; }
.hs-foot__legal span:last-child::before { content: none !important; }
@media (max-width: 640px) {
  .hs-foot__legal { font-size: 11px; letter-spacing: 0.01em; }
  .hs-foot__legal span { white-space: normal; }
}

/* Lenis drives every scroll itself; the browser's native smooth scrolling
   underneath it would re-animate each position (and cancel instant jumps). */
html.hs-smooth-on { scroll-behavior: auto !important; }

/* Insights cards: one design everywhere (Insights page, home rail, Keep
   reading). The frame matches the 16:9 covers exactly. */
.ins-card__media { aspect-ratio: 16 / 9 !important; }
.tv-rail--cards { --tv-w: clamp(290px, 27vw, 420px); }
.tv-rail--scroll.tv-rail--cards { --tv-w: clamp(290px, min(27vw, calc((100vh - 360px) * 1.05)), 420px); }
.tv-card.tv-card--ins {
  aspect-ratio: auto !important; height: auto; position: relative;
  display: flex; flex-direction: column; border-radius: 20px; overflow: hidden;
  background: #121413; border: 1px solid rgba(255, 255, 255, 0.07); color: #fff; box-shadow: none;
}
.tv-card.tv-card--ins .ins-card__media { position: relative; inset: auto; width: 100%; height: auto; }
.tv-card.tv-card--ins .ins-card__media img { position: static; width: 100%; height: 100%; object-fit: cover; }
.tv-card.tv-card--ins:hover, .tv-rail--scroll .tv-card.tv-card--ins.is-focus { border-color: rgba(106, 234, 128, 0.3); }
.tv-rail--scroll .tv-card.tv-card--ins.is-focus { transform: scale(1.04); box-shadow: 0 40px 70px -40px rgba(0, 0, 0, 0.9); }
@media (max-width: 700px) { .tv-rail--cards, .tv-rail--scroll.tv-rail--cards { --tv-w: 78vw; } }

/* Keep reading: a dark band continuing the Insights page design. */
.art-related { background: var(--color-navy-black); color: #fff; padding: clamp(72px, 9vw, 120px) 0; border-top: 1px solid var(--white-07); }
.art-related__head { display: flex; align-items: flex-end; justify-content: space-between; gap: 24px; margin-bottom: clamp(32px, 4vw, 48px); }
.art-related .tag { margin-bottom: 16px; }
.art-related__title { margin: 0; font-family: var(--font-display); font-weight: 700; font-size: clamp(32px, 4vw, 52px); line-height: 1.02; letter-spacing: -0.04em; }
.art-related__all { flex: none; }
@media (max-width: 640px) { .art-related__head { flex-direction: column; align-items: flex-start; } }

/* Discovery call card v2: pitch + live next-available slots. */
.art-cta { display: grid !important; grid-template-columns: minmax(0, 1.25fr) minmax(0, 1fr); align-items: stretch !important; gap: clamp(24px, 3vw, 40px) !important; }
.art-cta__title { max-width: 18ch; }
.art-cta__text { max-width: 40ch; }
.art-cta__copy .art-cta__actions { margin-top: 24px; }
.art-cta__slots { display: flex; flex-direction: column; gap: 10px; padding: 20px; border-radius: 18px; background: rgba(255, 255, 255, 0.04); border: 1px solid var(--white-07); }
.art-cta__slots-head { display: flex; align-items: center; gap: 8px; margin: 0 0 4px; font-family: var(--font-mono); font-size: 11px; letter-spacing: 0.16em; text-transform: uppercase; color: var(--white-60); }
.art-cta__live { width: 7px; height: 7px; border-radius: 50%; background: var(--color-green-light); box-shadow: 0 0 10px var(--color-green-light); animation: mg-pulse 1.8s ease-in-out infinite; }
.art-cta__slot-list { display: grid; gap: 8px; }
.art-cta__slot { display: flex; align-items: center; justify-content: space-between; gap: 12px; min-height: 48px; padding: 12px 16px; border-radius: 12px; background: rgba(255, 255, 255, 0.05); border: 1px solid var(--white-07); color: #fff; font-size: 14.5px; transition: background-color .25s ease, border-color .25s ease, transform .3s var(--hs-ease-out); }
.art-cta__slot b { font-weight: 600; }
.art-cta__slot span { font-family: var(--font-mono); font-size: 13px; color: var(--color-green-light); }
.art-cta__slot:hover { background: rgba(106, 234, 128, 0.12); border-color: rgba(106, 234, 128, 0.45); transform: translateX(3px); }
.art-cta__slot--pick { justify-content: center; color: var(--color-green-light); }
.art-cta__slot.is-skeleton { background: linear-gradient(90deg, rgba(255,255,255,.04), rgba(255,255,255,.09), rgba(255,255,255,.04)); background-size: 200% 100%; animation: art-shimmer 1.4s linear infinite; }
@keyframes art-shimmer { to { background-position: -200% 0; } }
.art-cta__slots-foot { margin: auto 0 0; padding-top: 6px; font-size: 12px; color: var(--white-40); }
@media (max-width: 900px) { .art-cta { grid-template-columns: 1fr; } }
@media (max-width: 640px) { .art-cta__copy .art-cta__actions, .art-cta__copy .art-cta__actions .btn { width: 100%; justify-content: center; } }

/* ===================================================================== */
/* Home testimonials v2: client list + quote cards (scroll-driven)      */
/* ===================================================================== */

.clients-testimonials { background-color: var(--color-off-white); background-image: radial-gradient(rgba(11, 13, 12, 0.08) 1px, transparent 1.3px); background-size: 16px 16px; }
.clients__title { margin: 12px 0 0; font-family: var(--font-display); font-weight: 700; font-size: clamp(30px, 3.6vw, 48px); line-height: 1.04; letter-spacing: -0.04em; color: var(--text-dark); }
.clients__idx { font-family: var(--font-mono); font-size: 11px; letter-spacing: 0.1em; color: var(--color-green); }
.testimonial__count { font-family: var(--font-mono); font-size: 11px; letter-spacing: 0.16em; color: rgba(11, 13, 12, 0.45); }

.testimonial-scroll.is-scrub .testimonial {
  background: #fff; border: 1px solid rgba(11, 13, 12, 0.08); border-radius: 28px;
  box-shadow: 0 1px 2px rgba(11, 13, 12, 0.04), 0 40px 80px -50px rgba(11, 13, 12, 0.35);
}
.testimonial__quote { font-size: clamp(21px, 2.1vw, 30px) !important; line-height: 1.32 !important; font-weight: 600; letter-spacing: -0.02em; color: var(--text-dark); }
.testimonial__quote::before { font-size: 2.2em !important; }
.testimonial__meta { margin-top: auto !important; padding: 0 !important; background: none !important; border: 0 !important; box-shadow: none !important; }

@media (min-width: 1000px) {
  .testimonial-stage {
    display: grid !important; grid-template-columns: minmax(0, 0.8fr) minmax(0, 1.2fr); align-items: center; gap: clamp(40px, 5vw, 80px) !important;
    width: 100%; max-width: 1280px; margin: 0 auto; padding: 0 var(--space-8) !important;
    grid-template-columns: minmax(0, 0.72fr) minmax(0, 1.28fr);
    height: calc(100vh - var(--nav-height)) !important; max-height: 760px; overflow: visible !important;
  }
  .testimonial-stage > .clients { width: auto; max-width: none; margin: 0; padding: 0 !important; align-items: flex-start !important; text-align: left; }
  .clients__tag { text-align: left; }
  .testimonial-stage .clients__list { display: flex !important; flex-direction: column; width: 100%; gap: 0; margin-top: 36px; padding: 0; border: 0; border-radius: 0; background: none; }
  .testimonial-stage .clients__list li { display: flex; align-items: center; gap: 16px; width: 100%; padding: 18px 2px 20px; border-radius: 0; border-top: 1px solid rgba(11, 13, 12, 0.09); background: none !important; box-shadow: none !important; font-size: 19px; color: rgba(11, 13, 12, 0.4); overflow: visible; }
  .testimonial-stage .clients__list li:last-child { border-bottom: 1px solid rgba(11, 13, 12, 0.09); }
  .testimonial-stage .clients__list li.is-featured { color: var(--text-dark); }
  .testimonial-stage .clients__bar { display: block !important; left: 0; right: 0; bottom: -1px; height: 2px; }
  .testimonial-stage .testimonial-cards { height: min(540px, 80%); min-height: 440px; }
  .testimonial-scroll.is-scrub .testimonial { inset: 0; max-width: none; margin: 0; align-items: flex-start; justify-content: flex-start; gap: 18px; text-align: left; padding: clamp(32px, 3.4vw, 52px) !important; }
  .testimonial__quote { text-wrap: pretty; }
}
@media (max-width: 999px) {
  .testimonial-stage { height: min(88vh, 720px) !important; padding: var(--space-8) 0 var(--space-6) !important; }
  .clients__title { text-align: center; }
  .testimonial-scroll.is-scrub .testimonial { inset: 8px var(--space-5) 0; max-width: none; margin: 0; align-items: flex-start; justify-content: flex-start; gap: 14px; text-align: left; padding: 26px 22px !important; }
}
@media (max-width: 999px) {
  .testimonial-stage .clients__list { max-width: calc(100vw - 32px); }
  .testimonial-stage .clients__list li { padding: 8px 10px 10px; font-size: 12.5px; gap: 0; }
  .testimonial-stage .clients__idx { display: none; }
  .testimonial-stage .clients__list { margin-top: 18px; }
  .testimonial-stage .testimonial-cards { width: 100%; }
}
.testimonial__avatar { font-size: 14px !important; letter-spacing: 0.02em; }

/* Product content blocks: square frames. Square artwork fills them; any
   other shape is fitted over a blurred fill of itself (hs-fit). */
.scan-split__frame {
  --sq: min(36vw, 74vh, 620px);
  width: var(--sq); height: var(--sq) !important; aspect-ratio: 1 / 1; margin-left: auto;
  top: calc(50vh - var(--sq) / 2 + var(--nav-height) / 4);
}
.scan-split__inline-media, .scan-split__inline-media.hs-fit { aspect-ratio: 1 / 1 !important; max-width: 560px; }
@media (max-width: 1100px) { .scan-split__inline-media { aspect-ratio: 1 / 1 !important; } }
.hs-foot__address { max-width: 230px; font-size: 15px; line-height: 1.45; color: var(--white-60); }

/* AI & Automation on phones/tablets: one continuous dot field per slide
   (text and media share it) and the panels scroll together. */
@media (max-width: 900px) {
  html body .aiservices-stage-card { background: radial-gradient(rgba(255, 255, 255, 0.07) 1px, transparent 1.3px) 0 0 / 16px 16px, var(--color-navy-black) !important; }
  html body .aiservices-stage-card:nth-child(odd) { background: radial-gradient(rgba(11, 13, 12, 0.09) 1px, transparent 1.3px) 0 0 / 16px 16px, var(--color-off-white) !important; }
  html body .aiservices-stage-card .aiservices-stage-card__text,
  html body .aiservices-stage-card:nth-child(odd) .aiservices-stage-card__text,
  html body .aiservices-stage-card .aiservices-stage-card__media { background: transparent !important; transform: none !important; }
}

/* Help panel on phones: smaller launcher, and the panel always fits between
   the floating nav and the launcher (its body scrolls inside). */
@media (max-width: 640px) {
  .live-chat__launcher { width: 52px; height: 52px; }
  .live-chat__launcher svg { width: 22px; height: 22px; }
  .live-chat.is-open .live-chat__launcher::after { font-size: 17px; }
  .hs-help.live-chat__panel {
    left: 12px; right: 12px; bottom: 80px;
    max-height: calc(100dvh - 80px - var(--nav-height) - 28px);
    border-radius: 20px;
  }
  .hs-help__head { padding: 14px 14px 12px; }
  .hs-help__mark { width: 34px; height: 34px; border-radius: 10px; }
  .hs-help__title { font-size: 16px; }
  .hs-help__search { margin: 0 14px 12px; height: 42px; }
  .hs-help__body { padding: 0 14px 14px; }
  .hs-help__action { padding: 10px 12px; }
  .hs-help__label { margin: 14px 0 6px; }
  .hs-help__faq summary { font-size: 13.5px; padding: 11px 0; }
}

/* Testimonials: scroll length follows the number of quotes. */
.testimonial-scroll.is-scrub { height: calc(100vh + (var(--hs-tn, 3) - 1) * 72vh); }
@media (max-width: 999px) {
  .testimonial-stage .clients { max-width: 100%; }
  .testimonial-stage .clients__list { display: flex !important; flex-wrap: nowrap; justify-content: flex-start; max-width: calc(100vw - 32px); overflow-x: auto; scrollbar-width: none; -webkit-mask-image: linear-gradient(90deg, transparent 0, #000 14px, #000 calc(100% - 14px), transparent 100%); mask-image: linear-gradient(90deg, transparent 0, #000 14px, #000 calc(100% - 14px), transparent 100%); }
  .testimonial-stage .clients__list::-webkit-scrollbar { display: none; }
  .testimonial-stage .clients__list li { flex: 0 0 auto; white-space: nowrap; }
}

/* ===================================================================== */
/* Legal pages (templates/page-legal.php): article layout, legal extras  */
/* ===================================================================== */

.legal-hero { padding-bottom: clamp(40px, 5vw, 60px); }
.legal-hero .art-hero__title { max-width: 20ch; }
.legal-hero__meta { display: flex; flex-wrap: wrap; gap: 6px 0; margin-top: 26px; font-family: var(--font-mono); font-size: 11.5px; letter-spacing: 0.1em; text-transform: uppercase; color: rgba(255, 255, 255, 0.55); }
.legal-hero__meta span + span::before { content: "·"; margin: 0 12px; color: rgba(255, 255, 255, 0.3); }
.legal-docs { display: flex; gap: 8px; margin-top: clamp(28px, 4vw, 44px); padding-bottom: 2px; overflow-x: auto; scrollbar-width: none; }
.legal-docs::-webkit-scrollbar { display: none; }
.legal-docs a { flex: none; padding: 9px 16px; border-radius: 999px; border: 1px solid rgba(255, 255, 255, 0.14); font-size: 14px; color: rgba(255, 255, 255, 0.7); white-space: nowrap; transition: color .25s ease, border-color .25s ease, background-color .25s ease; }
.legal-docs a:hover { color: #fff; border-color: rgba(255, 255, 255, 0.35); }
.legal-docs a.is-current { background: var(--color-green-light); border-color: var(--color-green-light); color: var(--color-navy-black); font-weight: 600; }

.legal-body__grid { grid-template-columns: 230px minmax(0, 760px); justify-content: start; gap: clamp(48px, 6vw, 96px); }
.legal-body .art-toc { max-height: calc(100vh - var(--nav-height) - 72px); overflow-y: auto; scrollbar-width: none; }

/* Section numbers sit above each heading; sections are ruled apart. */
.legal-content > p.legal-num { margin: 56px 0 0; padding-top: 40px; border-top: 1px solid rgba(11, 13, 12, 0.1); font-family: var(--font-mono); font-size: 12px; letter-spacing: 0.14em; line-height: 1; color: var(--color-green); }
.legal-content > p.legal-keypoints + ul + p.legal-num { border-top: 0; padding-top: 0; }
.legal-content > p.legal-num + h2 { margin-top: 14px; scroll-margin-top: calc(var(--nav-height) + 28px); }
.legal-content h2 { scroll-margin-top: calc(var(--nav-height) + 28px); }
.legal-content > p, .legal-content li { font-size: 17px; }

/* Key points: dark card like the article "Key takeaways". */
.legal-content > p.legal-keypoints { margin: 0; padding: 26px 28px 0; border-radius: 20px 20px 0 0; background: var(--color-navy-black); font-family: var(--font-mono); font-size: 11px; letter-spacing: 0.16em; text-transform: uppercase; color: var(--color-green-light); }
.legal-content > p.legal-keypoints strong { color: inherit; font-weight: 500; }
.legal-content > p.legal-keypoints + ul { margin: 0 0 8px; padding: 12px 28px 24px; border: 0; border-radius: 0 0 20px 20px; background: var(--color-navy-black); box-shadow: 0 40px 80px -50px rgba(11, 13, 12, 0.6); }
.legal-content > p.legal-keypoints + ul > li { color: rgba(255, 255, 255, 0.84); font-size: 16px; line-height: 1.6; padding-left: 32px; }
.legal-content > p.legal-keypoints + ul > li::before { width: 18px; height: 18px; left: 0; top: 0.2em; background: rgba(106, 234, 128, 0.16) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%236AEA80' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M5 12l5 5L20 7'/%3E%3C/svg%3E") center / 11px no-repeat; }
.legal-content > p.legal-keypoints + ul a { color: var(--color-green-light); }

/* Tables (cookie list) scroll sideways on phones instead of squashing. */
.legal-content table { width: 100%; margin: 0 0 1.6em; border-collapse: collapse; font-size: 15px; }
.legal-content th, .legal-content td { padding: 12px 14px; border-bottom: 1px solid rgba(11, 13, 12, 0.1); text-align: left; vertical-align: top; color: rgba(11, 13, 12, 0.78); }
.legal-content th { font-family: var(--font-mono); font-size: 11px; letter-spacing: 0.12em; text-transform: uppercase; color: rgba(11, 13, 12, 0.5); font-weight: 500; }
.legal-content .wp-block-table, .legal-content figure.wp-block-table { overflow-x: auto; margin: 0 0 1.6em; }

/* Contact card at the end of every legal document. */
.legal-contact { display: grid; grid-template-columns: minmax(0, 0.8fr) minmax(0, 1.2fr); gap: 28px 40px; margin-top: 64px; padding: clamp(26px, 3vw, 38px); border-radius: 24px; background: #fff; border: 1px solid rgba(11, 13, 12, 0.08); box-shadow: 0 40px 80px -60px rgba(11, 13, 12, 0.4); }
.legal-contact__eyebrow { margin: 0 0 8px; font-family: var(--font-mono); font-size: 11px; letter-spacing: 0.16em; text-transform: uppercase; color: var(--color-green); }
.legal-contact__title { margin: 0; font-family: var(--font-display); font-weight: 700; font-size: clamp(22px, 2.2vw, 28px); line-height: 1.12; letter-spacing: -0.03em; color: var(--color-navy-black); }
.legal-contact__text { margin: 10px 0 0; font-size: 15px; color: rgba(11, 13, 12, 0.6); }
.legal-contact__list { display: grid; gap: 14px; margin: 0; }
.legal-contact__list div { display: grid; grid-template-columns: 130px minmax(0, 1fr); gap: 12px; padding-bottom: 14px; border-bottom: 1px solid rgba(11, 13, 12, 0.07); }
.legal-contact__list div:last-child { border-bottom: 0; padding-bottom: 0; }
.legal-contact__list dt { font-family: var(--font-mono); font-size: 10.5px; letter-spacing: 0.14em; text-transform: uppercase; color: rgba(11, 13, 12, 0.45); padding-top: 3px; }
.legal-contact__list dd { margin: 0; font-size: 15px; line-height: 1.5; color: var(--color-navy-black); }
.legal-contact__list a { color: var(--color-navy-black); text-decoration: underline; text-decoration-color: rgba(0, 204, 106, 0.5); text-underline-offset: 3px; }
.legal-contact__list a:hover { color: #00874a; }
.legal-contact__btn { grid-column: 1 / -1; justify-self: start; }

@media (max-width: 1100px) {
  .legal-body__grid { grid-template-columns: minmax(0, 1fr); }
  .legal-body .art-main { max-width: 760px; }
}
@media (max-width: 640px) {
  .legal-hero__meta { font-size: 10.5px; }
  .legal-docs { margin-right: calc(var(--space-5) * -1); padding-right: var(--space-5); -webkit-mask-image: linear-gradient(90deg, #000 85%, transparent); mask-image: linear-gradient(90deg, #000 85%, transparent); }
  .legal-content > p, .legal-content li { font-size: 16px; line-height: 1.7; }
  .legal-content > p.legal-num { margin-top: 40px; padding-top: 32px; }
  .legal-content > p.legal-keypoints { padding: 22px 20px 0; }
  .legal-content > p.legal-keypoints + ul { padding: 10px 20px 20px; }
  .legal-content > p.legal-keypoints + ul > li { font-size: 15px; }
  .legal-content table { display: block; overflow-x: auto; white-space: nowrap; }
  .legal-contact { grid-template-columns: minmax(0, 1fr); margin-top: 48px; padding: 24px 20px; border-radius: 20px; }
  .legal-contact__list div { grid-template-columns: minmax(0, 1fr); gap: 4px; }
  .legal-contact__btn { width: 100%; justify-content: center; }
}
@media (max-width: 640px) { .legal-hero__meta span:nth-child(3) { display: none; } }

/* Button shine, rebuilt so it never leaves the button box. The old version
   parked a skewed strip at left:-75% and relied on overflow:hidden with a
   rounded radius to hide it; Safari sometimes drops that clip mid
   transition, which left a grey slanted streak beside buttons. The streak
   is now a background painted inside the button and moved by
   background-position, and it is invisible at rest. */
.btn::before,
.hero__actions .btn--primary::after {
  left: 0 !important; top: 0; width: 100% !important; height: 100%;
  transform: none !important;
  border-radius: inherit;
  background: linear-gradient(115deg, transparent 38%, rgba(255, 255, 255, 0.42) 50%, transparent 62%) no-repeat;
  background-size: 250% 100%;
  background-position: 130% 0;
  opacity: 0;
  transition: background-position 0.7s cubic-bezier(0.16, 1, 0.3, 1), opacity 0.2s ease;
}
.btn:hover::before { left: 0 !important; opacity: 1; background-position: -30% 0; }
.hero__actions .btn--primary::after { opacity: 1; transition: none; animation: hs-btn-shine 3s ease-in-out infinite; }
@keyframes hs-btn-shine { 0%, 40% { background-position: 130% 0; } 70%, 100% { background-position: -30% 0; } }
@media (prefers-reduced-motion: reduce) { .hero__actions .btn--primary::after { animation: none; opacity: 0; } }

/* ===================================================================== */
/* Solution pages (single-service.php): facts, features, example, steps, */
/* roles and trust. Dots on the light and dark bands, site tokens only.  */
/* ===================================================================== */

.service-intro__desc p { font-size: clamp(18px, 1.5vw, 21px); line-height: 1.6; color: var(--text-dark); }
.service-intro__desc p + p { margin-top: 1em; font-size: 17px; color: rgba(11, 13, 12, 0.7); }

.sol-facts { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 0; max-width: 820px; margin: clamp(32px, 4vw, 52px) 0 0; border-top: 1px solid rgba(255, 255, 255, 0.12); }
.sol-facts div { padding: 20px 24px 0 0; }
.sol-facts div + div { padding-left: 24px; border-left: 1px solid rgba(255, 255, 255, 0.12); }
.sol-facts dt { font-family: var(--font-display); font-weight: 700; font-size: clamp(22px, 2.2vw, 30px); line-height: 1.1; letter-spacing: -0.03em; color: var(--color-green-light); }
.sol-facts dd { margin: 6px 0 0; font-size: 14px; line-height: 1.45; color: rgba(255, 255, 255, 0.62); }

.sol-h2 { margin: 14px 0 0; font-family: var(--font-display); font-weight: 700; font-size: clamp(30px, 3.4vw, 46px); line-height: 1.05; letter-spacing: -0.04em; }

.sol-features { padding: clamp(72px, 9vw, 128px) 0; background: radial-gradient(rgba(11, 13, 12, 0.08) 1px, transparent 1.3px) 0 0 / 16px 16px, var(--color-off-white); color: var(--text-dark); }
.sol-features__grid.has-example { display: grid; grid-template-columns: minmax(0, 1.25fr) minmax(0, 0.75fr); gap: clamp(40px, 5vw, 80px); align-items: start; }
.sol-features__list { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px; margin: clamp(32px, 4vw, 48px) 0 0; padding: 0; list-style: none; }
.sol-features__grid:not(.has-example) .sol-features__list { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.sol-features__list li { display: flex; gap: 14px; padding: 22px 22px 24px; border-radius: 20px; background: #fff; border: 1px solid rgba(11, 13, 12, 0.07); box-shadow: 0 1px 2px rgba(11, 13, 12, 0.03); transition: border-color .3s ease, box-shadow .4s var(--hs-ease-out), transform .4s var(--hs-ease-out); }
.sol-features__list li:hover { border-color: rgba(0, 204, 106, 0.4); box-shadow: 0 24px 50px -34px rgba(11, 13, 12, 0.35); transform: translateY(-2px); }
.sol-features__num { flex: none; font-family: var(--font-mono); font-size: 11px; letter-spacing: 0.1em; color: var(--color-green); padding-top: 4px; }
.sol-features__list h3 { margin: 0; font-family: var(--font-display); font-weight: 600; font-size: 18px; line-height: 1.25; letter-spacing: -0.02em; color: var(--color-navy-black); }
.sol-features__list p { margin: 8px 0 0; font-size: 15px; line-height: 1.55; color: rgba(11, 13, 12, 0.66); }

.sol-example { position: sticky; top: calc(var(--nav-height) + 32px); margin-top: 8px; border-radius: 22px; overflow: hidden; background: var(--color-navy-black); color: #fff; border: 1px solid rgba(255, 255, 255, 0.06); box-shadow: 0 50px 100px -50px rgba(11, 13, 12, 0.7), 0 30px 60px -50px rgba(0, 204, 106, 0.4); }
.sol-example__bar { display: flex; align-items: center; gap: 12px; padding: 14px 18px; border-bottom: 1px solid rgba(255, 255, 255, 0.08); font-family: var(--font-mono); font-size: 11px; letter-spacing: 0.12em; text-transform: uppercase; color: rgba(255, 255, 255, 0.6); }
.sol-example__rows { margin: 0; padding: 8px 18px; }
.sol-example__rows div { display: grid; grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr); gap: 12px; padding: 13px 0; border-bottom: 1px dashed rgba(255, 255, 255, 0.1); }
.sol-example__rows div:last-child { border-bottom: 0; }
.sol-example__rows dt { font-family: var(--font-mono); font-size: 11px; letter-spacing: 0.08em; text-transform: uppercase; color: rgba(255, 255, 255, 0.45); padding-top: 2px; }
.sol-example__rows dd { margin: 0; font-size: 14.5px; line-height: 1.45; color: #fff; }
.sol-example__rows dd em { display: block; margin-top: 4px; font-style: normal; font-family: var(--font-mono); font-size: 10.5px; letter-spacing: 0.08em; color: var(--color-green-light); }
.sol-example__note { margin: 0; padding: 12px 18px 16px; font-family: var(--font-mono); font-size: 10px; letter-spacing: 0.14em; text-transform: uppercase; color: rgba(255, 255, 255, 0.3); }

.sol-steps { padding: clamp(72px, 9vw, 128px) 0; background: radial-gradient(rgba(255, 255, 255, 0.07) 1px, transparent 1.3px) 0 0 / 16px 16px, var(--color-navy-black); color: #fff; }
.sol-steps .sol-h2 { color: #fff; }
.sol-steps__list { position: relative; display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 18px; margin: clamp(40px, 5vw, 64px) 0 0; padding: 0; list-style: none; counter-reset: none; }
.sol-steps__list::before { content: ""; position: absolute; left: 0; right: 0; top: 19px; height: 1px; background: linear-gradient(90deg, rgba(106, 234, 128, 0.6), rgba(255, 255, 255, 0.1)); }
.sol-steps__list li { position: relative; padding-top: 58px; }
.sol-steps__num { position: absolute; top: 0; left: 0; display: grid; place-items: center; width: 40px; height: 40px; border-radius: 50%; background: var(--color-navy-black); border: 1px solid rgba(106, 234, 128, 0.5); font-family: var(--font-mono); font-size: 12px; color: var(--color-green-light); }
.sol-steps__list h3 { margin: 0; font-family: var(--font-display); font-weight: 600; font-size: 19px; line-height: 1.2; letter-spacing: -0.02em; }
.sol-steps__list p { margin: 10px 0 0; font-size: 14.5px; line-height: 1.6; color: rgba(255, 255, 255, 0.62); }

.sol-fit { padding: clamp(72px, 9vw, 128px) 0; background: radial-gradient(rgba(11, 13, 12, 0.08) 1px, transparent 1.3px) 0 0 / 16px 16px, var(--color-off-white); color: var(--text-dark); }
.sol-fit__grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: clamp(40px, 5vw, 80px); align-items: start; }
.sol-fit__roles .sol-h2 { margin-bottom: 28px; }
.sol-role { padding: 20px 0; border-top: 1px solid rgba(11, 13, 12, 0.1); }
.sol-role h3 { margin: 0; font-family: var(--font-display); font-weight: 600; font-size: 19px; letter-spacing: -0.02em; color: var(--color-navy-black); }
.sol-role p { margin: 6px 0 0; font-size: 15.5px; line-height: 1.6; color: rgba(11, 13, 12, 0.66); }
.sol-trust { position: relative; overflow: hidden; padding: clamp(28px, 3.4vw, 44px); border-radius: 26px; background: var(--color-navy-black); color: #fff; }
.sol-trust::before { content: ""; position: absolute; right: -25%; top: -45%; width: 80%; height: 120%; pointer-events: none; background: radial-gradient(closest-side, rgba(0, 204, 106, 0.18), transparent 70%); }
.sol-trust__eyebrow { position: relative; margin: 0 0 10px; font-family: var(--font-mono); font-size: 11px; letter-spacing: 0.16em; text-transform: uppercase; color: var(--color-green-light); }
.sol-trust__title { position: relative; margin: 0 0 22px; font-family: var(--font-display); font-weight: 700; font-size: clamp(24px, 2.4vw, 32px); letter-spacing: -0.03em; }
.sol-trust ul { position: relative; margin: 0; padding: 0; list-style: none; }
.sol-trust li { position: relative; padding: 11px 0 11px 32px; border-top: 1px solid rgba(255, 255, 255, 0.08); font-size: 15.5px; line-height: 1.5; color: rgba(255, 255, 255, 0.84); }
.sol-trust li::before { content: ""; position: absolute; left: 0; top: 13px; width: 18px; height: 18px; border-radius: 50%; background: rgba(106, 234, 128, 0.16) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%236AEA80' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M5 12l5 5L20 7'/%3E%3C/svg%3E") center / 11px no-repeat; }
.sol-trust__link { position: relative; display: inline-flex; gap: 6px; margin-top: 22px; font-size: 15px; font-weight: 600; color: var(--color-green-light); transition: gap .3s var(--hs-ease-out); }
.sol-trust__link:hover { gap: 10px; }

@media (max-width: 1100px) {
  .sol-steps__list { grid-template-columns: repeat(2, minmax(0, 1fr)); row-gap: 32px; }
  .sol-steps__list::before { display: none; }
  .sol-features__grid.has-example { grid-template-columns: minmax(0, 1fr); }
  .sol-example { position: relative; top: 0; max-width: 560px; }
  .sol-features__grid:not(.has-example) .sol-features__list { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 760px) {
  .sol-facts { grid-template-columns: minmax(0, 1fr); }
  .sol-facts div, .sol-facts div + div { display: flex; align-items: baseline; gap: 14px; padding: 14px 0; border-left: 0; border-bottom: 1px solid rgba(255, 255, 255, 0.1); }
  .sol-facts dt { flex: 0 0 38%; font-size: 22px; }
  .sol-facts dd { margin: 0; }
  .sol-features__list, .sol-features__grid:not(.has-example) .sol-features__list { grid-template-columns: minmax(0, 1fr); }
  .sol-steps__list { grid-template-columns: minmax(0, 1fr); row-gap: 0; }
  .sol-steps__list li { padding: 0 0 26px 58px; min-height: 40px; }
  .sol-steps__list li:not(:last-child)::after { content: ""; position: absolute; left: 19.5px; top: 44px; bottom: 4px; width: 1px; background: rgba(106, 234, 128, 0.35); }
  .sol-fit__grid { grid-template-columns: minmax(0, 1fr); }
  .sol-example__rows div { grid-template-columns: minmax(0, 1fr); gap: 4px; }
}

/* AI & Automation: specialist solutions grid (after the slides). */
.sol-more { position: relative; z-index: 2; padding: clamp(80px, 10vw, 140px) 0; background: radial-gradient(rgba(11, 13, 12, 0.08) 1px, transparent 1.3px) 0 0 / 16px 16px, var(--color-off-white); color: var(--text-dark); }
.sol-more__head { max-width: 640px; }
.sol-more__lead { margin: 16px 0 0; font-size: 17px; line-height: 1.6; color: rgba(11, 13, 12, 0.66); }
.sol-more__grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; margin-top: clamp(40px, 5vw, 60px); }
.sol-card { display: flex; flex-direction: column; min-height: 300px; padding: 26px 26px 24px; border-radius: 22px; background: #fff; border: 1px solid rgba(11, 13, 12, 0.07); color: inherit; transition: border-color .3s ease, box-shadow .45s var(--hs-ease-out), transform .45s var(--hs-ease-out), background-color .35s ease; }
.sol-card:hover { transform: translateY(-4px); border-color: rgba(0, 204, 106, 0.45); box-shadow: 0 30px 60px -40px rgba(11, 13, 12, 0.45); }
.sol-card__num { font-family: var(--font-display); font-weight: 700; font-size: 34px; line-height: 1; letter-spacing: -0.04em; color: rgba(11, 13, 12, 0.14); }
.sol-card__title { margin: 22px 0 0; font-family: var(--font-display); font-weight: 700; font-size: 22px; line-height: 1.15; letter-spacing: -0.03em; color: var(--color-navy-black); }
.sol-card__text { margin: 10px 0 0; font-size: 15px; line-height: 1.55; color: rgba(11, 13, 12, 0.66); }
.sol-card__tags { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 18px; }
.sol-card__tags span { padding: 5px 11px; border-radius: 999px; border: 1px solid rgba(11, 13, 12, 0.12); font-size: 12.5px; color: rgba(11, 13, 12, 0.7); }
.sol-card__go { display: inline-flex; gap: 6px; margin-top: auto; padding-top: 22px; font-size: 14.5px; font-weight: 600; color: #00874a; transition: gap .3s var(--hs-ease-out); }
.sol-card:hover .sol-card__go { gap: 10px; }
@media (max-width: 1000px) { .sol-more__grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 640px) { .sol-more__grid { grid-template-columns: minmax(0, 1fr); } .sol-card { min-height: 0; } }

/* Arrived by page transition: one-off entrance keyframes stay off after the
   transition ends too. hs-vt-arrived is removed once it settles, and
   removing "animation: none" restarts a keyframe animation, which replayed
   the hero glow and the product illustration a second time. */
html.hs-vt-done .hs-illo { animation: none !important; }
html.hs-vt-done .hs-hero-fx::before { animation: none !important; opacity: 1 !important; }

/* Industries (phones): the illustrations sit in the top half of the art,
   so the landscape crop keeps the top instead of the middle. */
.ind-scan__panel-media.hs-fit img, .ind-scan__panel-media img { object-fit: cover !important; object-position: 50% 4% !important; }
.ind-scan__panel-media.hs-fit::before { display: none; }

/* ===================================================================== */
/* Product diagrams (product-diagram.php): drawn product screens with    */
/* sample data on the AI diagram stage, same theme variables.            */
/* ===================================================================== */

.pd-win { left: 20px; top: 40px; width: 520px; height: 520px; padding: 0 22px 22px; border: 1.5px solid var(--aid-line); border-radius: 14px; background: var(--aid-card); box-shadow: 0 40px 80px -44px rgba(0, 0, 0, 0.45); overflow: hidden; opacity: 0; transform: translateY(14px); transition: opacity .6s ease, transform .9s var(--hs-ease-out); }
.aid.is-on .pd-win { opacity: 1; transform: none; }
.pd-bar { display: flex; align-items: center; gap: 12px; height: 44px; margin: 0 -22px 18px; padding: 0 18px; border-bottom: 1.5px solid var(--aid-faint); }
.pd-dots { display: inline-flex; gap: 6px; }
.pd-dots i { width: 9px; height: 9px; border-radius: 50%; border: 1.5px solid var(--aid-line); opacity: .5; }
.pd-url { font-family: var(--font-mono); font-size: 11px; letter-spacing: .1em; color: var(--aid-soft); }
.pd-h { margin: 0 0 16px; font-family: var(--font-display); font-weight: 700; font-size: 22px; letter-spacing: -0.02em; color: var(--aid-ink); }
.pd-h em { display: block; margin-top: 4px; font-style: normal; font-family: var(--font-mono); font-weight: 400; font-size: 10.5px; letter-spacing: .12em; text-transform: uppercase; color: var(--aid-soft); }
.pd-sub { margin: 18px 0 8px; font-family: var(--font-mono); font-size: 10.5px; letter-spacing: .14em; text-transform: uppercase; color: var(--aid-soft); }

.pd-in { opacity: 0; transform: translateY(8px); transition: opacity .45s ease, transform .7s var(--hs-ease-out); transition-delay: calc(var(--k, 0) * 90ms + 250ms); }
.aid.is-on .pd-in { opacity: 1; transform: none; }

.pd-kpis { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 8px; }
.pd-kpi { display: flex; flex-direction: column; gap: 10px; padding: 12px 10px; border: 1.5px solid var(--aid-faint); border-radius: 10px; }
.pd-kpi span { font-family: var(--font-mono); font-size: 9px; letter-spacing: .08em; text-transform: uppercase; color: var(--aid-soft); white-space: nowrap; }
.pd-kpi b { font-family: var(--font-display); font-weight: 700; font-size: 28px; line-height: 1; letter-spacing: -0.03em; }
.pd-kpi--acc { border-color: var(--aid-acc); background: var(--aid-acc-soft); }
.pd-kpi--acc b { color: var(--aid-acc); }
.aid--light .pd-kpi--acc b { color: #00994f; }
.pd-kpi--warn b { color: #e0892b; }

.pd-table { display: flex; flex-direction: column; border: 1.5px solid var(--aid-faint); border-radius: 10px; overflow: hidden; }
.pd-th, .pd-tr { display: grid; grid-template-columns: 1.5fr .6fr .9fr .9fr .4fr; align-items: center; gap: 10px; padding: 11px 14px; font-size: 13px; }
.pd-th { font-family: var(--font-mono); font-size: 9.5px; letter-spacing: .1em; text-transform: uppercase; color: var(--aid-soft); background: var(--aid-fill); }
.pd-tr + .pd-tr, .pd-th + .pd-tr { border-top: 1.5px solid var(--aid-faint); }
.pd-tr b { font-weight: 600; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.pd-tr span, .pd-tr em { font-style: normal; font-size: 12px; color: var(--aid-soft); white-space: nowrap; }
.pd-table--clients .pd-th, .pd-table--clients .pd-tr { grid-template-columns: 1.4fr 1fr .9fr; }
.pd-table--returns .pd-tr { grid-template-columns: 1.4fr 1.1fr .35fr .8fr; padding: 13px 14px; }

.pd-badge { justify-self: start; display: inline-flex; align-items: center; gap: 5px; padding: 4px 9px; border-radius: 999px; font-family: var(--font-mono); font-size: 9.5px; letter-spacing: .06em; text-transform: uppercase; white-space: nowrap; border: 1px solid transparent; }
.pd-badge::before { content: ""; width: 5px; height: 5px; border-radius: 50%; background: currentColor; }
.pd-badge--acc { color: #00994f; background: var(--aid-acc-soft); }
.aid--dark .pd-badge--acc { color: var(--aid-acc); }
.pd-badge--warn { color: #d97b1c; background: rgba(224, 137, 43, .14); }
.pd-badge--info { color: var(--aid-ink); background: var(--aid-fill); }
.pd-badge--mute { color: var(--aid-soft); border-color: var(--aid-faint); }

.pd-meter { position: relative; display: block; height: 6px; border-radius: 6px; background: var(--aid-faint); overflow: hidden; }
.pd-meter i { position: absolute; inset: 0 auto 0 0; width: var(--w); border-radius: inherit; background: var(--aid-acc); transform-origin: 0 50%; transform: scaleX(0); transition: transform 1.2s var(--hs-ease-out) .5s; }
.aid.is-on .pd-meter i { transform: none; }

.pd-add { margin-top: 4px; }
.pd-input { display: flex; align-items: center; height: 40px; padding: 0 14px; border: 1.5px solid var(--aid-line); border-radius: 10px; font-size: 14px; }
.pd-type { display: inline-block; overflow: hidden; white-space: nowrap; width: 0; }
.aid.is-on .pd-type { animation: pd-type 1.4s steps(17) 1.2s forwards; }
.pd-caret { width: 1.5px; height: 18px; margin-left: 2px; background: var(--aid-acc); animation: pd-blink 1s steps(1) infinite; }
.pd-note { display: flex; align-items: center; gap: 6px; margin-top: 10px; font-size: 12.5px; color: var(--aid-soft); opacity: 0; transition: opacity .5s ease 2.8s; }
.aid.is-on .pd-note { opacity: 1; }
.pd-tick { width: 14px; height: 14px; flex: none; fill: none; stroke: var(--aid-acc); stroke-width: 2.4; stroke-linecap: round; stroke-linejoin: round; }
@keyframes pd-type { to { width: 9.2em; } }
@keyframes pd-blink { 50% { opacity: 0; } }

.pd-sum { display: flex; gap: 8px; margin-top: 14px; }
.pd-sum span { flex: 1; padding: 10px 12px; border: 1.5px solid var(--aid-faint); border-radius: 10px; font-size: 12.5px; color: var(--aid-soft); }
.pd-sum b { display: block; font-family: var(--font-display); font-size: 22px; color: var(--aid-ink); }

.pd-files { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.pd-file { display: flex; align-items: center; gap: 10px; padding: 12px; border: 1.5px dashed var(--aid-line); border-radius: 10px; }
.pd-file__ico { display: grid; place-items: center; width: 34px; height: 40px; flex: none; border-radius: 6px; background: var(--aid-acc-soft); font-family: var(--font-mono); font-size: 9px; color: #00994f; }
.aid--dark .pd-file__ico { color: var(--aid-acc); }
.pd-file span:nth-child(2) { min-width: 0; display: flex; flex-direction: column; gap: 3px; }
.pd-file em { font-style: normal; font-family: var(--font-mono); font-size: 9px; letter-spacing: .1em; text-transform: uppercase; color: var(--aid-soft); }
.pd-file b { font-size: 11.5px; font-weight: 600; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.pd-flow { display: flex; align-items: center; gap: 10px; margin: 16px 0; font-family: var(--font-mono); font-size: 10px; letter-spacing: .12em; text-transform: uppercase; color: var(--aid-soft); }
.pd-flow i { flex: 1; height: 0; border-top: 1.5px dashed var(--aid-acc); }
.aid.is-on .pd-flow i { animation: aid-flow 1.1s linear infinite; }
.pd-result { padding: 4px 16px 12px; border: 1.5px solid var(--aid-acc); border-radius: 12px; background: var(--aid-acc-soft); }
.pd-result .pd-sub { margin-top: 12px; color: #00994f; }
.aid--dark .pd-result .pd-sub { color: var(--aid-acc); }
.pd-result dl { display: grid; grid-template-columns: 1fr 1fr; gap: 10px 16px; margin: 0; }
.pd-result dt { font-size: 11.5px; color: var(--aid-soft); }
.pd-result dd { margin: 2px 0 0; font-family: var(--font-display); font-weight: 700; font-size: 20px; letter-spacing: -0.02em; }

.pd-toggles { display: flex; flex-direction: column; border: 1.5px solid var(--aid-faint); border-radius: 10px; }
.pd-toggle { display: flex; align-items: center; justify-content: space-between; padding: 12px 14px; font-size: 13.5px; }
.pd-toggle + .pd-toggle { border-top: 1.5px solid var(--aid-faint); }
.pd-sw { position: relative; width: 34px; height: 20px; border-radius: 20px; background: var(--aid-faint); transition: background-color .4s ease 1s; }
.pd-sw::after { content: ""; position: absolute; left: 3px; top: 3px; width: 14px; height: 14px; border-radius: 50%; background: var(--aid-card); box-shadow: 0 1px 2px rgba(0,0,0,.25); transition: transform .4s var(--hs-ease-out) 1s; }
.aid.is-on .is-on-sw .pd-sw { background: var(--aid-acc); }
.aid.is-on .is-on-sw .pd-sw::after { transform: translateX(14px); }
.pd-log { display: flex; flex-direction: column; gap: 0; }
.pd-log__row { display: grid; grid-template-columns: 50px 1fr auto; gap: 10px; align-items: center; padding: 9px 0; border-bottom: 1px dashed var(--aid-faint); font-size: 13px; }
.pd-log__row em { font-style: normal; font-family: var(--font-mono); font-size: 11px; color: var(--aid-soft); }
.pd-log__row b { font-weight: 600; }
.pd-log__row span { font-size: 12px; color: var(--aid-soft); }
@media (prefers-reduced-motion: reduce) { .pd-type { width: auto; } }

/* Turnstile never wider than its form (newsletter on phones). */
.hs-turnstile { max-width: 100%; overflow: hidden; border-radius: 10px; }
.nl__form .hs-form > .cf-turnstile { right: 12px; max-width: calc(100% - 24px); }
.hs-turnstile iframe { max-width: 100% !important; }
/* Newsletter on phones: the form is narrower than Turnstile's 300px
   minimum, so the check is centred under it at its full width. */
@media (max-width: 640px) {
  .nl__form .hs-form > .cf-turnstile { left: 50%; right: auto; width: 300px; max-width: none; transform: translateX(-50%); overflow: visible; }
}
