/*
 * The site nav — markup from lib/nav.ts, behaviour from public/js/nav.js.
 *
 * Self-contained: nothing here reaches into Webflow's classes and nothing in
 * Webflow's stylesheets reaches in here, because every class is `mtn-`. Loaded
 * by the site layout and by public/build/index.html.
 *
 *   ≥ 992px  a bar: brand, the four items centred, Privacy · language · CTA.
 *            Build with MiTrust and Platform open a panel of cards under it.
 *   < 992px  brand and a menu button; the menu is a sheet of plain links.
 */

.sticky-nav {
  position: sticky;
  top: 0;
  z-index: 1000;
}

.mtn {
  --mtn-ink: #18181a;
  --mtn-text: #505050;
  --mtn-muted: #6b6c75;
  --mtn-blue: #1c63ef;
  --mtn-hairline: #ececee;
  --mtn-surface: #fff;
  --mtn-frost: saturate(1.8) blur(22px);
  --mtn-bar-h: 60px;
  --mtn-ease: cubic-bezier(0.22, 1, 0.36, 1);

  position: relative;
  /* Above the scrim, which shares the sticky wrapper's stacking context. */
  z-index: 2;
  font-family: inherit;
  -webkit-font-smoothing: antialiased;
}

@supports (backdrop-filter: blur(1px)) {
  .mtn {
    --mtn-surface: rgb(255 255 255 / 0.92);
  }
}

.mtn *,
.mtn *::before,
.mtn *::after {
  box-sizing: border-box;
}

.mtn a {
  text-decoration: none;
}

/* The bar's surface is a layer of its own: an element with backdrop-filter
   becomes the backdrop root for everything inside it, and the panel under
   the bar must still see the page to frost it. */
.mtn::before {
  content: '';
  position: absolute;
  inset: 0 0 auto;
  height: var(--mtn-bar-h);
  background: var(--mtn-surface);
  -webkit-backdrop-filter: var(--mtn-frost);
  backdrop-filter: var(--mtn-frost);
  box-shadow: inset 0 -1px 0 var(--mtn-hairline);
}

/* ---------------------------------------------------------------- the bar */

.mtn-bar {
  position: relative;
  display: grid;
  /* Equal outer columns put the middle group on the bar's true centre. */
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  max-width: 1200px;
  height: var(--mtn-bar-h);
  margin: 0 auto;
  padding: 0 24px;
}

.mtn-brand {
  justify-self: start;
  display: inline-flex;
  align-items: center;
}

.mtn-brand img {
  display: block;
  width: 100px;
  height: auto;
}

.mtn-links {
  display: flex;
  align-items: center;
  gap: 4px;
}

.mtn-end {
  justify-self: end;
  display: flex;
  align-items: center;
  gap: 10px;
}

.mtn-link {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  height: 36px;
  padding: 0 14px;
  border-radius: 999px;
  color: var(--mtn-text);
  font-size: 15px;
  font-weight: 500;
  letter-spacing: -0.02em;
  white-space: nowrap;
  transition: background-color 0.15s ease, color 0.15s ease;
}

.mtn-link:hover,
.mtn-link[aria-expanded='true'],
.mtn-link[aria-current='page'] {
  color: var(--mtn-ink);
  background: rgb(18 24 26 / 0.05);
}

.mtn-link:focus-visible,
.mtn-icon:focus-visible,
.mtn-cta:focus-visible,
.mtn-burger:focus-visible,
.mtn-card:focus-visible {
  outline: 2px solid var(--mtn-blue);
  outline-offset: 2px;
}

/* The status light in front of "Now": a dot, and a ring that breathes out of it. */
.mtn-dot {
  position: relative;
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--mtn-blue);
}

.mtn-dot::after {
  content: '';
  position: absolute;
  inset: 0;
  border-radius: 50%;
  background: var(--mtn-blue);
  animation: mtn-pulse 2.4s ease-out infinite;
}

@keyframes mtn-pulse {
  from { transform: scale(1); opacity: 0.45; }
  to { transform: scale(3.2); opacity: 0; }
}

.mtn-privacy {
  background: none !important;
}

/* ---------------------------------------------------------------- language */

.mtn-lang {
  position: relative;
}

