/* =========================================================================
   Kuumba — mega menu (desktop panels) and sheet accordion (mobile).
   Built by scripts/megamenu.js; nothing here applies until that script runs.
   Motion is transform / opacity only; the panel reveal is a clip-path driven by --mm-h.
   ========================================================================= */

@property --mm-h { syntax: "<length>"; inherits: true; initial-value: 72px; }

@media (min-width: 961px) { html.has-mm { scrollbar-gutter: stable; } } /* no width jump when Lenis pauses the page */

/* ---------- Nav while a panel is open: ink on porcelain ---------- */
.nav__inner { position: relative; }
.nav.is-mega,
.nav.is-mega.is-glass { color: var(--ink); background-color: transparent; box-shadow: none; backdrop-filter: none; -webkit-backdrop-filter: none; }
.nav.is-mega .nav__links a { color: var(--muted); transition: color .3s var(--ease-out), background-color .2s; }
.nav.is-mega .nav__links a:hover,
.nav.is-mega .nav__links a[aria-expanded="true"] { color: var(--ink); background: transparent; }
.nav.is-mega .nav__links a[aria-current] { background: transparent; }
.nav .nav__links a { transition: color .3s var(--ease-out), background-color .2s; }

/* Slim indicator that glides under the active item, sitting on the seam */
.mm-ind {
  position: absolute; left: 0; bottom: 0; z-index: 2; width: 1px; height: 2px; border-radius: 2px;
  background: var(--ink); transform-origin: 0 50%; opacity: 0; pointer-events: none;
  transition: transform .55s var(--ease-out), opacity .3s var(--ease-out);
}
.mm-ind.is-on { opacity: 1; }
.mm-ind.is-jump { transition: none; }

/* ---------- Surface ---------- */
.mm {
  --mm-nav: 72px;
  position: absolute; inset: 0 0 auto; z-index: -1;
  visibility: hidden; pointer-events: none;
}
.mm.is-open { visibility: visible; }
.mm__clip {
  position: relative; padding-top: var(--mm-nav);
  background: rgba(251, 251, 250, .9);
  backdrop-filter: saturate(1.5) blur(28px); -webkit-backdrop-filter: saturate(1.5) blur(28px);
  clip-path: inset(0 0 calc(100% - var(--mm-h)) 0);
  opacity: 0; transition: opacity .28s var(--ease-out);
  max-height: 100vh; overflow: hidden;
}
.mm.is-open .mm__clip { pointer-events: auto; }
.mm.is-shown .mm__clip { opacity: 1; }
.mm.mm--css .mm__clip { transition: opacity .28s var(--ease-out), --mm-h .6s var(--ease-out); }
.mm.mm--css { transition: --mm-h .6s var(--ease-out); }
.mm__seam { position: absolute; left: 0; right: 0; top: calc(var(--mm-nav) - 1px); height: 1px; background: rgba(28, 26, 24, .07); }
.mm__edge {
  position: absolute; left: 0; right: 0; top: 0; height: 48px; pointer-events: none;
  transform: translate3d(0, var(--mm-h), 0);
  background: linear-gradient(180deg, rgba(28, 26, 24, .07), rgba(28, 26, 24, 0));
  box-shadow: inset 0 1px 0 rgba(28, 26, 24, .06);
  opacity: 0; transition: opacity .3s var(--ease-out);
}
.mm.is-shown .mm__edge { opacity: 1; }

.mm__stack { display: grid; }
.mm__panel { grid-area: 1 / 1; align-self: start; padding: 36px 0 26px; visibility: hidden; opacity: 0; }
.mm__panel.is-on, .mm__panel.is-out { visibility: visible; }
.mm__panel.is-on { opacity: 1; }
.mm__panel.is-out { pointer-events: none; }

/* Page behind: dimmed and softened; a click here closes the menu */
.mm-scrim {
  position: fixed; inset: 0; z-index: 49;
  background: rgba(28, 26, 24, .2);
  backdrop-filter: blur(6px); -webkit-backdrop-filter: blur(6px);
  opacity: 0; pointer-events: none; transition: opacity .45s var(--ease-out);
}
.mm-scrim.is-on { opacity: 1; pointer-events: auto; }

