/* ============================================================
   Lipsmatch, dedicated AI lip-sync product page
   Stats band, scenario wall, tier cards, comparison matrix,
   language chips and closing CTA. Vanilla, theme-aware.
   NOTE: template sets html { font-size: 62.5% } so 1rem = 10px.
   Reuses tokens (--accent, --t-bright, --base-tint, fonts) and
   the .ls-* showcase / feature / step / eyebrow components.
   ============================================================ */

.lm {
  --lm-radius: 24px;
  --lm-screen: #0d0e11;          /* cinema-dark surfaces, fixed in both themes */
  --lm-screen-2: #15161b;
  position: relative;
  font-family: var(--_font-default);
}
.lm * { box-sizing: border-box; }

/* The .anim-uni-scale-in reveal parks blocks at scale(1.2) until they scroll
   into view (js/app.js). On full-width .lm blocks the 1.2x overshoot pokes
   ~90px past the viewport and, since body has overflow-x:unset, spawns a
   horizontal scrollbar. Clip the horizontal overshoot at the section level
   (scoped to lipsmatch pages via :has); vertical scroll/reveals stay intact. */
.mxd-section:has(.lm) { overflow-x: clip; }

/* =========================================================
   Auto-cycling hero player, one take gliding through languages
   ========================================================= */
.lm-cycle {
  position: relative;
  overflow: hidden;
  border-radius: var(--lm-radius);
  border: 1px solid var(--st-muted);
  aspect-ratio: 16 / 9;
  background: var(--lm-screen);
  cursor: pointer;
  isolation: isolate;
}
.lm-cycle__layer {
  position: absolute; inset: 0;
  width: 100%; height: 100%;
  object-fit: cover;
  opacity: 0;
  transition: opacity .3s ease;
}
.lm-cycle__layer.is-front { opacity: 1; }
/* the flash-slide: incoming footage eases in while a light streak
   sweeps across, one fast beat per language switch */
.lm-cycle.is-flash .lm-cycle__layer.is-front {
  animation: lm-slide-in .38s cubic-bezier(.22,1,.36,1);
}
@keyframes lm-slide-in {
  0% { transform: translateX(3%) scale(1.02); opacity: .35; }
  100% { transform: none; opacity: 1; }
}
.lm-cycle__flash {
  position: absolute; inset: 0;
  background: linear-gradient(105deg, transparent 30%, rgba(255,255,255,.85) 50%, transparent 70%);
  opacity: 0;
  transform: translateX(-70%);
  pointer-events: none;
}
.lm-cycle.is-flash .lm-cycle__flash { animation: lm-flash .38s ease-out; }
@keyframes lm-flash {
  0% { opacity: 0; transform: translateX(-70%); }
  35% { opacity: .8; }
  100% { opacity: 0; transform: translateX(70%); }
}
/* centred "tap to unmute" pill, sync.so-style; the whole stage is the button */
.lm-cycle__unmute {
  position: absolute; top: 50%; left: 50%;
  transform: translate(-50%, -50%);
  display: inline-flex; align-items: center; gap: 0.8rem;
  padding: 1rem 1.8rem;
  border-radius: 100px;
  background: rgba(13, 14, 17, .72);
  -webkit-backdrop-filter: blur(8px);
  backdrop-filter: blur(8px);
  color: #fff;
  font-family: var(--_font-accent);
  font-size: 1.4rem; font-weight: var(--fw-medium);
  letter-spacing: .01em;
  pointer-events: none;
  opacity: 0;
  transition: opacity .3s ease;
}
.lm-cycle__unmute i { font-size: 1.7rem; }
.lm-cycle.is-muted .lm-cycle__unmute { opacity: 1; }
/* on fine pointers the pill trails the cursor around the player;
   JS moves it via inline transform once .is-cursor is set */
.lm-cycle__unmute.is-cursor {
  top: 0; left: 0;
  transition: transform .18s cubic-bezier(.22,1,.36,1), opacity .3s ease;
  will-change: transform;
}

.lm-cycle__sound {
  position: absolute; right: 1.6rem; bottom: 1.6rem;
  width: 4.4rem; height: 4.4rem;
  display: grid; place-items: center;
  border: 1px solid rgba(255,255,255,.25);
  border-radius: 50%;
  background: rgba(13, 14, 17, .62);
  -webkit-backdrop-filter: blur(8px);
  backdrop-filter: blur(8px);
  color: #fff; font-size: 1.9rem;
  cursor: pointer;
  transition: border-color .25s, color .25s;
}
.lm-cycle__sound.is-on { color: var(--accent); border-color: rgba(var(--accent-rgb), .5); }
/* plain-text language rail above the frame, reference style:
   the active word is lit, the rest sit dimmed */
.lm-cycle-wrap { position: relative; }
/* Film page (data-lm-hd): the hero player used to run full container width,
   which reads oversized. Cap the note + player block to a comfortable,
   centred size. Scoped via :has so the Home showcase player is untouched. */
.lm:has(> .lm-cycle-wrap[data-lm-hd]) {
  max-width: 84rem;
  margin-inline: auto;
}
.lm-cycle__langs {
  display: flex; align-items: center; justify-content: safe center;
  gap: clamp(1.8rem, 3vw, 3.6rem);
  margin-bottom: 1.8rem;
  padding: 0.4rem 0.6rem;
  overflow-x: auto;
  scrollbar-width: none;
  -ms-overflow-style: none;
  overscroll-behavior-x: contain;
  -webkit-overflow-scrolling: touch;
}
.lm-cycle__langs::-webkit-scrollbar { display: none; }
.lm-cycle__lang {
  flex: 0 0 auto;
  padding: 0.4rem 0.2rem;
  border: none;
  background: transparent;
  -webkit-appearance: none;
  appearance: none;
  font-family: var(--_font-accent);
  font-size: clamp(1.5rem, 1.7vw, 1.8rem);
  font-weight: var(--fw-regular);
  text-transform: lowercase;
  letter-spacing: .01em;
  color: var(--t-muted);
  opacity: .55;
  cursor: pointer;
  transition: opacity .25s, color .25s;
}
.lm-cycle__lang:hover { opacity: .85; }
.lm-cycle__lang.is-active {
  color: var(--t-bright);
  font-weight: var(--fw-medium);
  opacity: 1;
}
/* Desktop/laptop: the rail auto-cycles on its own, so a plain text swap is too
   quiet. Light the live word as a filled accent pill (matches the .ls-langs
   indicator on this page) with a soft glow + pop so the change is unmistakable.
   Phones keep the calmer lit-text reference style. */