.mtn-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 34px;
  height: 34px;
  padding: 0;
  color: var(--mtn-text);
  background: none;
  border: 0;
  border-radius: 50%;
  cursor: pointer;
}

.mtn-icon:hover,
.mtn-icon[aria-expanded='true'] {
  color: var(--mtn-ink);
  background: rgb(18 24 26 / 0.05);
}

.mtn-lang-list {
  position: absolute;
  top: calc(100% + 10px);
  right: 0;
  display: grid;
  min-width: 150px;
  padding: 6px;
  background: #fff;
  border: 1px solid var(--mtn-hairline);
  border-radius: 14px;
  box-shadow: 0 14px 34px -14px rgb(16 18 24 / 0.3);
  opacity: 0;
  visibility: hidden;
  transform: translateY(-4px);
  transition: opacity 0.16s ease, transform 0.2s var(--mtn-ease), visibility 0s linear 0.2s;
}

.mtn-lang.is-open .mtn-lang-list {
  opacity: 1;
  visibility: visible;
  transform: none;
  transition: opacity 0.16s ease, transform 0.2s var(--mtn-ease);
}

.mtn-lang-link {
  padding: 8px 12px;
  border-radius: 9px;
  color: var(--mtn-text);
  font-size: 14px;
  font-weight: 500;
}

.mtn-lang-link:hover {
  color: var(--mtn-ink);
  background: rgb(18 24 26 / 0.05);
}

.mtn-lang-link[aria-current='true'] {
  color: var(--mtn-ink);
}

/* ---------------------------------------------------------------- CTA */

.mtn-cta {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  height: 36px;
  padding: 0 16px;
  border-radius: 999px;
  color: #fff;
  background: var(--mtn-ink);
  font-size: 14px;
  font-weight: 500;
  white-space: nowrap;
  transition: background-color 0.15s ease;
}

.mtn-cta:hover {
  color: #fff;
  background: #000;
}

/* The site's chevron (lib/chevron.ts), where the design had an arrow. */
.mtn-cta::after {
  content: '';
  width: 0.85em;
  height: 0.85em;
  background: currentColor;
  -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3E%3Cpath d='M6 3.5 10.5 8 6 12.5' fill='none' stroke='%23000' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center / contain no-repeat;
  mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3E%3Cpath d='M6 3.5 10.5 8 6 12.5' fill='none' stroke='%23000' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center / contain no-repeat;
}

/* ---------------------------------------------------------------- panels

   One container under the bar, its height eased to the panel on show. The
   panels inside are stacked on top of one another, so moving from one item to
   the next cross-fades the cards while the container glides to the new
   height — no collapse and re-open in between. */

.mtn-panels {
  position: absolute;
  top: var(--mtn-bar-h);
  left: 0;
  right: 0;
  height: 0;
  overflow: hidden;
  background: var(--mtn-surface);
  -webkit-backdrop-filter: var(--mtn-frost);
  backdrop-filter: var(--mtn-frost);
  box-shadow: inset 0 -1px 0 transparent;
  transition: height 0.34s var(--mtn-ease), box-shadow 0.2s ease;
}

.mtn.is-open .mtn-panels {
  box-shadow: inset 0 -1px 0 var(--mtn-hairline), 0 22px 44px -26px rgb(16 18 24 / 0.32);
}

.mtn-panel {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  opacity: 0;
  visibility: hidden;
  transform: translateY(-6px);
  transition: opacity 0.18s ease, transform 0.34s var(--mtn-ease), visibility 0s linear 0.34s;
}

.mtn-panel.is-active {
  opacity: 1;
  visibility: visible;
  transform: none;
  transition: opacity 0.26s ease 0.05s, transform 0.34s var(--mtn-ease);
}

.mtn-panel-grid {
  display: grid;
  gap: 8px;
  max-width: 1200px;
  margin: 0 auto;
  padding: 14px 24px 18px;
}

/* The menus are narrow, centred under the bar: 880px at most. */
.mtn-panel--about .mtn-panel-grid,
.mtn-panel--a-propos .mtn-panel-grid,
.mtn-panel--build-with-mitrust .mtn-panel-grid,
.mtn-panel--platform .mtn-panel-grid,
.mtn-panel--plateforme .mtn-panel-grid {
  max-width: 880px;
}