/* ---------- Shared pieces ---------- */
.mm-h { display: flex; align-items: baseline; gap: 10px; margin-bottom: 14px; font-size: 12px; line-height: 16px; font-weight: 500; letter-spacing: .08em; text-transform: uppercase; color: var(--muted); }
.mm-h b { font-weight: 500; color: var(--faint); letter-spacing: .04em; font-variant-numeric: tabular-nums; }
.mm-list { display: grid; gap: 2px; }
.mm-link { display: grid; grid-template-columns: 36px minmax(0, 1fr); align-items: center; gap: 12px; margin-inline: -10px; padding: 9px 10px; border-radius: 14px; transition: background-color .25s var(--ease-out); }
.mm-link:hover, .mm-link:focus-visible { background: rgba(28, 26, 24, .04); }
.mm-link:focus-visible, .mm-cap:focus-visible, .mm-more:focus-visible, .mm-chips a:focus-visible, .mm-list--text a:focus-visible, .mm-life:focus-visible { outline-offset: 0; border-radius: 12px; }
.mm-tile { display: grid; place-items: center; width: 36px; height: 36px; border-radius: 11px; background: #fff; color: var(--ink); box-shadow: inset 0 0 0 1px var(--line), 0 1px 2px rgba(28, 26, 24, .04); transition: background-color .3s var(--ease-out), color .3s var(--ease-out), box-shadow .3s; }
.mm-tile .ic { width: 18px; height: 18px; }
.mm-link:hover .mm-tile, .mm-link:focus-visible .mm-tile, .mm-cap:hover .mm-tile, .mm-cap:focus-visible .mm-tile { background: var(--ink); color: #fff; box-shadow: inset 0 0 0 1px var(--ink); }
.mm-link__t { display: grid; gap: 1px; min-width: 0; }
.mm-link__n { display: flex; align-items: center; gap: 8px; font-size: 15px; line-height: 20px; font-weight: 500; letter-spacing: -0.005em; color: var(--ink); }
.mm-link__l { font-size: 13px; line-height: 18px; color: var(--muted); font-variant-numeric: tabular-nums; }
.mm-link[aria-current] .mm-link__n::after { content: ""; width: 5px; height: 5px; border-radius: 50%; background: var(--accent); }
.mm-link:not(.mm-link--big) .mm-link__n { display: block; } /* the "you are here" dot then rides the last word instead of taking a flex slot */
.mm-link:not(.mm-link--big)[aria-current] .mm-link__n::after { display: inline-block; vertical-align: middle; margin: -2px 0 0 7px; }

.mm-foot { display: flex; align-items: center; justify-content: space-between; gap: 24px; margin-top: 26px; padding-top: 18px; border-top: 1px solid rgba(28, 26, 24, .07); }
.mm-more { display: inline-flex; align-items: center; gap: 8px; min-height: 36px; font-size: 15px; font-weight: 500; color: var(--ink); }
.mm-more .ic { width: 17px; height: 17px; transition: transform .4s var(--ease-out); }
.mm-more:hover .ic, .mm-more:focus-visible .ic { transform: translateX(4px); }
.mm-note { font-size: 13px; color: var(--muted); }

/* Photo with a pre-blurred twin: the soft image sits underneath, the sharper one fades in on hover */
.mm-ph { position: absolute; inset: 0; overflow: hidden; background: linear-gradient(180deg, #D8CCD3 0%, #D9C2AE 60%, #B9A48F 100%); }
.mm-ph img { position: absolute; inset: 0; width: 100%; height: 100%; max-width: none; object-fit: cover; }
.mm-ph__blur { opacity: 0; transform: scale(1.04); transition: opacity .7s var(--ease-out), transform 1.4s var(--ease-out); }
.mm-ph__blur.is-in { opacity: 1; }
.mm-ph__sharp { opacity: 0; transform: scale(1.04); transition: opacity .9s var(--ease-out), transform 1.4s var(--ease-out); }
a:hover > .mm-ph .mm-ph__sharp.is-in, a:focus-visible > .mm-ph .mm-ph__sharp.is-in { opacity: 1; }
a:hover > .mm-ph img, a:focus-visible > .mm-ph img { transform: scale(1); }

.mm-card { position: relative; display: block; overflow: hidden; isolation: isolate; border-radius: var(--r-lg); color: #fff; transform: translateZ(0); transition: transform .5s var(--ease-out), box-shadow .5s var(--ease-out); }
.mm-card:hover, .mm-card:focus-visible { transform: translateY(-2px); box-shadow: 0 18px 36px -18px rgba(28, 26, 24, .35); }
.mm-card:focus-visible { outline: 2px solid var(--ink); outline-offset: 3px; }
.mm-card__shade { position: absolute; inset: 0; background: linear-gradient(180deg, rgba(28, 26, 24, .5) 0%, rgba(28, 26, 24, .08) 36%, rgba(28, 26, 24, 0) 55%, rgba(28, 26, 24, .42) 100%); }
.mm-card__txt { position: absolute; left: 18px; right: 18px; bottom: 16px; display: grid; gap: 2px; }
.mm-card__txt--top { top: 16px; bottom: auto; }
.mm-card__n { font-size: 12px; font-weight: 600; letter-spacing: .04em; opacity: .8; font-variant-numeric: tabular-nums; }
.mm-card__name { font-size: 20px; line-height: 26px; font-weight: 400; letter-spacing: -0.02em; text-wrap: balance; }
.mm-card__line { font-size: 13.5px; line-height: 19px; color: rgba(255, 255, 255, .9); text-wrap: pretty; }
.mm-card__line--foot { position: absolute; left: 18px; right: 18px; bottom: 16px; }

/* ---------- 1. Services ---------- */
.mm-svc { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, .9fr) minmax(0, 1.05fr) minmax(0, 1.05fr) minmax(260px, 290px); gap: 0 clamp(18px, 2vw, 32px); align-items: stretch; }
.mm-side-feat { display: flex; flex-direction: column; gap: 10px; min-width: 0; }
.mm-feat { position: relative; display: block; flex: 1; min-height: 272px; border-radius: var(--r-lg); overflow: hidden; isolation: isolate; color: #fff; transform: translateZ(0); transition: transform .5s var(--ease-out), box-shadow .5s var(--ease-out); }
.mm-feat:hover, .mm-feat:focus-visible { transform: translateY(-2px); box-shadow: 0 18px 36px -18px rgba(28, 26, 24, .35); }
.mm-feat:focus-visible { outline: 2px solid var(--ink); outline-offset: 3px; }
.mm-feat__stage { position: absolute; inset: 0; }
.mm-feat__layer { position: absolute; inset: 0; opacity: 0; transition: opacity .7s var(--ease-out); }
.mm-feat__layer.is-front { opacity: 1; z-index: 1; }
.mm-feat .mm-ph__blur { opacity: 1; transform: scale(1.06); transition: transform 1.6s var(--ease-out); }
.mm-feat__layer.is-front .mm-ph__blur { transform: scale(1.0); }
.mm-feat .mm-ph__sharp { transform: none; }
.mm-feat.is-focus .is-front .mm-ph__sharp.is-in { opacity: .55; }
.mm-feat:hover .is-front .mm-ph__sharp.is-in, .mm-feat:focus-visible .is-front .mm-ph__sharp.is-in { opacity: 1; }
.mm-feat__layer::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(28, 26, 24, .48) 0%, rgba(28, 26, 24, .06) 34%, rgba(28, 26, 24, 0) 52%, rgba(28, 26, 24, .5) 100%); }
.mm-feat__layer.is-render::after { background: linear-gradient(180deg, rgba(28, 26, 24, .62) 0%, rgba(28, 26, 24, .2) 34%, rgba(28, 26, 24, .22) 50%, rgba(28, 26, 24, .78) 100%); }
.mm-feat__layer.is-render .mm-ph img { object-position: 50% 30%; }
.mm-feat__txt { position: absolute; inset: 18px 20px 20px; z-index: 1; display: flex; flex-direction: column; justify-content: space-between; transform: translate3d(0, 8px, 0); transition: transform .8s var(--ease-out); }
.mm-feat__layer.is-front .mm-feat__txt { transform: none; }
.mm-feat__top { display: grid; gap: 2px; }
.mm-feat__g { font-size: 12px; font-weight: 500; letter-spacing: .08em; text-transform: uppercase; opacity: .82; }
.mm-feat__n { font-size: 21px; line-height: 27px; letter-spacing: -0.02em; }
.mm-feat__fact { display: grid; gap: 4px; padding-right: 48px; }
.mm-feat__k { font-size: 13px; color: rgba(255, 255, 255, .88); }
.mm-feat__v { display: flex; align-items: baseline; flex-wrap: wrap; gap: 4px 10px; }
.mm-feat__v b { font-size: 52px; line-height: 1; font-weight: 300; letter-spacing: -0.04em; font-variant-numeric: tabular-nums; }
.mm-feat__v span { font-size: 15px; color: rgba(255, 255, 255, .92); }
.mm-feat .grain { z-index: 2; }
.mm-feat__go { position: absolute; right: 18px; bottom: 20px; z-index: 3; display: grid; place-items: center; width: 36px; height: 36px; border-radius: 50%; background: rgba(255, 255, 255, .2); box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .35); backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px); }
.mm-feat__go .ic { width: 17px; height: 17px; transition: transform .4s var(--ease-out); }
.mm-feat:hover .mm-feat__go .ic { transform: translateX(2px); }
/* Word-valued facts ("No shutdown", "From the air") sit a size down from the numerals */
.mm-feat__layer.is-word .mm-feat__v { flex-direction: column; align-items: flex-start; gap: 6px; }
.mm-feat__layer.is-word .mm-feat__v b { font-size: 31px; line-height: 1.06; letter-spacing: -0.03em; }

/* Service columns */
.mm-col { min-width: 0; }
.mm-link__l { text-wrap: pretty; }

/* "New" flag: a quiet white pill with one violet dot */
.mm-flag { display: inline-flex; align-items: center; gap: 5px; height: 18px; padding: 0 7px 0 6px; border-radius: var(--r-pill); background: #fff; box-shadow: inset 0 0 0 1px var(--line); font-size: 10.5px; font-weight: 600; letter-spacing: .04em; text-transform: uppercase; color: var(--ink); line-height: 1; white-space: nowrap; flex: none; }
.mm-flag::before { content: ""; width: 5px; height: 5px; border-radius: 50%; background: var(--accent); }

/* Highlighted new item (Stocktake drone) */
.mm-new { position: relative; display: grid; grid-template-columns: 48px minmax(0, 1fr); align-items: center; gap: 12px; padding: 10px; border-radius: 16px; background: #fff; box-shadow: inset 0 0 0 1px var(--line), 0 1px 2px rgba(28, 26, 24, .04); transition: box-shadow .4s var(--ease-out), transform .5s var(--ease-out); }
.mm-new:hover, .mm-new:focus-visible { box-shadow: inset 0 0 0 1px rgba(28, 26, 24, .14), 0 12px 28px -16px rgba(28, 26, 24, .3); transform: translateY(-1px); }
.mm-new[aria-current] { box-shadow: inset 0 0 0 1px rgba(107, 78, 255, .32), 0 1px 2px rgba(28, 26, 24, .04); }
.mm-new:focus-visible { outline: 2px solid var(--ink); outline-offset: 2px; border-radius: 16px; }
.mm-new__ph { position: relative; width: 48px; height: 48px; border-radius: 11px; overflow: hidden; background: linear-gradient(180deg, #D8CCD3, #C7B39F); }
.mm-new__ph img { position: absolute; inset: 0; width: 100%; height: 100%; max-width: none; object-fit: cover; opacity: 0; transform: scale(1.08); transition: opacity .6s var(--ease-out), transform 1.2s var(--ease-out); }
.mm-new__ph img.is-in { opacity: 1; }
.mm-new:hover .mm-new__ph img, .mm-new:focus-visible .mm-new__ph img { transform: scale(1); }
.mm-new .mm-link__n { flex-wrap: wrap; gap: 4px 8px; }
.mm-new__go { position: absolute; right: 12px; top: 12px; width: 15px; height: 15px; color: var(--muted); opacity: 0; transform: translateX(-4px); transition: opacity .3s var(--ease-out), transform .4s var(--ease-out); }
.mm-new:hover .mm-new__go, .mm-new:focus-visible .mm-new__go { opacity: 1; transform: none; }
.mm-new--side .mm-link__n { padding-right: 18px; }
.mm-new--foot { grid-template-columns: 36px minmax(0, 1fr) 16px; gap: 10px; padding: 6px 14px 6px 6px; border-radius: 14px; flex: none; }
.mm-new--foot .mm-new__ph { width: 36px; height: 36px; border-radius: 9px; }
.mm-new--foot .mm-link__t { grid-auto-flow: column; align-items: center; gap: 10px; }
.mm-new--foot .mm-link__n { font-size: 14px; }
.mm-new--foot .mm-link__l { white-space: nowrap; }
.mm-new--foot .mm-new__go { position: static; opacity: 1; transform: none; }
.mm-new--foot:hover .mm-new__go { transform: translateX(2px); }
.mm-foot:has(.mm-new--foot) { padding-top: 14px; }
.mm-foot:has(.mm-new--foot) .mm-note { margin-left: auto; }

/* ---------- 2. How we work ---------- */
.mm-how { display: grid; grid-template-columns: minmax(0, 1fr) minmax(280px, 340px); gap: clamp(28px, 3.4vw, 56px); }
.mm-loop { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 14px; }
.mm-card--wide { aspect-ratio: 4 / 3.45; }
.mm-life { display: grid; grid-template-columns: auto minmax(0, 1fr) auto; align-items: center; gap: 24px; margin-top: 14px; padding: 14px 18px; border-radius: 14px; background: var(--rail); box-shadow: inset 0 0 0 1px rgba(28, 26, 24, .04); transition: background-color .3s var(--ease-out); }
.mm-life:hover { background: #EFEFEC; }
.mm-life__k { font-size: 12px; font-weight: 500; letter-spacing: .08em; text-transform: uppercase; color: var(--muted); }
.mm-life__row { display: flex; align-items: center; gap: 12px; min-width: 0; }
.mm-life__s { font-size: 14px; font-weight: 500; color: var(--ink); white-space: nowrap; }
.mm-life__rule { flex: 1; min-width: 12px; height: 1px; background: linear-gradient(90deg, rgba(28, 26, 24, .25), rgba(28, 26, 24, .08)); }
.mm-life__go { width: 17px; height: 17px; transition: transform .4s var(--ease-out); }
.mm-life:hover .mm-life__go { transform: translateX(3px); }
.mm-list--rules { gap: 0; }
.mm-list--rules li + li { border-top: 1px solid rgba(28, 26, 24, .06); }
.mm-link--plain { grid-template-columns: minmax(0, 1fr) auto; padding: 11px 10px; }
.mm-link__go { width: 16px; height: 16px; color: var(--muted); opacity: 0; transform: translateX(-4px); transition: opacity .3s var(--ease-out), transform .4s var(--ease-out); }
.mm-link:hover .mm-link__go, .mm-link:focus-visible .mm-link__go { opacity: 1; transform: none; }

/* ---------- 3. Kuumba Work ---------- */
.mm-work { display: grid; grid-template-columns: minmax(0, 1fr) minmax(420px, 540px); gap: clamp(28px, 3.4vw, 56px); align-items: stretch; }
.mm-work__main { display: flex; flex-direction: column; }
.mm-caps { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 6px 20px; }
.mm-cap { display: grid; grid-template-columns: 36px minmax(0, 1fr); gap: 14px; align-items: start; margin-inline: -12px; padding: 14px 12px; border-radius: 14px; transition: background-color .25s var(--ease-out); }
.mm-cap:hover, .mm-cap:focus-visible { background: rgba(28, 26, 24, .04); }
.mm-cap .mm-link__n { font-size: 17px; line-height: 22px; letter-spacing: -0.01em; }
.mm-cap .mm-link__l { font-size: 13.5px; line-height: 19px; margin-top: 2px; }
.mm-tag { height: 20px; padding-inline: 8px; font-size: 11px; }
.mm-chips { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 18px; }
.mm-chips a { display: inline-flex; align-items: center; gap: 6px; height: 32px; padding: 0 12px 0 14px; border-radius: var(--r-pill); font-size: 13px; font-weight: 500; background: #fff; box-shadow: inset 0 0 0 1px var(--line); transition: box-shadow .25s, background-color .25s; }
.mm-chips a:hover { box-shadow: inset 0 0 0 1px rgba(28, 26, 24, .2); }
.mm-chips .ic { width: 14px; height: 14px; color: var(--muted); transition: transform .4s var(--ease-out); }
.mm-chips a:hover .ic { transform: translateX(2px); }
.mm-conns { display: grid; gap: 8px; margin-top: auto; padding-top: 22px; }
.mm-conn { display: flex; align-items: center; gap: 10px; font-size: 13px; line-height: 18px; color: var(--muted); }
.mm-conn .lg { margin-inline: 2px; }
.mm-conn b { font-weight: 500; color: var(--ink); }

.mm-vig { position: relative; display: block; min-height: 300px; border-radius: var(--r-lg); overflow: hidden; isolation: isolate; transition: box-shadow .5s var(--ease-out); }
.mm-vig:hover { box-shadow: 0 18px 36px -18px rgba(28, 26, 24, .35); }
.mm-vig:focus-visible { outline: 2px solid var(--ink); outline-offset: 3px; }
.mm-vig .grain { z-index: 1; }
.mm-win {
  position: absolute; z-index: 2; left: 9%; right: 9%; top: 50%; transform: translate3d(0, -50%, 0);
  display: block; border-radius: 16px; overflow: hidden; color: var(--ink);
  background: rgba(251, 251, 250, .82); backdrop-filter: saturate(1.4) blur(18px); -webkit-backdrop-filter: saturate(1.4) blur(18px);
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .6), var(--shadow-float);
  transition: transform .8s var(--ease-out);
}
.mm-vig:hover .mm-win { transform: translate3d(0, calc(-50% - 3px), 0); }
.mm-win__bar { display: flex; align-items: center; gap: 8px; padding: 10px 14px; font-size: 12.5px; font-weight: 600; border-bottom: 1px solid rgba(28, 26, 24, .06); }
.mm-win__tile { width: 18px; height: 18px; }
.mm-win__seg { margin-left: auto; font-weight: 500; color: var(--muted); }
.mm-win__body { display: grid; gap: 10px; padding: 14px; font-size: 12.5px; line-height: 17px; }
.mm-bub { justify-self: end; max-width: 82%; padding: 8px 11px; border-radius: 12px 12px 4px 12px; background: var(--ink); color: #fff; }
.mm-ans { display: grid; gap: 8px; max-width: 92%; }
.mm-src { display: flex; flex-wrap: wrap; gap: 6px; }
.mm-src span { display: inline-flex; align-items: center; gap: 5px; height: 22px; padding: 0 8px 0 4px; border-radius: 7px; background: #fff; box-shadow: inset 0 0 0 1px var(--line); font-size: 11px; color: var(--muted); }
.mm-src b { display: grid; place-items: center; width: 15px; height: 15px; border-radius: 4px; background: var(--sunken); font-size: 10px; font-weight: 600; color: var(--ink); }
.mm-ok { display: grid; grid-template-columns: 28px minmax(0, 1fr) auto; align-items: center; gap: 10px; padding: 9px 10px; border-radius: 12px; background: #fff; box-shadow: inset 0 0 0 1px var(--line), var(--shadow-card); }
.mm-ok__i { display: grid; place-items: center; width: 28px; height: 28px; border-radius: 8px; background: var(--sunken); }
.mm-ok__i .ic { width: 15px; height: 15px; }
.mm-ok__t { display: grid; min-width: 0; }
.mm-ok__t b { font-size: 12.5px; font-weight: 600; }
.mm-ok__t span { font-size: 11px; color: var(--muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.mm-ok__b { display: flex; gap: 6px; }
.mm-btn { display: inline-flex; align-items: center; height: 26px; padding: 0 11px; border-radius: var(--r-pill); font-size: 11.5px; font-weight: 500; background: #fff; box-shadow: inset 0 0 0 1px var(--line); }
.mm-btn--ink { background: var(--ink); color: #fff; box-shadow: none; }

/* ---------- 4. Industries ---------- */
/* Six tiles in one row on wide screens; a 3 × 2 grid of landscape tiles on narrow desktops */
.mm-inds { display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); gap: 12px; }
.mm-card--tall { aspect-ratio: 3 / 4.15; max-height: 330px; width: 100%; }
.mm-card--tall .mm-card__txt { left: 16px; right: 16px; }
.mm-card--tall .mm-card__name { font-size: 18px; line-height: 23px; }
.mm-card--tall .mm-card__line--foot { left: 16px; right: 16px; font-size: 13px; line-height: 18px; }

/* ---------- 5. Company ---------- */
.mm-co { display: grid; grid-template-columns: minmax(0, 1.05fr) minmax(0, .8fr) minmax(320px, 1.2fr); grid-template-rows: auto auto; gap: 0 clamp(28px, 3.4vw, 56px); align-items: start; }
.mm-co > .mm-dusk { grid-column: 3; grid-row: 1 / span 2; align-self: stretch; }
.mm-co__main, .mm-co > .mm-side { grid-row: 1; }
.mm-list--big { gap: 2px; align-content: start; }
.mm-link--big { grid-template-columns: 40px minmax(0, 1fr) auto; gap: 14px; padding: 11px 12px; margin-inline: -12px; }
.mm-facts { grid-column: 1 / span 2; grid-row: 2; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); margin-top: 22px; border-radius: 16px; background: var(--rail); box-shadow: inset 0 0 0 1px rgba(28, 26, 24, .04); }
.mm-facts li + li { box-shadow: -1px 0 0 rgba(28, 26, 24, .07); }
.mm-facts a { display: flex; align-items: baseline; gap: 8px; padding: 14px 18px; border-radius: 16px; transition: background-color .3s var(--ease-out); }
.mm-facts a:hover { background: rgba(28, 26, 24, .035); }
.mm-facts a:focus-visible { outline-offset: -2px; }
.mm-facts b { font-size: 26px; line-height: 1; font-weight: 300; letter-spacing: -0.03em; color: var(--ink); font-variant-numeric: tabular-nums; }
.mm-facts span { font-size: 13px; color: var(--muted); }
.mm-link--big .mm-tile { width: 40px; height: 40px; border-radius: 12px; }
.mm-link--big .mm-link__n { font-size: 17px; line-height: 22px; letter-spacing: -0.01em; }
.mm-link--big .mm-link__l { font-size: 13.5px; }
.mm-list--text { gap: 0; }
.mm-list--text a { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 9px 0; font-size: 15px; color: var(--ink); border-bottom: 1px solid rgba(28, 26, 24, .06); }
.mm-list--text li:last-child a { border-bottom: 0; }
.mm-list--text .ic { width: 15px; height: 15px; color: var(--muted); opacity: 0; transform: translateX(-4px); transition: opacity .3s var(--ease-out), transform .4s var(--ease-out); }
.mm-list--text a:hover .ic, .mm-list--text a:focus-visible .ic { opacity: 1; transform: none; }
.mm-list--text a:hover { color: var(--ink); }

.mm-dusk { position: relative; display: flex; flex-direction: column; justify-content: flex-end; gap: 10px; min-height: 248px; padding: 24px 26px; border-radius: var(--r-xl); overflow: hidden; isolation: isolate; color: var(--ink); transition: transform .5s var(--ease-out), box-shadow .5s var(--ease-out); }
.mm-dusk:hover, .mm-dusk:focus-visible { transform: translateY(-2px); box-shadow: 0 18px 40px -20px rgba(107, 78, 255, .45); }
.mm-dusk:focus-visible { outline: 2px solid var(--ink); outline-offset: 3px; }
.mm-dusk__bg { position: absolute; inset: -20% -30% -20% -10%; z-index: -1; background: var(--dusk); transform: translate3d(0, 0, 0); transition: transform 1.6s var(--ease-out); }
.mm-dusk:hover .mm-dusk__bg { transform: translate3d(-8%, 0, 0); }
.mm-dusk .grain { z-index: 0; opacity: .22; }
.mm-dusk__k { position: absolute; top: 22px; left: 26px; display: inline-flex; align-items: center; gap: 9px; font-size: 12px; font-weight: 500; letter-spacing: .08em; text-transform: uppercase; color: rgba(28, 26, 24, .72); }
.mm-dusk__tile { width: 18px; height: 18px; }
.mm-dusk__t { position: relative; font-size: clamp(28px, 2.4vw, 34px); line-height: 1.08; font-weight: 300; letter-spacing: -0.03em; max-width: 12ch; }
.mm-dusk__l { position: relative; font-size: 13.5px; line-height: 19px; max-width: 36ch; color: rgba(28, 26, 24, .78); padding-right: 48px; }
.mm-dusk__go { position: absolute; right: 22px; bottom: 22px; display: grid; place-items: center; width: 36px; height: 36px; border-radius: 50%; background: rgba(255, 255, 255, .9); color: var(--ink); }
.mm-dusk__go .ic { width: 17px; height: 17px; transition: transform .4s var(--ease-out); }
.mm-dusk:hover .mm-dusk__go .ic { transform: translateX(2px); }

/* ---------- What we're not ---------- */
/* The dark statement card on the left, then the 13 services: what each is not (struck) and what you get. */
.mm-not { display: grid; grid-template-columns: minmax(260px, 300px) minmax(0, 1fr); gap: 0 clamp(24px, 2.6vw, 44px); align-items: stretch; }
.mm-not__cols { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, .85fr) minmax(0, 1.1fr) minmax(0, 1fr); gap: 0 clamp(16px, 1.8vw, 28px); }
.mm-notcard { position: relative; isolation: isolate; overflow: hidden; display: flex; flex-direction: column; gap: 18px; padding: 24px 24px 22px; border-radius: var(--r-xl); background: var(--n-ground); color: var(--n-text); transition: transform .5s var(--ease-out), box-shadow .5s var(--ease-out); }
.mm-notcard::before { content: ""; position: absolute; z-index: -1; width: 120%; aspect-ratio: 1; right: -60%; top: -55%; background: radial-gradient(closest-side, rgba(107, 78, 255, .6), rgba(201, 184, 232, .2) 50%, rgba(201, 184, 232, 0) 72%); transition: transform 1.4s var(--ease-out); }
.mm-notcard:hover { transform: translateY(-2px); box-shadow: 0 18px 40px -20px rgba(107, 78, 255, .5); }
.mm-notcard:hover::before { transform: translate3d(-8%, 6%, 0); }
.mm-notcard:focus-visible { outline: 2px solid var(--ink); outline-offset: 3px; }
.mm-notcard__k { font-size: 12px; font-weight: 500; letter-spacing: .08em; text-transform: uppercase; color: var(--n-muted); }
.mm-notcard__t { font-size: clamp(24px, 2vw, 28px); line-height: 1.12; font-weight: 300; letter-spacing: -0.03em; color: #fff; }
.mm-notcard__list { display: grid; gap: 8px; margin-top: auto; }
.mm-notcard__list span { display: flex; align-items: center; gap: 10px; font-size: 14px; color: var(--n-text); }
.mm-notcard__list .ic { width: 16px; height: 16px; color: #fff; opacity: .85; }
.mm-notcard__f { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding-top: 14px; border-top: 1px solid rgba(255, 250, 240, .12); font-size: 14px; font-weight: 500; color: #fff; }
.mm-notcard__f .ic { width: 17px; height: 17px; transition: transform .4s var(--ease-out); }
.mm-notcard:hover .mm-notcard__f .ic { transform: translateX(3px); }
.mm-link--not { align-items: start; }
.mm-link--not .mm-tile { margin-top: 2px; }
.mm-link__get { color: var(--ink); }
.mm-link--not .mm-link__l { display: block; }

/* ---------- Narrow desktop ---------- */
/* Laptop widths: the service columns drop their icon tiles so names and outcomes keep to one line each */
@media (max-width: 1360px) {
  .mm-not .mm-link { grid-template-columns: minmax(0, 1fr); padding-block: 8px; }
  .mm-not .mm-link .mm-tile { display: none; }
  .mm-svc { grid-template-columns: minmax(0, 1fr) minmax(0, .9fr) minmax(0, 1.05fr) minmax(0, 1.1fr) minmax(240px, 270px); }
  .mm-svc .mm-link { grid-template-columns: minmax(0, 1fr); padding-block: 8px; }
  .mm-svc .mm-link .mm-tile { display: none; }
}
@media (max-width: 1180px) {
  .mm-not { grid-template-columns: 240px minmax(0, 1fr); }
  .mm-notcard__list { display: none; }
  .mm-svc { grid-template-columns: minmax(0, 1fr) minmax(0, .9fr) minmax(0, 1.05fr) minmax(0, 1.1fr) 232px; gap: 0 18px; }
  .mm-link__l { font-size: 12.5px; }
  .mm-work { grid-template-columns: minmax(0, 1fr) 420px; }
  .mm-inds { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .mm-card--tall { aspect-ratio: 16 / 7.8; }
  .mm-inds .mm-card__name { font-size: 17px; line-height: 22px; }
  .mm-new--foot .mm-link__l { display: none; }
  .mm-co { grid-template-columns: minmax(0, 1fr) minmax(0, .8fr) minmax(280px, 1fr); }
  .mm-facts a { flex-direction: column; gap: 4px; padding: 12px 14px; }
}
@media (max-height: 760px) {
  .mm__panel { padding-top: 26px; }
  .mm-card--tall { aspect-ratio: 3 / 3.6; }
  .mm-feat { min-height: 236px; }
}
@media (max-height: 760px) and (max-width: 1180px) {
  .mm-card--tall { aspect-ratio: 16 / 6.6; }
}

/* ---------- CSS fallback choreography (no GSAP) ---------- */
.mm--css .mm__panel { transition: opacity .25s var(--ease-out); }
.mm--css .mm__panel [data-mm-i] { opacity: 0; transform: translate3d(0, 10px, 0); transition: opacity .5s var(--ease-out), transform .7s var(--ease-out); transition-delay: calc(var(--i, 0) * 50ms + 70ms); }
.mm--css .mm__panel.is-on [data-mm-i] { opacity: 1; transform: none; }
.mm--css .mm__panel.is-out [data-mm-i] { transition-delay: 0s; transition-duration: .2s; }

/* ---------- Still: reduced motion or the footer toggle. Instant, no transforms. ---------- */
.mm--still .mm__clip, .mm--still .mm__edge, .mm--still .mm__panel, .mm--still [data-mm-i],
.paused .mm-ind, .paused .mm-scrim, .paused .mm-ph img, .paused .mm-card, .paused .mm-feat, .paused .mm-feat__layer,
.paused .mm-feat__txt, .paused .mm-dusk, .paused .mm-dusk__bg, .paused .mm-notcard, .paused .mm-notcard::before, .paused .mm-win, .paused .mm-new, .paused .mm-new__ph img,
.paused .acc__body, .paused .acc__inner, .paused .acc__chev { transition: none !important; }
.paused .mm-card:hover, .paused .mm-feat:hover, .paused .mm-dusk:hover, .paused .mm-new:hover, .paused .mm-new__ph img, .paused .mm-vig:hover .mm-win,
.paused .mm-dusk:hover .mm-dusk__bg, .paused .mm-ph img, .paused .mm-feat__txt { transform: none; }
.paused .mm-vig:hover .mm-win { transform: translate3d(0, -50%, 0); }
@media (prefers-reduced-motion: reduce) {
  .mm-card:hover, .mm-feat:hover, .mm-dusk:hover, .mm-dusk:hover .mm-dusk__bg, .mm-ph img, .mm-feat__txt, .mm-new:hover, .mm-new__ph img { transform: none !important; }
  .mm-vig:hover .mm-win { transform: translate3d(0, -50%, 0); }
}

/* Panels only exist on desktop */
@media (max-width: 960px) {
  .mm, .mm-scrim, .mm-ind { display: none; }
}

/* =========================================================================
   Mobile sheet: accordion
   ========================================================================= */
.sheet { overflow-y: auto; overscroll-behavior: contain; -webkit-overflow-scrolling: touch; }
.sheet > * { flex-shrink: 0; } /* the sheet is a flex column that scrolls; keep the head at its full 72px */
.sheet__head { position: sticky; top: 0; z-index: 2; background: var(--ground); }
.acc { border-bottom: 1px solid var(--line); }
.acc__head { display: flex; align-items: center; gap: 12px; width: 100%; padding: 12px 0; text-align: left; font-size: 34px; line-height: 1.2; font-weight: 300; letter-spacing: -0.03em; color: var(--ink); -webkit-tap-highlight-color: transparent; }
.acc__head > span:first-child { flex: 1; min-width: 0; }
.acc__here { width: 6px; height: 6px; border-radius: 50%; background: var(--accent); }
.acc__chev { display: grid; place-items: center; width: 36px; height: 36px; border-radius: 50%; background: #fff; box-shadow: inset 0 0 0 1px var(--line); transition: transform .5s var(--ease-out), background-color .3s; }
.acc__chev .ic { width: 18px; height: 18px; }
.acc.is-open .acc__chev { transform: rotate(180deg); background: var(--ink); color: #fff; box-shadow: none; }
.acc__body { display: grid; grid-template-rows: 0fr; transition: grid-template-rows .5s var(--ease-out); }
.acc.is-open .acc__body { grid-template-rows: 1fr; }
.acc__inner { min-height: 0; overflow: hidden; opacity: 0; transform: translate3d(0, -6px, 0); transition: opacity .3s var(--ease-out), transform .5s var(--ease-out); }
.acc.is-open .acc__inner { opacity: 1; transform: none; transition-delay: .06s; padding-bottom: 18px; }
.acc__h { display: flex; gap: 8px; margin: 14px 0 4px; font-size: 11.5px; font-weight: 500; letter-spacing: .08em; text-transform: uppercase; color: var(--muted); }
.acc__h b { font-weight: 500; color: var(--faint); }
.acc__h:first-child { margin-top: 2px; }
.acc__list { display: grid; }
.sheet__links .acc a { font-size: 16px; font-weight: 400; letter-spacing: 0; padding: 0; border-bottom: 0; } /* undo main.css .sheet__links a */
.acc__list li + li .acc__link { border-top: 1px solid rgba(28, 26, 24, .06); }
.sheet__links a.acc__link { display: grid; grid-template-columns: 44px minmax(0, 1fr); align-items: center; gap: 14px; min-height: 60px; padding: 8px 0; -webkit-tap-highlight-color: transparent; }
.acc__link:active { opacity: .6; }
.acc__ic, .acc__thumb { display: grid; place-items: center; width: 44px; height: 44px; border-radius: 12px; background: #fff; box-shadow: inset 0 0 0 1px var(--line); overflow: hidden; }
.acc__ic .ic { width: 19px; height: 19px; }
.acc__thumb { position: relative; background: linear-gradient(180deg, #D8CCD3, #C7B39F); box-shadow: none; }
.acc__thumb img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; opacity: 0; transition: opacity .5s var(--ease-out); }
.acc__thumb img.is-in { opacity: 1; }
.acc__t { display: grid; min-width: 0; }
.acc__n { display: flex; flex-wrap: wrap; align-items: center; gap: 4px 8px; font-size: 16px; line-height: 21px; font-weight: 500; color: var(--ink); }
.acc__facts { display: flex; flex-wrap: wrap; gap: 6px 18px; margin-top: 12px; font-size: 13px; color: var(--muted); }
.acc__facts b { font-weight: 500; color: var(--ink); font-variant-numeric: tabular-nums; }
.acc__l { font-size: 13px; line-height: 18px; color: var(--muted); overflow-wrap: anywhere; }
.acc__link[aria-current] .acc__n { color: var(--accent); }
.acc__conn { display: flex; align-items: center; gap: 10px; margin-top: 10px; font-size: 13px; line-height: 18px; color: var(--muted); }
.acc__conn + .acc__conn { margin-top: 6px; }
.acc__conn b { font-weight: 500; color: var(--ink); }
.sheet__links a.acc__more { display: inline-flex; align-items: center; gap: 8px; min-height: 44px; margin-top: 6px; font-size: 15px; font-weight: 500; color: var(--ink); }
.acc__more .ic { width: 17px; height: 17px; }
@media (max-width: 600px) {
  .sheet .container { padding-inline: 16px; }
  .acc__head { font-size: 30px; }
}
@media (prefers-reduced-motion: reduce) {
  .acc__body, .acc__inner, .acc__chev { transition: none !important; }
}