@media (min-width: 768px) {
  .lm-cycle__langs { gap: clamp(0.6rem, 1.4vw, 1.6rem); }
  .lm-cycle__lang {
    padding: 0.5rem 1.4rem;
    border-radius: 100px;
    transition: opacity .3s ease, color .3s ease,
                background-color .3s ease, box-shadow .3s ease;
  }
  .lm-cycle__lang:hover:not(.is-active) {
    opacity: 1;
    background: rgba(var(--accent-rgb), .1);
  }
  .lm-cycle__lang.is-active {
    color: #161616;
    opacity: 1;
    font-weight: var(--fw-semibold);
    background: var(--accent);
    box-shadow: 0 0.2rem 0.5rem -0.2rem rgba(var(--accent-rgb), .35);
    animation: lm-lang-pop .55s cubic-bezier(.22, 1, .36, 1);
  }
  .lm-cycle__lang.is-active:hover { opacity: 1; }
}
@keyframes lm-lang-pop {
  0%   { transform: scale(.9); }
  55%  { transform: scale(1.06); }
  100% { transform: scale(1); }
}
@media (prefers-reduced-motion: reduce) {
  .lm-cycle__lang.is-active { animation: none; }
}
.lm-cycle-note {
  display: flex; align-items: center; gap: 0.8rem;
  margin: 0 0 1.2rem;
  font-size: 1.35rem; color: var(--t-muted);
}
.lm-cycle-note i { color: var(--accent); font-size: 1.7rem; flex: 0 0 auto; }

/* =========================================================
   Hero proof rail, the record staged on screen one.
   Full-strength port of the studio masthead's proof rail
   (css/showcase.css .ie-hero-proof): full-digit counter with
   a landing sheen, stroked serif "views", drifting logo band,
   three hairline-split proof columns.
   ========================================================= */
.lm-hero-proof {
  position: relative;
  padding: clamp(3rem, 5vw, 5.4rem) 0 clamp(2.4rem, 4vw, 4.4rem);
  margin-bottom: clamp(2.4rem, 4vw, 4.8rem);
  text-align: center;
}
.lm-hero-proof__line {
  position: absolute;
  top: 0; left: clamp(1.5rem, 4vw, 7.5rem); right: clamp(1.5rem, 4vw, 7.5rem);
  height: 1px;
  background: linear-gradient(90deg,
              transparent 0%,
              color-mix(in srgb, var(--t-bright) 26%, transparent) 18%,
              color-mix(in srgb, var(--t-bright) 26%, transparent) 82%,
              transparent 100%);
}
.lm-hero-proof__line--bottom {
  top: auto; bottom: 0;
  background: linear-gradient(90deg,
              transparent 0%,
              color-mix(in srgb, var(--t-bright) 14%, transparent) 30%,
              color-mix(in srgb, var(--t-bright) 14%, transparent) 70%,
              transparent 100%);
}

/* The claim, opening the rail. "lipsmatch" is our own word, so the line reads
   it as the common noun for the craft: the brand word is the star, carrying the
   same slow light-pass as the header wordmark. The counter below answers it. */
.lm-claim {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: clamp(1.6rem, 2.6vw, 3.2rem);
  margin: 0 0 clamp(1.8rem, 2.8vw, 3rem);
}
.lm-claim__rule {
  flex: 1 1 auto;
  max-width: 16rem;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(var(--accent-rgb), 0.5));
}
.lm-claim__rule:last-child {
  background: linear-gradient(90deg, rgba(var(--accent-rgb), 0.5), transparent);
}
.lm-claim__text {
  flex: 0 1 auto;
  font-family: var(--_font-accent);
  font-weight: var(--fw-medium);
  font-size: clamp(1.9rem, 2.6vw, 3.4rem);
  line-height: 1.2;
  letter-spacing: 0.01em;
  color: var(--t-bright);
  white-space: nowrap;
}
.lm-claim__text em {
  font-family: 'Playfair Display', serif;
  font-style: italic;
  font-weight: 400;
  font-size: 1.08em;
  color: var(--accent);
}
/* the brand word: Playfair italic with a light band leaning along the italic
   stems, parked off-word at rest and sweeping through every 8s */
.lm-claim__word {
  font-family: 'Playfair Display', serif;
  font-style: italic;
  font-weight: 400;
  font-size: 1.14em;
  color: var(--t-bright);
  background-image: linear-gradient(102deg,
              var(--t-bright) 41%,
              var(--accent) 50%,
              var(--t-bright) 59%);
  background-size: 300% 100%;
  background-position: 100% 0;
  background-repeat: no-repeat;
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  animation: lm-claim-glint 8s ease-in-out infinite;
}
@keyframes lm-claim-glint {
  0%, 62% { background-position: 100% 0; }
  92%, 100% { background-position: 0% 0; }
}
@media (prefers-reduced-motion: reduce) {
  .lm-claim__word { animation: none; }
}
@media only screen and (max-width: 767px) {
  .lm-claim { gap: 1.2rem; }
  .lm-claim__rule { max-width: 4rem; }
  .lm-claim__text { white-space: normal; }
}

