/* Burger menu, after osmo.supply (Kevin's recording, 18 Nov 2026): instead of a full-screen menu,
   a dark panel drops down from the top behind the nav bar, the page dimmed below.
   Desktop: three columns, the site's pages in a card, the selected work beside them, and a
   featured case card (BEA Awards 2026 finalist). Phones: the card, the cases, then two buttons.
   Built by megamenu.js on every page (site pages and the exported Next pages alike). */

.mm-dim {
  position: fixed;
  inset: 0;
  z-index: 54;
  background: rgb(0 0 0 / 0.55);
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.5s cubic-bezier(0.65, 0, 0.35, 1), visibility 0s 0.5s;
}
.mm {
  /* dark: pure black, its shades taken from black with white at low opacity (Kevin, 18 Nov 2026) */
  --mm-bg: #000;
  --mm-card: rgb(255 255 255 / 0.06);
  --mm-hover: rgb(255 255 255 / 0.12);
  --mm-line: rgb(255 255 255 / 0.1);
  --mm-muted: #848484;
  position: fixed;
  top: 16px;
  left: 12px;
  right: 12px;
  z-index: 55;
  max-height: calc(100svh - 12px);
  overflow: auto;
  padding: var(--mm-top, 110px) 20px 20px;
  border-radius: 12px;
  background: var(--mm-bg);
  color: #fff;
  visibility: hidden;
  /* the unfolding (bar outline -> page width -> full height) is a clip-path animation in megamenu.js */
  clip-path: inset(0 0 100% 0);
  scrollbar-width: none;
}
.mm::-webkit-scrollbar { display: none; }
/* light mode: the same panel in the site's light colours */
.mm.mm-light {
  --mm-bg: #f4f4f4;
  --mm-card: #fff;
  --mm-hover: #e6e6e6;
  --mm-line: rgb(0 0 0 / 0.1);
  --mm-muted: #848484;
  color: #181818;
}
.mm-light .mm-btn-light { background: #181818; color: #f4f4f4; }
.mm-light .mm-btn-light .mm-sq { background: #f4f4f4; color: #181818; }
.mm-light .mm-btn-dark { color: #181818; box-shadow: inset 0 0 0 1px rgb(0 0 0 / 0.2); }
.mm-light .mm-btn-dark .mm-sq { background: #181818; color: #f4f4f4; }
.mm-light .mm-btn-dark:hover { box-shadow: inset 0 0 0 1px #181818; }
.mm-light .mm-social a { color: #181818; }
/* V04, large screens (Kevin's feedback doc point 7): the header grows with the screen, so the
   logo, the buttons and the page's big type keep their proportions (1440 is the reference) */
@media (min-width: 1880px) { c-full-header > *, [data-nav-root] > *, .mm { zoom: 1.25; } }
@media (min-width: 2400px) { c-full-header > *, [data-nav-root] > *, .mm { zoom: 1.6; } }

/* V04 (Kevin, 20 Nov 2026): the theme switch of the site pages shows where it takes you, a sun
   on a dark page and a moon on a light one (the demo drew the opposite; same moves as there) */
c-theme-toggle svg mask circle { translate: 0 0 !important; }
c-theme-toggle svg > circle { scale: 1 !important; }
c-theme-toggle svg > g { scale: 0 !important; rotate: -45deg !important; opacity: 0 !important; }
[data-theme="dark"] c-theme-toggle svg mask circle { translate: 0.5rem -0.5rem !important; }
[data-theme="dark"] c-theme-toggle svg > circle { scale: 0.5 !important; }
[data-theme="dark"] c-theme-toggle svg > g { scale: 1 !important; rotate: 0deg !important; opacity: 1 !important; }

/* V04 (Kevin, 20 Nov 2026: "simple et fluide, les 2 traits se transforment en croix"): the MENU
   button's two lines slide to the middle and turn, in one smooth move, and back */
:is([data-menu-toggle], button[aria-label="Open menu"]) > span[aria-hidden="true"].relative > span {
  translate: none !important;
  transform: none !important;
  transition: top 0.45s cubic-bezier(0.65, 0, 0.35, 1), bottom 0.45s cubic-bezier(0.65, 0, 0.35, 1), rotate 0.45s cubic-bezier(0.65, 0, 0.35, 1) !important;
}
:is([data-menu-toggle], button[aria-label="Open menu"]) > span[aria-hidden="true"].relative > span:first-child { top: 0; rotate: 0deg; }
:is([data-menu-toggle], button[aria-label="Open menu"]) > span[aria-hidden="true"].relative > span:last-child { bottom: 0; rotate: 0deg; }
:is([data-menu-toggle], button[aria-label="Open menu"])[aria-expanded="true"] > span[aria-hidden="true"].relative > span:first-child { top: calc(50% - 0.5px); rotate: 45deg; }
:is([data-menu-toggle], button[aria-label="Open menu"])[aria-expanded="true"] > span[aria-hidden="true"].relative > span:last-child { bottom: calc(50% - 0.5px); rotate: -45deg; }
@media (max-width:-1px) { :is([data-menu-toggle], button[aria-label="Open menu"]) > span[aria-hidden="true"].relative > span { transition: none !important; } }

/* V04 (Kevin, 20 Nov 2026): no light/dark switch while the menu is open */
html.mm-open c-theme-toggle,
html.mm-open [data-nav-root] button[aria-label*="theme"] { display: none !important; }

/* V04: the open menu is always light, and the bar with it, whatever the page (megamenu.js) */
html:is(.mm-open, .mm-closing) c-full-header,
html:is(.mm-open, .mm-closing) c-full-header.theme-dark { color-scheme: light !important; }
/* the bar itself solid, the same grey as the panel under it, its logo and words dark (Kevin, 20 Nov 2026) */
html.mm-open [data-header-bar],
html.mm-open [data-nav-root] header { background: #f4f4f4 !important; color: #181818 !important; }

/* V04: sections forced light (the footer), the inverse of the demo's .theme-dark */
.theme-light { color-scheme: light; color: var(--color-theme-fg); }
html.mm-open:not([data-theme="dark"]) .mm-dim { background: rgb(0 0 0 / 0.3); }

html.mm-open .mm,
html.mm-closing .mm { visibility: visible; }

/* 1. the strips under the bar (ticker, BEA Awards) fold away first, on both kinds of pages, and
   come back last, once the panel has folded back into the bar */
html:is(.mm-open, .mm-closing) .mh-strips,
html:is(.mm-open, .mm-closing) .strips { height: 0; margin-top: 0; opacity: 0; overflow: clip; }
html.mm-open .mm-dim {
  opacity: 1;
  visibility: visible;
  transition: opacity 0.5s cubic-bezier(0.65, 0, 0.35, 1), visibility 0s;
}

.mm-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 20px;
}
.mm-col {
  display: flex;
  flex-direction: column;
  min-height: 440px;
  padding: 40px 44px 36px;
  border-radius: 10px;
}
.mm-card { background: var(--mm-card); }

/* the contents rise in a little after the panel opens */
.mm-col > *,
.mm-buttons {
  opacity: 0;
  transform: translateY(14px);
  transition: opacity 0.3s ease, transform 0.3s ease;
}
html.mm-open .mm-col > *,
html.mm-open .mm-buttons {
  opacity: 1;
  transform: none;
  transition: opacity 0.6s ease, transform 0.8s cubic-bezier(0.16, 1, 0.3, 1);
  /* 3. once the panel has reached the page's width and is growing down */
  transition-delay: calc(0.62s + var(--i, 0) * 0.06s);
}

.mm-label {
  margin: 0 0 18px;
  font-size: 11px;
  line-height: 1.5;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--mm-muted);
}
.mm-list { margin: 0; padding: 0; list-style: none; }
.mm-list li + li { border-top: 1px solid var(--mm-line); }
.mm-list a {
  display: flex;
  align-items: baseline;
  gap: 12px;
  padding: 14px 0;
  font-size: clamp(22px, 1.9vw, 28px);
  line-height: 1.15;
  letter-spacing: -0.03em;
  color: inherit;
  text-decoration: none;
  transition: opacity 0.3s ease, transform 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}
.mm-list a:hover { transform: translateX(6px); }
.mm-list a[aria-current="page"] { color: var(--mm-muted); }
.mm-list sup {
  font-size: 11px;
  letter-spacing: 0.04em;
  color: var(--mm-muted);
}
.mm-cases a { font-size: clamp(18px, 1.45vw, 22px); }
/* who we are, in place of the Selected work links (V04) */
/* the site's running text (--mh-body / .t-body: 16px, 1.5), smaller than before (Kevin, 20 Nov 2026) */
.mm-about { max-width: 40ch; margin: 0; font-size: 16px; line-height: 1.5; letter-spacing: -0.02em; }

.mm-foot {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px 28px;
  margin-top: auto;
  padding-top: 32px;
  font-size: 15px;
}
.mm-foot a { color: inherit; text-decoration: none; transition: opacity 0.3s ease; }
.mm-foot a:hover { opacity: 0.6; }
.mm-foot .mm-muted { color: var(--mm-muted); }

.mm-social { display: flex; gap: 6px; }
.mm-social a {
  display: grid;
  place-items: center;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: var(--mm-card);
  transition: background-color 0.3s ease;
}
.mm-social a:hover { background: var(--mm-hover); opacity: 1; }
.mm-social svg { width: 18px; height: 18px; }

/* featured case card */
.mm-feature { align-items: center; text-align: center; color: inherit; text-decoration: none; }
.mm-tag {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  margin: 0;
  font-size: 11px;
  line-height: 1;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  white-space: nowrap;
}
/* neon yellow with black text, in both modes (Kevin, 18 Nov 2026) */
.mm-tag b {
  padding: 4px 7px;
  border-radius: 4px;
  background: #e6ff3b; /* the BEA strip's neon yellow */
  color: #000;
  font-weight: 500;
}
.mm-feature h2 {
  margin: 26px 0 6px;
  font-size: clamp(34px, 3.2vw, 48px);
  font-weight: 400;
  line-height: 1;
  letter-spacing: -0.04em;
}
.mm-feature .mm-sub { margin: 0; font-size: 14px; color: var(--mm-muted); }
.mm-shot {
  position: relative;
  width: min(100%, 300px);
  aspect-ratio: 4 / 3;
  margin: 28px 0 0;
  overflow: hidden;
  border-radius: 8px;
}
.mm-shot img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.9s cubic-bezier(0.16, 1, 0.3, 1);
}
.mm-feature:hover .mm-shot img { transform: scale(1.04); }
/* buttons: the site's .btn (globals.css): label that rolls on hover, the arrow in a square */
.mm-btn {
  display: inline-flex;
  align-items: center;
  justify-content: space-between;
  gap: 17.5px;
  min-height: 44px;
  padding: 4.375px 4.375px 4.375px 17.5px;
  border-radius: 8px;
  font-size: 11px;
  font-weight: 500;
  line-height: 1.5;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  white-space: nowrap;
  text-decoration: none;
  transition: background-color 0.3s ease, box-shadow 0.3s ease;
}
.mm-sq { display: grid; place-items: center; width: 35px; height: 35px; border-radius: 5px; }
.mm-sq svg, .mm-ext svg { width: 7px; height: 7px; }
.mm-roll { position: relative; display: block; overflow: clip; }
.mm-roll > span { display: block; text-shadow: 0 1.5em currentColor; transition: transform 0.55s cubic-bezier(0.16, 1, 0.3, 1); }
:is(.mm-btn, .mm-feature):is(:hover, :focus-visible) .mm-roll > span { transform: translateY(-1.5em); }
/* .btn-inverse and .btn-ghost */
.mm-btn-light { background: #fff; color: #181818; }
.mm-btn-light .mm-sq { background: #181818; color: #fff; }
.mm-btn-dark { background: transparent; color: #fff; box-shadow: inset 0 0 0 1px rgb(255 255 255 / 0.4); }
.mm-btn-dark .mm-sq { background: rgb(255 255 255 / 0.1); color: #fff; }
.mm-btn-dark:hover { box-shadow: inset 0 0 0 1px #fff; }
.mm-ext { display: inline-grid; place-items: center; margin-left: 4px; vertical-align: 1px; }
.mm-feature .mm-shot + div { margin-top: 24px; }
.mm-buttons { display: none; }

/* phones and tablets (osmo.supply on mobile): the card, the cases, then two full-width buttons */
@media (width < 64rem) {
  .mm { left: 8px; right: 8px; padding: var(--mm-top, 96px) 8px 8px; }
  .mm-grid { grid-template-columns: minmax(0, 1fr); gap: 0; }
  .mm-col { min-height: 0; padding: 20px 22px 18px; }
  /* the featured case, compact, under the pages card: the yellow award strip on top, then the
     photo and the case side by side (Kevin, 19 Nov 2026) */
  .mm-feature {
    display: grid;
    grid-template-columns: 96px 1fr;
    grid-template-areas: "award award" "shot title" "shot sub";
    column-gap: 16px;
    align-items: start;
    margin-top: 8px;
    padding: 12px 12px 14px;
    text-align: left;
  }
  .mm-feature .mm-award { display: block; grid-area: award; margin-bottom: 12px; }
  .mm-feature .mm-tag, .mm-feature .mm-shot + div { display: none; }
  .mm-feature .mm-shot { grid-area: shot; width: 96px; margin: 0; border-radius: 6px; }
  .mm-feature h2 { grid-area: title; align-self: end; margin: 6px 0 4px; font-size: 22px; }
  .mm-feature .mm-sub { grid-area: sub; align-self: start; font-size: 13px; }
  .mm-cases-col { display: none; } /* a minimal menu on phones: no Selected work (Kevin, 19 Nov 2026) */
  .mm-label { margin-bottom: 8px; }
  .mm-list a { padding: 9px 0; font-size: 20px; }
  .mm-cases a { padding: 8px 0; font-size: 16px; }
  .mm-foot { padding-top: 14px; font-size: 14px; }
  .mm-social a { width: 38px; height: 38px; }
  .mm-buttons { display: grid; gap: 8px; margin-top: 8px; }
  .mm-buttons .mm-btn-dark { display: none; } /* no See all work: Let's create together sits right under the card */
  .mm-buttons .mm-btn { min-height: 50px; padding-block: 7px; }
}

/* while the menu is open the bar spans the panel's width (megamenu.js): the logo stays left and
   the buttons go right, whatever sat between them (the Next bar's divider stays by the logo) */
[data-mm-wide] { justify-content: flex-start !important; }
[data-mm-wide] > :last-child { margin-left: auto; }
/* and the thin divider after the logo goes while the menu is open (Kevin, 18 Nov 2026) */
[data-header-bar] span[aria-hidden].w-px,
header > span[aria-hidden].w-px { transition: opacity 0.3s ease; }
[data-mm-wide] span[aria-hidden].w-px { opacity: 0; }

/* the page's own cursors (the home's "Scroll down" ring, the cases' "Explore the case") stay away
   while the menu is open: only the system pointer over the menu (Kevin, 18 Nov 2026) */
html:is(.mm-open, .mm-closing) :is(.mh-cursor, .case-cursor) { opacity: 0 !important; transition: opacity 0.2s ease; }

/* (the Next pages' burger: the home's two lines and its cross, rules at the top of this file,
   V04, Kevin, 20 Nov 2026) */

@media (max-width:-1px) {
  .mm { clip-path: none; }
  .mm-col > *, html.mm-open .mm-col > *, .mm-buttons, html.mm-open .mm-buttons { transition: none; transform: none; }
}

/* the award strip (phones only, see above): the desktop bar's neon yellow ticker */
.mm-award { display: none; height: 24px; overflow: clip; border-radius: 5px; background: #e6ff3b; color: #111; }
.mm-award-track { display: flex; width: max-content; height: 100%; animation: mm-award 30s linear infinite; }
.mm-award-group { display: flex; }
.mm-award-item { display: inline-flex; align-items: center; gap: 6px; font-size: 10px; line-height: 24px; letter-spacing: 0.12em; text-transform: uppercase; white-space: nowrap; }
.mm-award-item svg { width: 14px; height: 9px; }
.mm-award-sep { padding: 0 12px; font-size: 8px; }
@keyframes mm-award { from { transform: translateX(0); } to { transform: translateX(-50%); } }

/* V04 (Kevin, 20 Nov 2026): the footer film card's button in white, black words and arrow square */
.foot-cta-btns .mm-btn { background: #fff !important; color: #181818 !important; box-shadow: none !important; }
.foot-cta-btns .mm-btn .mm-sq { background: #181818 !important; color: #fff !important; }
.foot-cta-btns .mm-btn:hover { background: rgb(255 255 255 / 0.88) !important; }