.mtn-panel--about .mtn-panel-grid,
.mtn-panel--a-propos .mtn-panel-grid {
  grid-template-columns: 1fr 1fr;
  grid-auto-rows: 272px;
}

/* Build with MiTrust: the page, what customers say, and the use cases. */
.mtn-panel--build-with-mitrust .mtn-panel-grid {
  max-width: 1080px;
  grid-template-columns: 1.25fr 1fr 0.8fr;
  grid-auto-rows: 272px;
}

/* A card of links: the industry pages, one under the other. */
.mtn-card--links { cursor: default; }
.mtn-card--links:hover { background: rgb(52 53 60 / 0.04); }
.mtn-card-links {
  display: flex;
  flex-direction: column;
  margin-top: 8px;
}
.mtn-card-links a {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  padding: 7px 0;
  border-top: 1px solid rgb(0 0 0 / 0.06);
  color: var(--mtn-ink);
  font-size: 14px;
  letter-spacing: -0.01em;
  text-decoration: none;
  transition: color 0.15s ease;
}
.mtn-card-links a:first-child { border-top: 0; }
.mtn-card-links a:hover { color: var(--mtn-blue, #1c63ef); }
.mtn-card-links a svg { width: 12px; height: 12px; opacity: 0.45; }

/* About · Meet MiTrust: the team photo across the whole card, darkened so
   the three lines read over it, bluer on hover as in Webflow's menu. */
/* .mtn-card prefix: the generic .mtn-art rule below (corner, 40% wide)
   comes later in the file and would otherwise win. */
.mtn-card .mtn-art--team {
  position: absolute;
  inset: 0;
  z-index: 0;
  max-width: none;
  max-height: none;
}

.mtn-art--team img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s var(--mtn-ease);
}

.mtn-art--team::after {
  content: '';
  position: absolute;
  inset: 0;
  background: rgb(0 0 0 / 0.5);
  transition: background-color 0.2s ease;
}

.mtn-card:hover .mtn-art--team::after {
  background: rgb(25 20 88 / 0.45);
}

.mtn-card:hover .mtn-art--team img {
  transform: scale(1.03);
}

.mtn-card--lead:has(.mtn-art--team) .mtn-card-text {
  font-size: 26px;
  line-height: 1.15;
}

/* About · Now: the next event, then the latest article, one white row each. */
.mtn-articles {
  position: relative;
  z-index: 1;
  display: grid;
  gap: 8px;
  margin-top: 10px;
}

.mtn-article {
  display: grid;
  gap: 6px;
  padding: 12px 14px;
  background: #fff;
  border: 1px solid rgb(0 0 0 / 0.05);
  border-radius: 10px;
}

.mtn-article small {
  color: var(--mtn-muted);
  font-size: 10.5px;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.mtn-article--event small {
  color: var(--mtn-blue);
}

.mtn-article em {
  color: var(--mtn-muted);
  font-size: 12.5px;
  font-style: normal;
}

.mtn-article b {
  display: -webkit-box;
  overflow: hidden;
  font-size: 14px;
  font-weight: 500;
  line-height: 1.35;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
}

/* User experience the full height, then two rows of two. */
.mtn-panel--platform .mtn-panel-grid,
.mtn-panel--plateforme .mtn-panel-grid {
  grid-template-columns: 1fr 1fr 1fr;
  grid-template-rows: 128px 128px;
}

.mtn-panel--platform .mtn-card:first-child,
.mtn-panel--plateforme .mtn-card:first-child {
  grid-row: span 2;
}

/* At 880px the Platform cards are narrow: smaller copy, set clear of the art. */
.mtn-panel--platform .mtn-card,
.mtn-panel--plateforme .mtn-card {
  padding: 16px;
}

.mtn-panel--platform .mtn-card-text,
.mtn-panel--plateforme .mtn-card-text {
  max-width: 58%;
  font-size: 12.5px;
  line-height: 1.4;
}

/* User experience: its copy across the card, the screens under it. */
.mtn-panel--platform .mtn-card:first-child .mtn-card-text,
.mtn-panel--plateforme .mtn-card:first-child .mtn-card-text {
  max-width: none;
}

/* Privacy: the copy across, the seals small in the corner below it. */
.mtn-panel--platform .mtn-card--blue .mtn-card-text,
.mtn-panel--plateforme .mtn-card--blue .mtn-card-text {
  max-width: none;
}

.mtn-panel--platform .mtn-art--seals,
.mtn-panel--plateforme .mtn-art--seals {
  top: auto;
  right: 12px;
  bottom: 12px;
  gap: 5px;
}

.mtn-panel--platform .mtn-seal,
.mtn-panel--plateforme .mtn-seal {
  width: 30px;
  height: 30px;
}

/* ---------------------------------------------------------------- cards */

.mtn-card {
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 6px;
  overflow: hidden;
  padding: 18px 20px;
  color: var(--mtn-ink);
  background: rgb(52 53 60 / 0.04);
  border: 1px solid rgb(0 0 0 / 0.04);
  border-radius: 12px;
  transition: background-color 0.18s ease, transform 0.18s ease;
}

.mtn-card:hover {
  background: rgb(52 53 60 / 0.07);
}

.mtn-card-title {
  position: relative;
  z-index: 1;
  font-size: 15px;
  font-weight: 500;
  letter-spacing: -0.01em;
}

.mtn-card-text {
  position: relative;
  z-index: 1;
  max-width: 62%;
  color: var(--mtn-muted);
  font-size: 13.5px;
  line-height: 1.45;
}

.mtn-card-more {
  display: inline-flex;
  align-items: center;
  gap: 3px;
  position: absolute;
  top: 18px;
  right: 20px;
  z-index: 1;
  color: var(--mtn-muted);
  font-size: 13px;
  font-weight: 500;
}

.mtn-card--blue {
  color: #fff;
  background: var(--mtn-blue);
  border-color: transparent;
}

.mtn-card--blue:hover {
  background: #1550c9;
}

.mtn-card--ink {
  color: #fff;
  background: #131313;
  border-color: transparent;
}

.mtn-card--ink:hover {
  background: #000;
}

.mtn-card--blue .mtn-card-text,
.mtn-card--ink .mtn-card-text,
.mtn-card--blue .mtn-card-more,
.mtn-card--ink .mtn-card-more {
  color: rgb(255 255 255 / 0.82);
}

/* The lead card: its lines set large at the foot, like a headline. */
.mtn-card--lead {
  padding: 24px;
}

.mtn-card--lead .mtn-card-text {
  max-width: 62%;
  margin-top: auto;
  color: #fff;
  font-size: 18px;
  font-weight: 600;
  line-height: 1.2;
  letter-spacing: -0.02em;
}

.mtn-card--lead .mtn-card-more {
  top: 24px;
  right: 24px;
}

/* ---- what sits in a card's corner */

.mtn-art {
  position: absolute;
  right: 12px;
  bottom: 0;
  max-width: 40%;
  max-height: 92%;
  object-fit: contain;
  object-position: right bottom;
  pointer-events: none;
}

/* User experience: three product screens fanned out, rising from the card's
   foot so they sit under the copy, not over it. */
.mtn-art--stack {
  inset: auto 0 -26px;
  max-width: none;
  display: flex;
  justify-content: center;
}

.mtn-art--stack > i {
  position: relative;
  overflow: hidden;
  width: 120px;
  aspect-ratio: 16 / 22;
  margin: 0 -22px;
  background: #fff;
  border: 1px solid rgb(0 0 0 / 0.08);
  border-radius: 8px;
  box-shadow: 0 8px 20px -12px rgb(16 18 24 / 0.35);
}

.mtn-art--stack > i:nth-child(1) { transform: rotate(-10deg); }
.mtn-art--stack > i:nth-child(2) { transform: rotate(-1deg) translateY(-8px); z-index: 1; }
.mtn-art--stack > i:nth-child(3) { transform: rotate(9deg); }

/* The tiles are the concept window's Select, Connect and Share (lib/pages/experience.ts),
   laid out at 240px and scaled into the 120px tile — big enough to fill the
   card up to its copy. */
.mtn-art--stack .mt-stack-screen {
  transform: scale(0.5);
}

/* ---- Build with MiTrust: a hand of client cards on a tilted plane

   As sketched: long cards lying on one plane, the plane turned so each card
   runs down to the right and the deck steps back up to the right — Stellantis
   in front, leboncoin at the back — each half hidden by the one in front and
   running off the edge. A close viewpoint gives the deck real perspective:
   the cards shrink as they recede. When the menu opens the cards swing open
   from their near corner like a hand of cards being fanned, a little more on
   hover, and then breathe. One 3D context, so the depth is real. */

.mtn-go {
  position: absolute;
  top: 22px;
  right: 22px;
  /* Over the client cards, which rise into this corner. */
  z-index: 3;
  display: inline-flex;
  color: rgb(255 255 255 / 0.85);
  transition: transform 0.2s ease;
}

.mtn-card:hover .mtn-go {
  transform: translateX(3px);
}

/* Every measure of the deck, in one place. They can be set by eye on any page
   with ?deck in its address — public/js/deck-tune.js — whose "Copy values"
   gives the block to paste here. */
.mtn-art--build {
  --deck-card-w: 900px;
  --deck-card-h: 188px;
  --deck-step: 96px;
  --deck-shift: 32px;
  --deck-lift: 24px;
  --deck-top: 74%;
  --deck-left: 9%;
  --deck-rx: 37deg;
  --deck-rz: 29deg;
  --deck-persp: 900px;
  --deck-fan: 3.5deg;
  --deck-fan-hover: 3.5deg;
  --deck-logo: 1.2;
  --deck-logo-x: 28px;
  --deck-logo-y: 36px;

  inset: 0;
  width: auto;
  max-width: none;
  max-height: none;
  perspective: var(--deck-persp);
  perspective-origin: 30% 0%;
}

/* The plane. Its x runs along the cards (down to the right on screen), its y
   across them; the deck steps back along -y. */
.mtn-iso {
  position: absolute;
  top: var(--deck-top);
  left: var(--deck-left);
  width: var(--deck-card-w);
  height: var(--deck-card-h);
  transform-style: preserve-3d;
  transform: rotateX(var(--deck-rx)) rotateZ(var(--deck-rz));
  transform-origin: 0 0;
}

.mtn-iso-card {
  position: absolute;
  /* Far enough apart that the card in front never reaches the logo. */
  top: calc(var(--i) * var(--deck-step) * -1);
  left: calc(var(--i) * var(--deck-shift));
  display: flex;
  /* The logo in the strip the card in front leaves showing. */
  align-items: flex-start;
  /* Long enough that their far ends never come into the card. */
  width: var(--deck-card-w);
  height: var(--deck-card-h);
  padding: var(--deck-logo-y) 0 0 var(--deck-logo-x);
  border-radius: 16px;
  background: #fff;
  /* Its shadow on the plane, and a softer one cast back onto the card behind. */
  box-shadow:
    0 30px 36px -20px rgb(0 12 70 / 0.6),
    0 -12px 22px -10px rgb(0 12 70 / 0.28);
  transform: translateZ(calc((var(--n, 4) - var(--i)) * var(--deck-lift)));
  /* The near corner the hand opens from. */
  transform-origin: 0 100%;
  transition: rotate 0.9s cubic-bezier(0.2, 0.9, 0.3, 1.15);
  transition-delay: calc(var(--i) * 70ms);
}

/* Opened: each card swings a little further down than the one in front of it. */
.mtn-panel.is-active .mtn-iso-card {
  rotate: z calc(var(--i) * var(--deck-fan));
  animation: mtn-breathe 5s ease-in-out 1s infinite;
  animation-delay: calc(1s + var(--i) * -1.25s);
}

.mtn-card:hover .mtn-iso-card {
  /* Wider, but not so wide the card in front reaches a logo. */
  rotate: z calc(var(--i) * var(--deck-fan-hover));
  transition-delay: calc(var(--i) * 40ms);
}

@keyframes mtn-breathe {
  50% { translate: 0 0 7px; }
}

.mtn-iso-card img {
  display: block;
  max-width: none;
  scale: var(--deck-logo);
  transform-origin: 0 0;
  object-fit: contain;
  object-position: left center;
}

/* ---- Customer insights: one customer at a time, as sketched

   Their logo, large; their words under it; the dots at the foot. Three quotes
   turn every four seconds — the keyframes below are written for three. They
   keep turning under the pointer: pausing on hover froze them for anyone
   reading the card, which read as broken. */

.mtn-quotes {
  position: relative;
  z-index: 1;
  display: block;
  flex: 1;
  margin-top: 12px;
}

.mtn-quote {
  position: absolute;
  inset: 0 0 20px;
  display: flex;
  flex-direction: column;
  opacity: 0;
}

.mtn-quote:first-child {
  opacity: 1;
}

.mtn-panel.is-active .mtn-quote {
  animation: mtn-quote calc(var(--n, 3) * 4s) infinite;
  /* Negative, so each starts already at its place in the cycle rather than
     waiting in its first frame. */
  animation-delay: calc((var(--i) - var(--n, 3)) * 4s);
}

@keyframes mtn-quote {
  0% { opacity: 0; transform: translateY(6px); }
  3% { opacity: 1; transform: none; }
  30% { opacity: 1; transform: none; }
  33.3%, 100% { opacity: 0; transform: translateY(-4px); }
}

.mtn-quote-logo {
  width: auto;
  max-width: 170px;
  height: 40px;
  align-self: flex-start;
  object-fit: contain;
  object-position: left center;
}

.mtn-quote-text {
  margin-top: 18px;
  color: var(--mtn-ink);
  font-size: 16.5px;
  font-weight: 500;
  line-height: 1.4;
  letter-spacing: -0.015em;
  text-wrap: pretty;
}

.mtn-quote-dots {
  position: absolute;
  left: 0;
  bottom: 0;
  display: flex;
  gap: 5px;
}

.mtn-quote-dots i {
  position: relative;
  overflow: hidden;
  width: 6px;
  height: 6px;
  border-radius: 6px;
  background: rgb(22 23 27 / 0.18);
}

/* The quote on show: its dot stretches into a track, and the track fills in
   black over the four seconds the quote stays, so the dots say when the next
   one comes. At rest (the panel closed, or reduced motion) the first is full. */
.mtn-quote-dots i::after {
  content: '';
  position: absolute;
  inset: 0 auto 0 0;
  width: 0;
  border-radius: inherit;
  background: var(--mtn-ink);
}

.mtn-quote-dots i:first-child {
  width: 22px;
}

.mtn-quote-dots i:first-child::after {
  width: 100%;
}

.mtn-panel.is-active .mtn-quote-dots i {
  animation: mtn-dot calc(var(--n, 3) * 4s) infinite;
  animation-delay: calc((var(--i) - var(--n, 3)) * 4s);
}

.mtn-panel.is-active .mtn-quote-dots i::after {
  animation: mtn-dot-fill calc(var(--n, 3) * 4s) linear infinite;
  animation-delay: calc((var(--i) - var(--n, 3)) * 4s);
}

@keyframes mtn-dot {
  0%, 33% { width: 22px; }
  33.3%, 100% { width: 6px; }
}

@keyframes mtn-dot-fill {
  0% { width: 0; opacity: 1; }
  33% { width: 100%; opacity: 1; }
  33.3%, 100% { width: 100%; opacity: 0; }
}

@media (prefers-reduced-motion: reduce) {
  .mtn-iso-card {
    transition: none;
  }

  .mtn-panel.is-active .mtn-iso-card {
    animation: none;
  }

  .mtn-panel.is-active .mtn-quote,
  .mtn-panel.is-active .mtn-quote-dots i,
  .mtn-panel.is-active .mtn-quote-dots i::after {
    animation: none;
  }
}

/* Privacy by design: the three seals, reversed for the blue. */
.mtn-art--seals {
  top: 0;
  bottom: 0;
  right: 16px;
  max-width: none;
  display: flex;
  align-items: center;
  gap: 8px;
}

.mtn-seal {
  width: 46px;
  height: 46px;
}

/* ---------------------------------------------------------------- scrim */

.mtn-scrim {
  position: fixed;
  inset: 0;
  z-index: 1;
  background: rgb(16 18 24 / 0.16);
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.26s ease, visibility 0s linear 0.26s;
}

.mtn-scrim.is-open {
  opacity: 1;
  visibility: visible;
  transition: opacity 0.26s ease;
}

/* ---------------------------------------------------------------- narrow desktop

   Between the phone layout and a wide screen the bar runs out of room — in
   French first. Privacy is also a card in the Platform panel, so the bar can
   let it go, and the items close up a little. */

@media (min-width: 992px) and (max-width: 1180px) {
  .mtn-privacy {
    display: none;
  }

  .mtn-link {
    padding: 0 11px;
  }

  .mtn-links {
    gap: 2px;
  }
}

/* ---------------------------------------------------------------- phone sheet */

.mtn-burger,
.mtn-sheet {
  display: none;
}

@media (max-width: 991px) {
  .mtn {
    --mtn-bar-h: 56px;
  }

  .mtn-bar {
    grid-template-columns: 1fr auto;
    padding: 0 16px;
  }

  .mtn-links,
  .mtn-privacy,
  .mtn-lang,
  .mtn-bar .mtn-cta,
  .mtn-panels,
  .mtn-scrim {
    display: none;
  }

  .mtn-burger {
    position: relative;
    display: inline-flex;
    width: 40px;
    height: 40px;
    margin-right: -8px;
    padding: 0;
    background: none;
    border: 0;
    border-radius: 50%;
    cursor: pointer;
  }

  .mtn-burger i {
    position: absolute;
    left: 11px;
    width: 18px;
    height: 1.75px;
    border-radius: 2px;
    background: var(--mtn-ink);
    transition: transform 0.3s var(--mtn-ease), top 0.3s var(--mtn-ease);
  }

  .mtn-burger i:first-child { top: 15px; }
  .mtn-burger i:last-child { top: 23px; }

  .mtn.is-sheet .mtn-burger i:first-child { top: 19px; transform: rotate(45deg); }
  .mtn.is-sheet .mtn-burger i:last-child { top: 19px; transform: rotate(-45deg); }

  .mtn-sheet {
    position: fixed;
    top: var(--mtn-bar-h);
    left: 0;
    right: 0;
    bottom: 0;
    display: block;
    overflow-y: auto;
    overscroll-behavior: contain;
    background: #fff;
    opacity: 0;
    visibility: hidden;
    transform: translateY(-8px);
    transition: opacity 0.2s ease, transform 0.3s var(--mtn-ease), visibility 0s linear 0.3s;
  }

  .mtn.is-sheet .mtn-sheet {
    opacity: 1;
    visibility: visible;
    transform: none;
    transition: opacity 0.2s ease, transform 0.3s var(--mtn-ease);
  }

  .mtn-sheet-inner {
    display: flex;
    flex-direction: column;
    min-height: 100%;
    padding: 8px 16px calc(24px + env(safe-area-inset-bottom));
  }

  .mtn-sheet-link {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 16px 0;
    color: var(--mtn-ink);
    font-size: 20px;
    font-weight: 500;
    letter-spacing: -0.02em;
    border-bottom: 1px solid var(--mtn-hairline);
    list-style: none;
    cursor: pointer;
  }

  .mtn-sheet-link::-webkit-details-marker {
    display: none;
  }

  .mtn-sheet-link svg {
    margin-left: auto;
    color: var(--mtn-muted);
    transition: transform 0.25s var(--mtn-ease);
  }

  .mtn-sheet-group[open] > .mtn-sheet-link {
    border-bottom-color: transparent;
  }

  .mtn-sheet-group[open] > .mtn-sheet-link svg {
    transform: rotate(180deg);
  }

  .mtn-sheet-sub {
    display: grid;
    padding: 0 0 10px;
    border-bottom: 1px solid var(--mtn-hairline);
  }

  .mtn-sheet-sub a {
    padding: 9px 0;
    color: var(--mtn-text);
    font-size: 16px;
  }

  .mtn-sheet-sub a[aria-current='page'],
  .mtn-sheet-link[aria-current='page'] {
    color: var(--mtn-blue);
  }

  .mtn-sheet-foot {
    display: flex;
    flex-direction: column;
    gap: 16px;
    margin-top: auto;
    padding-top: 28px;
  }

  .mtn-sheet-langs {
    display: flex;
    gap: 6px;
  }

  .mtn-sheet-langs .mtn-lang-link {
    border: 1px solid var(--mtn-hairline);
    border-radius: 999px;
  }

  .mtn-sheet-langs .mtn-lang-link[aria-current='true'] {
    border-color: var(--mtn-ink);
  }

  .mtn-sheet .mtn-cta {
    height: 48px;
    font-size: 16px;
  }
}

/* The page under an open sheet stays put. */
html.mtn-lock,
html.mtn-lock body {
  overflow: hidden;
}

@media (prefers-reduced-motion: reduce) {
  .mtn *,
  .mtn-scrim {
    transition-duration: 0s !important;
    animation: none !important;
  }
}