/* the headline figure: full-digit counter + a stroked serif "views" */
.lm-hero-proof__figure {
  display: flex;
  justify-content: center;
  align-items: baseline;
  gap: 0.14em;
  white-space: nowrap;
  font-size: clamp(3.2rem, 8.4vw, 14rem);
  line-height: 1;
}
.lm-hero-proof__count {
  font-family: var(--_font-accent);
  font-weight: var(--fw-medium);
  letter-spacing: -0.035em;
  font-variant-numeric: tabular-nums;
  /* quiet metallic ink: rests plain, sweeps an accent band once when the
     counter lands (is-lit set by js/lipsmatch.js countUp) */
  background-image: linear-gradient(115deg,
              var(--t-bright) 0%,
              var(--t-bright) 42%,
              var(--accent) 50%,
              var(--t-bright) 58%,
              var(--t-bright) 100%);
  background-size: 280% 100%;
  background-position: 0% 0;
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}
.lm-hero-proof__count em { font-style: normal; }
.lm-hero-proof__figure.is-lit .lm-hero-proof__count {
  animation: lm-proof-sheen 1.7s cubic-bezier(0.4, 0, 0.2, 1) both;
}
@keyframes lm-proof-sheen {
  from { background-position: 0% 0; }
  to   { background-position: 100% 0; }
}
.lm-hero-proof__word {
  font-family: 'Playfair Display', serif;
  font-style: italic;
  font-weight: 400;
  font-size: 0.82em;
  letter-spacing: 0;
  color: transparent;
  -webkit-text-stroke: 1.5px color-mix(in srgb, var(--t-bright) 78%, transparent);
  transform: translateY(-0.02em);
}
.lm-hero-proof__sub {
  margin: clamp(1.2rem, 1.8vw, 2rem) auto 0;
  font-size: clamp(1.25rem, 1.1vw, 1.5rem);
  letter-spacing: 2.2px;
  text-transform: uppercase;
  color: var(--t-muted);
}

/* the seven primetime brands, held as one static, centered row that wraps to
   centered rows on narrower viewports. No loop: with only seven marks a scroll
   shows each brand twice across a wide screen, which reads as clutter. */
.lm-hero-proof__brands {
  margin-top: clamp(1.8rem, 2.6vw, 2.8rem);
}
.lm-hero-proof__track {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: clamp(1.4rem, 2.6vw, 2.4rem) clamp(2.6rem, 4.6vw, 5.4rem);
}
@media (prefers-reduced-motion: reduce) {
  .lm-hero-proof__figure.is-lit .lm-hero-proof__count { animation: none; }
}
/* Phones: shrink the marks and tighten the gap so all seven settle into two
   balanced centered rows instead of one mark per ragged line. */
@media (max-width: 600px) {
  .lm-hero-proof__track { gap: 1.6rem 2rem; }
  .lm-hero-proof__logo { height: 2.2rem; }
  .lm-hero-proof__logo--color { height: 2rem; }
  .lm-hero-proof__logo--disc { height: 2.7rem; }
  .lm-hero-proof__logo--chip { height: 2.7rem; padding: 0.35rem 0.45rem; }
  .lm-hero-proof__logo--night { height: 2.2rem; }
  .lm-hero-proof__logo--day { height: 2.5rem; }
}
.lm-hero-proof__brand {
  position: relative;
  white-space: nowrap;
  font: normal var(--fw-medium) clamp(1.9rem, 1.8vw, 2.4rem)/1 var(--_font-accent);
  letter-spacing: 0.01em;
  color: color-mix(in srgb, var(--t-bright) 58%, transparent);
  transition: color 0.4s ease;
}
.lm-hero-proof__brand:hover { color: var(--t-bright); }
.lm-hero-proof__brand em {
  font-family: 'Playfair Display', serif;
  font-style: italic;
  font-weight: 400;
  font-size: 1.08em;
}
/* No separator dots on the static row: the even spacing carries the rhythm,
   and a right-side dot would strand itself at each wrapped row's end. */
/* real logo marks, same treatment tiers as the studio rail */
.lm-hero-proof__logo {
  display: block;
  height: clamp(2.1rem, 2vw, 2.8rem);
  width: auto;
  max-width: 150px;
  object-fit: contain;
}
.lm-hero-proof__logo--mono {
  filter: grayscale(1) brightness(0) invert(1);
  opacity: 0.66;
  transition: opacity 0.4s ease;
}
[color-scheme=light] .lm-hero-proof__logo--mono {
  filter: grayscale(1) brightness(0);
}
.lm-hero-proof__logo--color {
  height: clamp(2.4rem, 2.2vw, 3rem);
  opacity: 0.92;
  transition: opacity 0.4s ease;
}
.lm-hero-proof__logo--disc {
  height: clamp(3.2rem, 3vw, 4.2rem);
  opacity: 0.96;
  transition: opacity 0.4s ease;
}
.lm-hero-proof__logo--chip {
  height: clamp(3.2rem, 3vw, 4.2rem);
  padding: 0.5rem 0.7rem;
  background: #fff;
  border-radius: 1rem;
  box-shadow: 0 0 0 1px rgba(0, 0, 0, 0.06);
  opacity: 0.94;
  transition: opacity 0.4s ease;
}
.lm-hero-proof__logo--night {
  height: clamp(2.6rem, 2.4vw, 3.4rem);
  opacity: 0.94;
  transition: opacity 0.4s ease;
}
.lm-hero-proof__logo--day {
  display: none;
  height: clamp(3rem, 2.8vw, 3.9rem);
  opacity: 0.94;
  transition: opacity 0.4s ease;
}
[color-scheme=light] .lm-hero-proof__logo--night { display: none; }
[color-scheme=light] .lm-hero-proof__logo--day { display: block; }
.lm-hero-proof__brand:hover .lm-hero-proof__logo { opacity: 1; }
.lm-hero-proof__logo.is-broken { display: none; }
.lm-hero-proof__brand:has(.lm-hero-proof__logo:not(.is-broken)) .lm-hero-proof__brand-name { display: none; }

