/* Azur Linge Service | V16.12 — editorial movement, based on V16.9 */
:root {
  --als-motion-ease: cubic-bezier(.22,1,.36,1);
  --als-motion-ink: #173e4e;
}
/* Text: keep the V16.7 typographic personality, not the V16.8 overall rescaling. */
.intro h2 { max-width: 970px; text-wrap: balance; }
.intro p { max-width: 680px; text-wrap: pretty; }
@media (min-width: 980px) {
  .intro { padding-top: clamp(76px,7vw,108px); padding-bottom: clamp(74px,6.5vw,105px); }
}
@media (max-width: 620px) {
  .intro h2 { max-width: 17ch; margin-inline: auto; }
  .intro p { max-width: 35ch; }
}

/* Fine reading indicator: 2px, hidden from assistive technologies. */
.als-progress {
  position: fixed; top: 0; left: 0; width: 100%; height: 2px;
  background: rgba(27,68,82,.68); z-index: 999;
  pointer-events: none; transform-origin: left center;
  transform: scaleX(0); will-change: transform;
}

@media (prefers-reduced-motion: no-preference) {
  /* Entrance only when JS confirms animation support; text is otherwise always visible. */
  .als-motion-active .als-enter {
    opacity: 0; transform: translate3d(0,25px,0);
    transition: opacity .94s ease, transform 1.06s var(--als-motion-ease);
    transition-delay: var(--als-enter-delay, 0ms);
  }
  .als-motion-active .als-enter.als-enter--shown {
    opacity: 1; transform: none;
  }
  .als-motion-active .als-enter.als-enter--image {
    transform: translate3d(0,34px,0); opacity: .65;
    transition-duration: 1.24s;
  }
  .als-motion-active .als-enter.als-enter--image.als-enter--shown {
    transform: none; opacity: 1;
  }

  /* Image depth, deliberately low-amplitude; safe within existing crop frames. */
  .als-parallax-frame { overflow: hidden; }
  .als-parallax-frame > img.als-parallax-image {
    transform: translate3d(0,var(--als-photo-drift,0px),0) scale(1.075);
    transform-origin: center center;
    transition: transform .19s linear, filter .8s ease;
    backface-visibility: hidden;
  }
  .hero.als-parallax-frame > img.als-parallax-image {
    transform: translate3d(0,var(--als-photo-drift,0px),0) scale(1.085);
  }
  @media (hover:hover) {
    .als-parallax-frame:hover > img.als-parallax-image {
      transform: translate3d(0,var(--als-photo-drift,0px),0) scale(1.11);
      transition: transform .85s var(--als-motion-ease), filter .8s ease;
    }
  }

  /* The visual rhythm: intro hairline and hairlines of individual sections draw in. */
  .als-motion-active .intro .section-rule {
    transform: scaleY(.08); transform-origin: center top; opacity: .3;
    transition: transform 1.15s var(--als-motion-ease), opacity 1s ease;
  }
  .als-motion-active .intro.als-section-visited .section-rule { transform: scaleY(1); opacity: 1; }
  .als-motion-active .intro .intro-ornament,
  .als-motion-active .story .story-stroke {
    transform: scaleX(.05); transform-origin: center center; opacity: .25;
    transition: transform 1.2s var(--als-motion-ease) .17s, opacity 1s ease .17s;
  }
  .als-motion-active .intro.als-section-visited .intro-ornament,
  .als-motion-active .story.als-section-visited .story-stroke { transform: scaleX(1); opacity: 1; }

  /* A progressive underline that echoes the original site's quiet design. */
  .service-under { position: relative; }
  .service-under::after {
    content: ''; position: absolute; bottom: -1px; height: 1px; width: 100%; left: 0;
    background: #466a76; transform-origin: left center; transform: scaleX(0);
    transition: transform 1.15s var(--als-motion-ease) .12s;
    pointer-events: none;
  }
  .service-link.als-enter--shown .service-under::after,
  .service-link:hover .service-under::after,
  .service-link:focus-visible .service-under::after { transform: scaleX(1); }

  /* A slightly more tactile hover, without moving the grid or layout. */
  .service-link .als-arrow-holder, .service-link .v9-card-link svg,
  .v8-link svg,.als-inline-link svg,.story-link svg {
    transition: transform .45s var(--als-motion-ease), opacity .35s ease;
  }
  .service-link:hover .als-arrow-holder,
  .service-link:focus-visible .als-arrow-holder { transform: translate3d(4px,-4px,0); }
  .service-link:hover .v9-card-link svg,
  .service-link:focus-visible .v9-card-link svg,
  .v8-link:hover svg,.als-inline-link:hover svg,.story-link:hover svg,
  .v8-link:focus-visible svg,.als-inline-link:focus-visible svg { transform: translateX(6px); }
  .nav-item > a::after { transition: width .5s var(--als-motion-ease); }

  /* First-screen composition appears as three calm consecutive gestures. */
  .als-motion-active .hero .hero-kicker { animation: als-first-enter .85s var(--als-motion-ease) both; }
  .als-motion-active .hero h1 { animation: als-first-enter 1.12s var(--als-motion-ease) .11s both; }
  .als-motion-active .hero .hero-bottom { animation: als-first-enter 1s var(--als-motion-ease) .29s both; }
  .als-motion-active .hero .hero-copy { animation: none; }
  .als-motion-active .hero-scroll:before { animation: als-scroll-cue 2.6s ease-in-out infinite; }
  @keyframes als-first-enter {
    from { opacity:0; transform: translate3d(0,26px,0); }
    to { opacity:1; transform: none; }
  }
  @keyframes als-scroll-cue {
    0%,100% { opacity:.38; transform:translateY(-3px); }
    50% { opacity:1; transform:translateY(5px); }
  }
  /* Other pages gain the same restrained first-screen rhythm. */
  .als-motion-active :is(.svc-hero-copy,.kh-hero-copy,.rev-hero) h1,
  .als-motion-active .rev-contact h1 {
    animation: als-first-enter 1.05s var(--als-motion-ease) both;
  }
}