/* supporting proofs: three quiet typographic columns with hairline breaks */
.lm-hero-proof__row {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  align-items: stretch;
  gap: clamp(2.2rem, 4.5vw, 5.5rem);
  margin-top: clamp(2.6rem, 4vw, 4.4rem);
}
.lm-hero-proof__stat {
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 0.7rem;
  max-width: 30rem;
  text-align: left;
  text-decoration: none;
}
.lm-hero-proof__stat + .lm-hero-proof__stat::before {
  content: "";
  position: absolute;
  left: calc(-1 * clamp(1.1rem, 2.25vw, 2.75rem));
  top: 10%; bottom: 10%;
  width: 1px;
  background: linear-gradient(180deg,
              transparent,
              color-mix(in srgb, var(--t-bright) 22%, transparent),
              transparent);
}
.lm-hero-proof__stat b {
  display: inline-flex;
  align-items: baseline;
  gap: 0.8rem;
  font: normal var(--fw-medium) clamp(2rem, 1.9vw, 2.6rem)/1.1 var(--_font-accent);
  letter-spacing: -0.01em;
  color: var(--t-bright);
  transition: color 0.4s ease;
}
.lm-hero-proof__stat b em {
  font-family: 'Playfair Display', serif;
  font-style: italic;
  font-weight: 400;
  font-size: 1.06em;
  color: var(--accent);
}
.lm-hero-proof__stat b i {
  font-size: 0.82em;
  color: #F2D98A;
  transform: translateY(0.08em);
}
[color-scheme=light] .lm-hero-proof__stat b i { color: #B98E2F; }
.lm-hero-proof__stat span {
  font-size: 1.3rem;
  line-height: 1.45;
  letter-spacing: 0.03em;
  color: var(--t-muted);
}
.lm-hero-proof__stat--link { padding-right: 2.6rem; }
.lm-hero-proof__arrow {
  position: absolute;
  top: 0.3rem; right: 0.2rem;
  font-size: 1.7rem;
  color: var(--accent);
  opacity: 0;
  transform: translate(-0.5rem, 0.5rem);
  transition: opacity 0.4s ease, transform 0.5s cubic-bezier(0.16, 1, 0.3, 1);
}
.lm-hero-proof__stat--link::after {
  content: "";
  position: absolute;
  left: 0; right: 2.6rem; bottom: -0.8rem;
  height: 1px;
  background: color-mix(in srgb, var(--accent) 55%, transparent);
  transform: scaleX(0);
  transform-origin: left center;
  transition: transform 0.6s cubic-bezier(0.16, 1, 0.3, 1);
}
.lm-hero-proof__stat--link:hover b,
.lm-hero-proof__stat--link:focus-visible b { color: var(--accent); }
.lm-hero-proof__stat--link:hover .lm-hero-proof__arrow,
.lm-hero-proof__stat--link:focus-visible .lm-hero-proof__arrow {
  opacity: 1;
  transform: translate(0, 0);
}
.lm-hero-proof__stat--link:hover::after,
.lm-hero-proof__stat--link:focus-visible::after { transform: scaleX(1); }

/* phones: single centred stack with horizontal hairline breaks */
@media only screen and (max-width: 767px) {
  .lm-hero-proof__row {
    flex-direction: column;
    align-items: center;
    gap: 2.6rem;
  }
  .lm-hero-proof__stat {
    align-items: center;
    text-align: center;
    max-width: 34rem;
  }
  .lm-hero-proof__stat--link { padding-right: 0; }
  .lm-hero-proof__arrow {
    position: static;
    order: 3;
    opacity: 0.8;
    transform: none;
  }
  .lm-hero-proof__stat--link::after { display: none; }
  .lm-hero-proof__stat + .lm-hero-proof__stat::before {
    left: 25%; right: 25%;
    top: -1.4rem; bottom: auto;
    width: auto; height: 1px;
    background: linear-gradient(90deg,
                transparent,
                color-mix(in srgb, var(--t-bright) 22%, transparent),
                transparent);
  }
}

/* =========================================================
   Demo tiles grid (tiles reuse .lm-tile below)
   ========================================================= */
.lm-demos {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(28rem, 1fr));
  gap: clamp(1.6rem, 2.4vw, 2.8rem);
}

/* =========================================================
   Proof stats band
   ========================================================= */
.lm-stats {
  position: relative;
  overflow: hidden;
  border-radius: var(--lm-radius);
  border: 1px solid var(--st-muted);
  padding: clamp(2.8rem, 4vw, 4.4rem);
  background:
    radial-gradient(120% 140% at 100% 0%, rgba(var(--accent-rgb), .1), transparent 55%),
    radial-gradient(120% 140% at 0% 100%, rgba(var(--accent-rgb), .06), transparent 55%),
    var(--base-tint);
}
.lm-stats__head {
  display: flex; flex-direction: column; gap: 1rem;
  max-width: 70rem; margin-bottom: clamp(2.8rem, 4vw, 4rem);
}
.lm-stats__eyebrow {
  display: inline-flex; align-items: center; gap: 0.8rem;
  font-family: var(--_font-accent);
  font-size: 1.25rem; letter-spacing: .16em; text-transform: uppercase;
  font-weight: var(--fw-semibold); color: var(--accent);
}
.lm-stats__eyebrow i { font-size: 1.7rem; }
.lm-stats__lead { font-size: 1.6rem; line-height: 1.55; color: var(--t-muted); margin: 0; }
.lm-stats__grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(20rem, 1fr));
  gap: clamp(1.6rem, 2.4vw, 2.8rem);
}
.lm-stat {
  position: relative;
  padding-left: 2.2rem;
  border-left: 2px solid rgba(var(--accent-rgb), .35);
}
.lm-stat__num {
  display: flex; align-items: baseline; gap: 0.2rem;
  font-family: var(--_font-accent);
  font-weight: var(--fw-semibold);
  font-size: clamp(4.4rem, 6vw, 6.6rem);
  line-height: 0.9; letter-spacing: -0.02em;
  color: var(--t-bright);
  margin-bottom: 1.4rem;
}
.lm-stat__num em {
  font-style: normal;
  font-size: 0.42em;
  font-weight: var(--fw-medium);
  color: var(--accent);
}
.lm-stat__label {
  display: block;
  font-family: var(--_font-accent);
  font-size: 1.7rem; font-weight: var(--fw-medium);
  color: var(--t-bright); line-height: 1.2; margin-bottom: 0.5rem;
}
.lm-stat__sub { display: block; font-size: 1.35rem; color: var(--t-muted); line-height: 1.45; }

/* =========================================================
   Scenario wall, four looping output tiles
   ========================================================= */
.lm-wall {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: clamp(1.6rem, 2.4vw, 2.8rem);
}
@media (max-width: 820px) {
  .lm-wall { grid-template-columns: minmax(0, 1fr); }
}
.lm-tile {
  position: relative;
  margin: 0;
  border-radius: var(--lm-radius);
  border: 1px solid var(--st-muted);
  background: var(--base-tint);
  overflow: hidden;
  transition: transform .35s cubic-bezier(.22,1,.36,1), border-color .35s, box-shadow .35s;
}
.lm-tile__media {
  position: relative;
  aspect-ratio: 16 / 9;
  background: var(--lm-screen);
}
.lm-tile__media video {
  position: absolute; inset: 0;
  width: 100%; height: 100%;
  object-fit: cover;
  display: block;
}
/* two stacked layers crossfade between languages so there is no black gap */
.lm-tile__layer {
  opacity: 0;
  transition: opacity .55s ease;
}
.lm-tile__layer.is-front { opacity: 1; }
.lm-tile--cycle .lm-tile__media { cursor: pointer; }

/* current-language label, lower-left over a soft scrim */
.lm-tile__lang {
  position: absolute; left: 1.4rem; bottom: 1.3rem; z-index: 2;
  padding: .5rem 1.1rem;
  font-family: var(--_font-accent);
  font-size: 1.3rem; font-weight: var(--fw-semibold);
  letter-spacing: .06em; text-transform: uppercase;
  color: #fff;
  background: rgba(13, 14, 17, .55);
  border: 1px solid rgba(255,255,255,.16);
  border-radius: 999px;
  -webkit-backdrop-filter: blur(8px); backdrop-filter: blur(8px);
  pointer-events: none;
  transition: color .25s, border-color .25s;
}
.lm-tile__lang:empty { display: none; }
.lm-tile.is-audible .lm-tile__lang {
  color: var(--accent);
  border-color: rgba(var(--accent-rgb), .5);
}

/* tap-to-hear pill, lower-right, mirrors the hero player's sound chip */
.lm-tile__sound {
  position: absolute; right: 1.4rem; bottom: 1.3rem; z-index: 3;
  display: inline-flex; align-items: center; gap: .6rem;
  padding: .7rem 1.2rem;
  border: 1px solid rgba(255,255,255,.25);
  border-radius: 999px;
  background: rgba(13, 14, 17, .62);
  -webkit-backdrop-filter: blur(8px); backdrop-filter: blur(8px);
  color: #fff; font-size: 1.7rem; line-height: 1;
  cursor: pointer;
  transition: border-color .25s, color .25s, background-color .25s;
}
.lm-tile__sound span {
  font-family: var(--_font-accent);
  font-size: 1.25rem; font-weight: var(--fw-semibold);
  letter-spacing: .04em; text-transform: uppercase;
}
.lm-tile__sound.is-on {
  color: var(--accent);
  border-color: rgba(var(--accent-rgb), .55);
  background: rgba(var(--accent-rgb), .12);
}
@media (hover: hover) and (pointer: fine) {
  .lm-tile__sound:hover { border-color: rgba(var(--accent-rgb), .6); color: var(--accent); }
}
.lm-tile.is-audible {
  border-color: rgba(var(--accent-rgb), .4);
  box-shadow: 0 0 0 1px rgba(var(--accent-rgb), .25), 0 20px 48px -22px rgba(var(--accent-rgb), .3);
}
.lm-tile__cap {
  padding: 1.8rem 2rem 2rem;
}
.lm-tile__tag {
  display: inline-flex; align-items: center; gap: 0.7rem;
  font-family: var(--_font-accent);
  font-size: 1.3rem; letter-spacing: .08em; text-transform: uppercase;
  font-weight: var(--fw-semibold);
  color: var(--accent);
  margin-bottom: 0.8rem;
}
.lm-tile__tag i { font-size: 1.6rem; }
.lm-tile__cap p {
  margin: 0;
  font-size: 1.45rem; line-height: 1.5;
  color: var(--t-muted);
  max-width: 52ch;
}
/* bare variant, reference style: no caption card, just a small
   lowercase label sitting on the footage over a soft scrim */
.lm-tile--bare .lm-tile__media::after {
  content: "";
  position: absolute; inset: 55% 0 0;
  background: linear-gradient(180deg, transparent, rgba(0, 0, 0, .55));
  pointer-events: none;
}
.lm-tile__label {
  position: absolute; left: 1.6rem; bottom: 1.4rem;
  z-index: 1;
  color: #fff;
  font-family: var(--_font-accent);
  font-size: 1.45rem; font-weight: var(--fw-medium);
  text-transform: lowercase;
  letter-spacing: .01em;
  text-shadow: 0 1px 10px rgba(0, 0, 0, .6);
  pointer-events: none;
}
/* hover lift on fine pointers only, touch devices skip the paint work */
@media (hover: hover) and (pointer: fine) {
  .lm-tile:hover {
    transform: translateY(-4px);
    border-color: rgba(var(--accent-rgb), .35);
    box-shadow: 0 14px 30px -10px rgba(0,0,0,.5), 0 30px 64px -24px rgba(var(--accent-rgb), .22);
  }
}

/* =========================================================
   Tier cards, three finish levels
   ========================================================= */
.lm-deploy__grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(26rem, 1fr));
  gap: 1.6rem;
}
.lm-deploy__card {
  position: relative;
  padding: 2.6rem;
  border-radius: 1.8rem;
  border: 1px solid var(--st-muted);
  background: var(--base-tint);
  transition: transform .35s cubic-bezier(.22,1,.36,1), border-color .35s, box-shadow .35s;
}
@media (hover: hover) and (pointer: fine) {
  .lm-deploy__card:hover {
    transform: translateY(-4px);
    border-color: rgba(var(--accent-rgb), .35);
    box-shadow: 0 14px 30px -10px rgba(0,0,0,.5), 0 30px 64px -24px rgba(var(--accent-rgb), .22);
  }
}
.lm-deploy__card--feature {
  border-color: rgba(var(--accent-rgb), .4);
  background:
    radial-gradient(120% 100% at 50% 0%, rgba(var(--accent-rgb), .1), transparent 60%),
    var(--base-tint);
}
.lm-deploy__icon {
  width: 5rem; height: 5rem; border-radius: 1.2rem;
  display: grid; place-items: center;
  background: rgba(var(--accent-rgb), .12);
  color: var(--accent); font-size: 2.4rem;
  margin-bottom: 1.6rem;
}
.lm-deploy__card h3 {
  font-family: var(--_font-accent);
  font-size: 2rem; font-weight: var(--fw-medium);
  color: var(--t-bright); margin: 0 0 0.8rem; line-height: 1.15;
}
.lm-deploy__card p { font-size: 1.45rem; line-height: 1.5; color: var(--t-muted); margin: 0 0 1.6rem; }
.lm-deploy__tag {
  display: inline-flex; align-items: center;
  font-size: 1.25rem; font-weight: var(--fw-semibold);
  letter-spacing: .04em;
  color: var(--accent);
  padding-top: 1.4rem;
  border-top: 1px solid var(--st-muted);
  width: 100%;
}