@media (prefers-reduced-motion: reduce) {
  .als-progress { display:none!important; }
  .als-enter,.als-enter--shown,.als-parallax-image { animation:none!important; transition:none!important; transform:none!important; opacity:1!important; }
  .intro .section-rule,.intro .intro-ornament,.story .story-stroke {transform:none!important;transition:none!important;opacity:1!important;}
  .hero .hero-copy, .hero .hero-kicker,.hero h1,.hero .hero-bottom,.hero .hero-scroll:before {animation:none!important;}
  .service-under::after {display:none!important;}
}

/* V16.12 — one typographic and numeric grammar across all pages. */
.kh-service-details,
.service-link .v9-service-caption,
.svc-item-text p,
.svc-enquiry-action p,
.kh-cta p,
.rev-apply p,
.v9-contact-lead {
  text-wrap: balance;
}
/* Measured quantities: same numeral metrics and count-up in both sections. */
.facts .fact b,
.kh-figures .kh-figure strong {
  font-variant-numeric: lining-nums tabular-nums;
  white-space: nowrap;
}
@media (prefers-reduced-motion: no-preference) {
  .als-motion-active .als-index {
    opacity: 0;
    transform: translate3d(0,9px,0);
    transition: opacity .84s ease, transform .94s var(--als-motion-ease);
  }
  .als-motion-active .als-index.als-index--shown {
    opacity: 1;
    transform: none;
  }
}
@media (prefers-reduced-motion: reduce) {
  .als-index {opacity:1!important;transform:none!important;transition:none!important}
}
/* Keep the form privacy link together instead of isolating its final word. */
.als-form-privacy a { white-space: nowrap; }
@media (max-width: 350px) {
  .als-form-privacy a { white-space: normal; text-wrap: balance; }
}