/* =========================================================
   Comparison matrix, four roads to multilingual
   ========================================================= */
.lm-compare {
  border-radius: var(--lm-radius);
  border: 1px solid var(--st-muted);
  background: var(--base-tint);
  overflow: hidden;
}
.lm-compare__row {
  display: grid;
  grid-template-columns: minmax(0, 1.25fr) minmax(0, 1.15fr) minmax(0, 1fr) minmax(0, 1fr) minmax(0, 1fr);
  align-items: center;
  border-bottom: 1px solid var(--st-muted);
}
.lm-compare__row:last-child { border-bottom: none; }
.lm-compare__row--head {
  background: rgba(var(--accent-rgb), .04);
  border-bottom: 1px solid var(--st-bright);
}
.lm-compare__rowhead,
.lm-compare__col {
  padding: 1.6rem 1.8rem;
  font-size: 1.45rem; line-height: 1.35;
}
.lm-compare__rowhead {
  font-family: var(--_font-accent);
  font-weight: var(--fw-medium);
  color: var(--t-bright);
}
.lm-compare__col {
  display: inline-flex; align-items: center; gap: 0.7rem;
  color: var(--t-muted);
  border-left: 1px solid var(--st-muted);
  height: 100%;
}
.lm-compare__row--head .lm-compare__col {
  font-family: var(--_font-accent);
  font-size: 1.5rem; font-weight: var(--fw-semibold);
  color: var(--t-bright);
  text-transform: none;
}
/* per-cell sentiment: every cell carries its own verdict icon so the
   eye can score a column without reading a word */
.lm-compare__col i { font-size: 1.4rem; flex: 0 0 auto; }
.lm-compare__col[data-good] { color: var(--t-bright); }
.lm-compare__col[data-good] i { color: var(--accent); }
.lm-compare__col[data-mid] { color: var(--t-muted); }
.lm-compare__col[data-mid] i { color: var(--t-muted); opacity: .7; }
.lm-compare__col[data-bad] { color: var(--t-muted); opacity: .75; }
.lm-compare__col[data-bad] i { color: #e0655f; opacity: .9; }
/* verdict footer: one line that lands the trade each road makes */
.lm-compare__row--verdict {
  border-top: 1px solid var(--st-bright);
  background: rgba(var(--accent-rgb), .03);
}
.lm-compare__row--verdict .lm-compare__rowhead {
  font-size: 1.25rem; letter-spacing: .14em; text-transform: uppercase;
  color: var(--t-muted);
}
.lm-compare__row--verdict .lm-compare__col {
  font-family: var(--_font-accent);
  font-weight: var(--fw-medium);
  font-style: italic;
  color: var(--t-bright);
}
.lm-compare__row--verdict .lm-compare__col--hero { color: var(--accent) !important; }
/* hero column, Lipsmatch */
.lm-compare__col--hero {
  position: relative;
  background: rgba(var(--accent-rgb), .07);
  color: var(--t-bright) !important;
  font-weight: var(--fw-medium);
  border-left: 1px solid rgba(var(--accent-rgb), .3);
}
.lm-compare__row--head .lm-compare__col--hero {
  background: var(--accent);
  color: #161616 !important;
}
.lm-compare__row--head .lm-compare__col--hero i { color: #161616; font-size: 1.6rem; }
.lm-compare__col--hero i { color: var(--accent); font-size: 1.5rem; flex: 0 0 auto; }
@media (max-width: 900px) {
  /* keep the matrix intact, let it scroll horizontally inside its own box */
  .lm-compare { overflow-x: auto; scrollbar-width: thin; -webkit-overflow-scrolling: touch; }
  .lm-compare__row { min-width: 76rem; }
  .lm-compare__rowhead,
  .lm-compare__col { padding: 1.4rem 1.4rem; font-size: 1.35rem; }
  .lm-compare::-webkit-scrollbar { height: 6px; }
  .lm-compare::-webkit-scrollbar-thumb { background: var(--st-bright); border-radius: 100px; }
}

/* =========================================================
   Language chips, native script first
   ========================================================= */
.lm-chips { display: flex; flex-wrap: wrap; gap: 1rem; }
.lm-chip {
  display: inline-flex; align-items: baseline; gap: 0.9rem;
  padding: 1.1rem 1.8rem;
  border-radius: 100px;
  border: 1px solid var(--st-muted);
  background: var(--base-tint);
  color: var(--t-muted);
  font-family: var(--_font-accent);
  font-size: 1.35rem; font-weight: var(--fw-medium);
  transition: border-color .3s, transform .3s, background .3s;
}
.lm-chip em {
  font-style: normal;
  font-size: 1.6rem;
  color: var(--t-bright);
}
@media (hover: hover) and (pointer: fine) {
  .lm-chip:hover {
    border-color: var(--accent);
    transform: translateY(-2px);
    background: rgba(var(--accent-rgb), .06);
  }
}
.lm-chip--more {
  border-style: dashed;
  border-color: rgba(var(--accent-rgb), .45);
  color: var(--accent);
}
.lm-chip--more em { color: var(--accent); }

/* =========================================================
   Closing CTA band, filmstrip motif
   ========================================================= */
.lm-cta {
  position: relative;
  overflow: hidden;
  border-radius: var(--lm-radius);
  border: 1px solid rgba(var(--accent-rgb), .3);
  padding: clamp(3.2rem, 6vw, 6.4rem) clamp(2.4rem, 5vw, 5.6rem);
  text-align: center;
  background:
    radial-gradient(120% 120% at 50% -20%, rgba(var(--accent-rgb), .16), transparent 60%),
    linear-gradient(180deg, var(--lm-screen-2), var(--lm-screen));
  color: #fff;
  isolation: isolate;
}
.lm-cta__glow {
  position: absolute; inset: -40% 20% auto;
  height: 60%;
  background: radial-gradient(50% 50% at 50% 50%, rgba(var(--accent-rgb), .35), transparent 70%);
  filter: blur(40px);
  z-index: -1;
  animation: lm-cta-glow 7s ease-in-out infinite;
}
@keyframes lm-cta-glow {
  0%, 100% { opacity: .55; transform: translateY(0) scale(1); }
  50% { opacity: .9; transform: translateY(8%) scale(1.08); }
}
/* a strip of sprocket frames sliding along the bottom edge */
.lm-cta__frames {
  position: absolute; inset: auto 0 0;
  display: flex; align-items: flex-end; justify-content: center;
  gap: 0.9rem; height: 5.2rem;
  padding: 0 2rem;
  opacity: .4;
  z-index: -1;
  -webkit-mask-image: linear-gradient(180deg, transparent, #000);
  mask-image: linear-gradient(180deg, transparent, #000);
}
.lm-cta__frames span {
  flex: 0 0 auto;
  width: 6.4rem; height: 3.8rem;
  border-radius: 0.5rem;
  border: 1px solid rgba(var(--accent-rgb), .55);
  background: rgba(var(--accent-rgb), .08);
  animation: lm-cta-frame 2.6s ease-in-out infinite;
}
.lm-cta__frames span:nth-child(odd)  { animation-delay: .3s; }
.lm-cta__frames span:nth-child(3n)   { animation-delay: .7s; }
.lm-cta__frames span:nth-child(4n)   { animation-delay: 1.1s; }
@keyframes lm-cta-frame {
  0%, 100% { opacity: .35; transform: translateY(0.4rem); }
  50% { opacity: 1; transform: translateY(0); }
}
.lm-cta__eyebrow {
  display: inline-flex; align-items: center; gap: 0.8rem;
  font-family: var(--_font-accent);
  font-size: 1.25rem; letter-spacing: .16em; text-transform: uppercase;
  font-weight: var(--fw-semibold); color: var(--accent);
  margin-bottom: 1.8rem;
}
.lm-cta__dot {
  width: 0.8rem; height: 0.8rem; border-radius: 50%;
  background: var(--accent);
  box-shadow: 0 0 0 0 rgba(var(--accent-rgb), .6);
  animation: lm-pulse 1.8s ease-out infinite;
}
@keyframes lm-pulse {
  0% { box-shadow: 0 0 0 0 rgba(var(--accent-rgb), .55); }
  100% { box-shadow: 0 0 0 1.4rem rgba(var(--accent-rgb), 0); }
}
.lm-cta__title {
  font-family: var(--_font-accent);
  font-weight: var(--fw-medium);
  font-size: clamp(2.8rem, 5vw, 5rem);
  line-height: 1.05; letter-spacing: -0.02em;
  color: #fff;
  max-width: 22ch; margin: 0 auto 1.8rem;
}
.lm-cta__lead {
  font-size: clamp(1.5rem, 1.8vw, 1.8rem); line-height: 1.55;
  color: rgba(255,255,255,.72);
  max-width: 58ch; margin: 0 auto clamp(2.8rem, 4vw, 3.6rem);
}
.lm-cta__actions {
  display: flex; flex-wrap: wrap; gap: 1.2rem; justify-content: center;
  margin-bottom: 2.8rem;
}
.lm-cta .btn-outline {
  border-color: rgba(255,255,255,.25);
  color: #fff;
}
.lm-cta__meta {
  display: inline-flex; flex-wrap: wrap; align-items: center; justify-content: center;
  gap: 0.4rem;
  font-size: 1.3rem; color: rgba(255,255,255,.55);
  margin: 0;
}
.lm-cta__meta i { color: var(--accent); font-size: 1.5rem; margin-right: 0.3rem; }

/* Phones: side-by-side buttons overflow the viewport, and because
   .btn-caption is overflow:hidden (letter-swap clip) the flex-shrink clips
   the label instead of wrapping it ("Try Lipsmatch on one s…"). Stack them
   full-width, kill the shrink, and scale the face with the viewport so the
   longest label ("Explore Lipsmatch in depth") fits from ~320px up. Same
   pattern as .sw-cta in software-showcase.css. */
@media only screen and (max-width: 767px) {
  .lm-cta__actions {
    flex-direction: column;
    align-items: stretch;
    gap: 1rem;
  }
  .lm-cta__actions .btn-large {
    width: 100%;
    flex-shrink: 0;
    gap: 0.9rem;
    padding: 0 1.6rem;
    font-size: clamp(1.5rem, 4.4vw, 1.85rem);
  }
  .lm-cta__actions .btn-large i { font-size: 2.2rem; }
}

/* =========================================================
   "Pairs beautifully with" link cards
   ========================================================= */
.lm-pair__grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(24rem, 1fr));
  gap: 1.6rem;
}
a.lm-pair {
  position: relative;
  display: flex;
  flex-direction: column;
  padding: 2.6rem;
  border-radius: 1.8rem;
  border: 1px solid var(--st-muted);
  background: var(--base-tint);
  text-decoration: none;
  transition: transform .35s cubic-bezier(.22,1,.36,1), border-color .35s, box-shadow .35s;
}
.lm-pair__icon {
  width: 5rem; height: 5rem; border-radius: 1.2rem;
  display: grid; place-items: center;
  background: rgba(var(--accent-rgb), .12);
  color: var(--accent); font-size: 2.4rem;
  margin-bottom: 1.6rem;
}
.lm-pair h3 {
  font-family: var(--_font-accent);
  font-size: 2rem; font-weight: var(--fw-medium);
  color: var(--t-bright); margin: 0 0 0.8rem; line-height: 1.15;
}
.lm-pair p { font-size: 1.45rem; line-height: 1.5; color: var(--t-muted); margin: 0; }
.lm-pair__arrow {
  position: absolute; top: 2.2rem; right: 2.2rem;
  font-size: 2rem; color: var(--t-muted);
  transition: color .35s, transform .35s cubic-bezier(.22,1,.36,1);
}
@media (hover: hover) and (pointer: fine) {
  a.lm-pair:hover {
    transform: translateY(-4px);
    border-color: rgba(var(--accent-rgb), .35);
    box-shadow: 0 14px 30px -10px rgba(0,0,0,.5), 0 30px 64px -24px rgba(var(--accent-rgb), .22);
  }
  a.lm-pair:hover .lm-pair__arrow {
    color: var(--accent);
    transform: translate(3px, -3px);
  }
}

/* =========================================================
   Touch-device perf gate, join the site-wide standard:
   no blur filters, no ambient animation on coarse pointers
   ========================================================= */
@media (pointer: coarse) {
  .lm-cta__glow { filter: none; animation: none; opacity: .4; }
  .lm-cta__frames span { animation: none; opacity: .6; transform: none; }
  .lm-tile, .lm-deploy__card, .lm-chip, .lm-pair, .lm-pair__arrow { transition: none; }
  .lm-cycle__sound,
  .lm-cycle__unmute,
  .lm-tile__sound,
  .lm-tile__lang {
    -webkit-backdrop-filter: none;
    backdrop-filter: none;
    background: rgba(13, 14, 17, .82);
  }
}

/* =========================================================
   Reduced motion
   ========================================================= */
@media (prefers-reduced-motion: reduce) {
  .lm-cta__glow,
  .lm-cta__frames span,
  .lm-cta__dot { animation: none; }
  .lm-cycle.is-flash .lm-cycle__flash,
  .lm-cycle.is-flash .lm-cycle__layer.is-front { animation: none; }
  .lm-cycle__layer { transition: none; }
  .lm-tile__layer { transition: none; }
  .lm-tile, .lm-deploy__card, .lm-chip, .lm-pair, .lm-pair__arrow { transition: none; }
}

/* Filmmaker landing: creed grid sits as a clean 3x2 instead of auto-fit's 5+1 */
@media (min-width: 992px) {
  .ls-features--trio { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}
/* Phone: the creed's role names + labels are long sentences, not short
   figures — stack them under each other instead of the side-by-side
   figure+label line the shared .ls-feature list uses. */
@media only screen and (max-width: 767px) {
  .ls-features--trio .ls-feature {
    grid-template-columns: 3rem 1fr;
    align-items: start;
  }
  .ls-features--trio .ls-feature__icon { grid-row: 1 / span 3; }
  .ls-features--trio .ls-feature__num {
    grid-column: 2;
    grid-row: 1;
    white-space: normal;
  }
  .ls-features--trio .ls-feature__label {
    grid-column: 2;
    grid-row: 2;
    margin-top: 0.3rem;
  }
  .ls-features--trio .ls-feature__detail {
    grid-column: 2;
    grid-row: 3;
  }
}

/* =========================================================
   Pipeline walkthrough (lipsmatch.html deep-dive) — six
   editorial stages: sticky numeral rail, copy, proof loop.
   Stage 06 swaps the proof loop for the QC checklist panel.
   ========================================================= */
.lm-pipe {
  list-style: none;
  margin: 0;
  padding: 0;
}
.lm-pipe__stage {
  display: grid;
  grid-template-columns: 9rem minmax(0, 1fr) minmax(0, 42%);
  gap: clamp(1.6rem, 3vw, 3.2rem);
  padding: clamp(2.6rem, 4vw, 4.4rem) 0;
  border-top: 1px solid var(--st-muted);
  align-items: start;
}
.lm-pipe__stage:last-child { border-bottom: 1px solid var(--st-muted); }
.lm-pipe__rail { position: sticky; top: 9rem; }
.lm-pipe__num {
  display: block;
  font-size: clamp(3rem, 4.6vw, 5.2rem);
  font-weight: 700;
  line-height: .9;
  letter-spacing: -.03em;
  /* translucent fill so non-WebKit engines (no text-stroke) still show the numeral */
  color: rgba(var(--accent-rgb), .28);
  -webkit-text-stroke: 1.5px rgba(var(--accent-rgb), .85);
}
.lm-pipe__kicker {
  display: block;
  margin-top: .9rem;
  font-size: 1.15rem;
  text-transform: uppercase;
  letter-spacing: .16em;
  color: var(--t-muted);
}
.lm-pipe__body h3 {
  margin: 0 0 1.6rem;
  font-size: clamp(2.4rem, 2.4vw, 3.2rem);
  line-height: 1.15;
}
.lm-pipe__body p { margin: 0 0 1rem; }
.lm-pipe__survives {
  display: flex;
  gap: .7rem;
  align-items: flex-start;
  margin-top: 1.6rem;
  padding-top: 1.3rem;
  border-top: 1px dashed var(--st-muted);
  font-size: 1.4rem;
  line-height: 1.5;
  color: var(--t-muted);
}
.lm-pipe__survives i { color: var(--accent); flex: none; transform: translateY(.15em); }
.lm-pipe__media { margin: 0; }
.lm-pipe__screen {
  position: relative;
  aspect-ratio: 16 / 9;
  overflow: hidden;
  border-radius: var(--lm-radius);
  border: 1px solid var(--st-muted);
  background: var(--lm-screen);
}
.lm-pipe__screen video {
  position: absolute; inset: 0;
  width: 100%; height: 100%;
  object-fit: cover;
  display: block;
}
.lm-pipe__media figcaption {
  padding: .8rem .2rem 0;
  font-size: 1.2rem;
  letter-spacing: .05em;
  text-transform: lowercase;
  color: var(--t-muted);
}
.lm-pipe__check {
  list-style: none;
  margin: 0;
  padding: clamp(2rem, 2.6vw, 3rem);
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
  border-radius: var(--lm-radius);
  border: 1px solid var(--st-muted);
  background:
    radial-gradient(120% 140% at 100% 0%, rgba(var(--accent-rgb), .08), transparent 55%),
    var(--base-tint);
}
.lm-pipe__check li { display: flex; gap: .9rem; align-items: flex-start; font-size: 1.5rem; line-height: 1.5; }
.lm-pipe__check i { color: var(--accent); flex: none; transform: translateY(.18em); }
@media (max-width: 991px) {
  .lm-pipe__stage { grid-template-columns: 1fr; gap: 1.4rem; }
  .lm-pipe__rail { position: static; display: flex; align-items: baseline; gap: 1rem; }
  .lm-pipe__num { font-size: 3.2rem; -webkit-text-stroke-width: 1.2px; }
  .lm-pipe__kicker { margin-top: 0; }
}

/* Brand name inside body copy — Lipsmatch gets the accent, nothing else */
.lm-brand {
  color: var(--accent);
  font-weight: var(--fw-medium);
}
