/* MONARO LAB — "studio at night" (M-Lab CLAUDE.md, two visual languages). One face: Archivo.
   Ground is the dark of the room, ink is the white of the keys, violet is the light on the wall. */
@font-face {
  font-family: "Archivo";
  src: url("../fonts/Archivo-Variable.ttf") format("truetype");
  font-weight: 100 900;
  font-stretch: 62% 125%;
  font-display: swap;
}

:root {
  --ground: #0d0c10;
  --ground-2: #17151c;      /* one tone step up: open answers, panels */
  --ink: #efedf3;
  --muted: #b3aebd;         /* secondary text, still 4.5:1 on the ground */
  --accent: #b9a6e8;        /* the one quiet colour: only a selected / current state */
  --button: #efedf3;        /* the action colour: near-white with dark text; violet stays in the light of the room */
  --button-ink: #121013;
  /* the process accordion: one hue, dark to light */
  --v1: #2a0f52; --v2: #3d1873; --v3: #552596; --v4: #7036b8; --v5: #8d55d6;

  --step-small: clamp(0.875rem, 0.85rem + 0.1vw, 0.9375rem);
  --step-body: clamp(1.0625rem, 1rem + 0.25vw, 1.1875rem);
  --step-lead: clamp(1.25rem, 1.1rem + 0.7vw, 1.625rem);
  --step-head: clamp(2.25rem, 1.4rem + 3.4vw, 4.25rem);

  --margin: clamp(16px, 2.2vw, 32px);
  --gap-section: clamp(120px, 14vw, 200px);
  --ease-out: cubic-bezier(0.23, 1, 0.32, 1);
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  min-height: 100svh; display: flex; flex-direction: column;
  margin: 0;
  background: var(--ground);
  color: var(--ink);
  font: 400 var(--step-body)/1.55 "Archivo", system-ui, sans-serif;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
img, video { display: block; max-width: 100%; }
a { color: inherit; }
h1, h2, h3, p, ul, ol, dl, dd, figure, blockquote { margin: 0; }
ul, ol { padding: 0; list-style: none; }
button { font: inherit; color: inherit; }
:focus-visible { outline: 2px solid rgba(255, 255, 255, 0.55); outline-offset: 3px; }
::selection { background: rgba(255, 255, 255, 0.2); color: #fff; }

.wide { font-stretch: 125%; }
.semi { font-stretch: 112%; }
[hidden] { display: none !important; }
.visually-hidden { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

/* top bar: wordmark, a few links, one action */
.bar {
  position: fixed; z-index: 20; inset: 0 0 auto; transition: background-color 300ms;
  display: flex; align-items: center; justify-content: space-between;
  padding: 22px var(--margin);
  font-size: var(--step-small);
}
.bar::before { content: ""; position: absolute; inset: 0 0 -24px; z-index: -1; pointer-events: none; opacity: 0; transition: opacity 300ms;
  /* see-through, so the smoke carries on behind the bar instead of a flat strip; the blur keeps the bar's text clear */
  background: linear-gradient(rgba(13, 12, 16, 0.62) calc(100% - 24px), rgba(13, 12, 16, 0));
  -webkit-backdrop-filter: blur(14px); backdrop-filter: blur(14px);
  -webkit-mask-image: linear-gradient(#000 calc(100% - 24px), transparent); mask-image: linear-gradient(#000 calc(100% - 24px), transparent); }
.bar.scrolled::before { opacity: 1; }
.bar .where { color: var(--muted); font-weight: 400; font-stretch: 100%; letter-spacing: 0; }
.bar .home { font-weight: 600; font-stretch: 125%; letter-spacing: 0.02em; text-decoration: none; font-size: 1rem; }
/* the menu: two drop-downs (hover or click) and Telegram; on a phone, one "Меню" panel */
.menu { display: flex; gap: 32px; align-items: center; }
.menu a { text-decoration: none; }
.menu > a:hover, .drop-link:hover, .drop button:hover { color: #fff; }
/* the name opens the section's page; the caret (and hover) opens its list */
.drop { position: relative; display: flex; align-items: center; gap: 2px; }
.drop-link { padding: 8px 0; }
.drop button { background: none; border: 0; padding: 8px 4px 8px 6px; cursor: pointer; font-size: inherit; display: inline-flex; align-items: center; color: inherit; }
.caret { width: 7px; height: 7px; border-right: 1.5px solid currentColor; border-bottom: 1.5px solid currentColor; transform: translateY(-2px) rotate(45deg); transition: transform 250ms var(--ease-out); }
/* the bar's popovers share one look with the account menu and the beats menus: hairline edge, soft shadow,
   width of the content, the item text right under the parent's label */
.drop ul { position: absolute; z-index: 1; top: calc(100% + 4px); left: -21px; min-width: 200px; padding: 6px; background: #1d1a24;
  border: 1px solid rgba(255, 255, 255, 0.08); box-shadow: 0 16px 40px rgba(0, 0, 0, 0.45);
  opacity: 0; visibility: hidden; transform: translateY(6px);
  transition: opacity 120ms, transform 300ms var(--ease-out), visibility 0s 120ms; }
.drop ul a { display: flex; align-items: center; min-height: 40px; padding: 0 14px; white-space: nowrap; transition: color 160ms, background-color 160ms; }
.drop ul a:hover, .drop ul a:focus-visible { background: rgba(255, 255, 255, 0.06); color: #fff; outline: none; }
.drop ul::before { content: ""; position: absolute; inset: -10px 0 auto; height: 10px; }   /* keeps the hover across the gap */
.drop.open ul { z-index: 2; opacity: 1; visibility: visible; transform: none; transition: opacity 200ms, transform 300ms var(--ease-out), visibility 0s; }
.drop.open .caret { transform: translateY(1px) rotate(225deg); }
.menu-toggle { display: none; background: none; border: 0; color: var(--ink); cursor: pointer; width: 44px; height: 44px; padding: 0; margin-right: -10px; }
/* three bars; while the menu is open the outer two turn into a cross and the middle one fades */
.menu-toggle .bars { position: relative; display: block; width: 22px; height: 14px; margin: auto; }
.menu-toggle i { position: absolute; left: 0; right: 0; height: 1.5px; border-radius: 1px; background: currentColor;
  transition: transform 300ms var(--ease-out), opacity 200ms, top 300ms var(--ease-out); }
.menu-toggle i:nth-child(1) { top: 0; }
.menu-toggle i:nth-child(2) { top: 6.25px; }
.menu-toggle i:nth-child(3) { top: 12.5px; }
.menu-toggle[aria-expanded="true"] i:nth-child(1) { top: 6.25px; transform: rotate(45deg); }
.menu-toggle[aria-expanded="true"] i:nth-child(2) { opacity: 0; }
.menu-toggle[aria-expanded="true"] i:nth-child(3) { top: 6.25px; transform: rotate(-45deg); }
@media (max-width: 760px) {
  .bar { padding-block: 14px; }
  .menu-toggle { display: block; }
  .menu { display: none; position: absolute; top: 64px; left: 12px; right: 12px; flex-direction: column; align-items: stretch; gap: 0;
    padding: 12px 0; background: #18161e; box-shadow: 0 18px 50px rgba(0, 0, 0, 0.5); }
  .menu.open { display: flex; }
  .drop { flex-wrap: wrap; }
  .drop-link { flex: 1; padding: 12px 20px; font-weight: 600; }
  .drop button { padding: 12px 20px; }
  .drop ul { flex-basis: 100%; }
  .drop ul { position: static; box-shadow: none; background: none; border: 0; min-width: 0; padding: 0 0 8px; display: none; opacity: 1; visibility: visible; transform: none; }
  .drop ul::before { display: none; }
  .drop.open ul { display: block; }
  .drop ul a { padding: 10px 32px; }
  .menu > a { padding: 12px 20px; font-weight: 600; }
}

/* the one button shape on the page: square, solid */
.button {
  display: inline-flex; align-items: center; gap: 12px;
  padding: 16px 26px; min-height: 52px;
  background: var(--button); color: var(--button-ink); border: 0; border-radius: 0;
  font-weight: 600; font-size: 1rem; text-decoration: none; cursor: pointer;
  transition: transform 160ms var(--ease-out), background-color 160ms;
}
.button:active { transform: scale(0.97); }
/* hover: a lighter violet sweeps in from the left and the Telegram glyph lifts off a little, like a message
   being sent. Slow ease-out, no pointer tracking. Fine pointers only, so a tap never leaves it stuck. */
.button { position: relative; overflow: hidden; isolation: isolate; }
.button::before { content: ""; position: absolute; inset: 0; z-index: -1; background: #ffffff;
  transform: scaleX(0); transform-origin: 100% 50%; opacity: 0;
  /* hidden once folded: at a fractional width scaleX(0) still leaves a hairline at the edge */
  transition: transform 600ms cubic-bezier(0.16, 1, 0.3, 1), opacity 0s linear 600ms; }
.button .tg-icon { transition: transform 600ms cubic-bezier(0.16, 1, 0.3, 1); }
@media (hover: hover) and (pointer: fine) {
  .button:hover::before { transform: scaleX(1); transform-origin: 0 50%; opacity: 1; transition: transform 600ms cubic-bezier(0.16, 1, 0.3, 1), opacity 0s; }
  .button:hover .tg-icon { transform: translate(2px, -2px); }
}
.button.quiet { background: var(--ground-2); color: var(--ink); }
.button.quiet::before { background: #221f29; }

/* entrance: content is visible without script; with it, parts rise in once */
.js .rise { opacity: 0; transform: translateY(24px); }
.js .rise.in { opacity: 1; transform: none; transition: opacity 700ms var(--ease-out), transform 700ms var(--ease-out); }
@media (prefers-reduced-motion: reduce) {
  .js .rise { opacity: 1; transform: none; }
  * { transition-duration: 0ms !important; animation: none !important; }
}

/* Telegram: the Lucide "send" outline (ISC), same stroke family as the page icons */
.tg { display: inline-flex; align-items: center; gap: 8px; }
.tg-icon { width: 1.1em; height: 1.1em; fill: none; stroke: currentColor; flex: none; }

/* film grain on the room behind the content (under main, so never over the pictures, which carry their
   own still grain): it shifts a few times a second, like footage */
.grain { position: fixed; inset: -128px; z-index: 0; pointer-events: none; opacity: 0.055;
  background: url("../img/grain.png") 0 0 / 128px 128px;
  animation: grain 0.9s steps(6) infinite; }
@keyframes grain {
  0% { transform: translate3d(0, 0, 0); } 17% { transform: translate3d(-96px, 64px, 0); } 33% { transform: translate3d(80px, -112px, 0); }
  50% { transform: translate3d(-48px, 120px, 0); } 67% { transform: translate3d(112px, 32px, 0); } 83% { transform: translate3d(-120px, -64px, 0); } 100% { transform: translate3d(32px, 96px, 0); } }

main, footer { position: relative; z-index: 1; }

/* things that drift with the scroll (set by live.js) */
[data-drift] { will-change: transform; }

@media (prefers-reduced-motion: reduce) { .grain { animation: none !important; } }

/* floating contact button (until the chat bot is connected): appears after the first screen,
   steps aside while the contact section itself is on screen */
.fab { position: fixed; right: clamp(16px, 2.2vw, 32px); bottom: clamp(16px, 2.2vw, 32px); z-index: 25;
  display: inline-flex; align-items: center; gap: 0; height: 56px; padding: 0 17px; border-radius: 28px;
  background: var(--button); color: var(--button-ink); text-decoration: none; font-weight: 600;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.45);
  opacity: 0; transform: translateY(16px) scale(0.96); pointer-events: none;
  transition: opacity 300ms, transform 400ms var(--ease-out), background-color 200ms, gap 300ms var(--ease-out), padding 300ms var(--ease-out); }
.fab .tg-icon { width: 22px; height: 22px; translate: -1px 1px; }
.fab span { max-width: 0; overflow: hidden; white-space: nowrap; transition: max-width 400ms var(--ease-out); }
.fab.show { opacity: 1; transform: none; pointer-events: auto; }
.fab:hover, .fab:focus-visible { background: #fff; gap: 10px; padding: 0 24px 0 20px; }
.fab:hover span, .fab:focus-visible span { max-width: 120px; }
.fab:active { transform: scale(0.96); }
@media (hover: none) { .fab { gap: 10px; padding: 0 24px 0 20px; } .fab span { max-width: 120px; } }

/* The room behind every page: dark, with the violet glow of the wall behind the desk and a sound line
   drawn live across it (assets/room.js). On the entry page it is the whole picture; on the service pages
   it is quieter and sits behind the content. */
.room { position: fixed; inset: 0; z-index: -1; background: var(--ground); overflow: hidden; }
/* phones: the browser draws the page under its own bars too; the room reaches under them (the large
   viewport), so no strip of bare ground shows at the foot while the toolbar floats over it */
@supports (height: 100lvh) { .room { bottom: auto; height: 100lvh; } }
.room i { position: absolute; border-radius: 50%; opacity: 0; animation: glow-in 2.4s var(--ease-out) forwards, breathe 9s ease-in-out 2.4s infinite alternate; }
.room i:nth-child(1) { width: 46vmax; height: 30vmax; left: 8vw; top: 26vh; background: radial-gradient(closest-side, #33106a, rgba(51, 16, 106, 0)); }
.room i:nth-child(2) { width: 44vmax; height: 30vmax; right: 6vw; top: 34vh; background: radial-gradient(closest-side, #2c0e5e, rgba(44, 14, 94, 0)); animation-delay: 0.3s, 2.7s; }
.room i:nth-child(3) { width: 70vmax; height: 26vmax; left: 15vw; bottom: -18vmax; background: radial-gradient(closest-side, #1f0a44, rgba(31, 10, 68, 0)); animation-delay: 0.6s, 3s; }
@keyframes glow-in { to { opacity: var(--room-glow, 0.45); } }
@keyframes breathe { from { transform: scale(1) translate(0, 0); } to { transform: scale(1.12) translate(2vmax, -1.5vmax); } }
.room canvas { position: absolute; inset: 0; width: 100%; height: 100%; opacity: 0; animation: glow-in 3s var(--ease-out) 0.8s forwards; }
/* with the smoke running (room.js), the painted glows step aside */
.room.smoke i, .room.smoke .lamp { display: none; }   /* the smoke carries its own light */
.room.smoke canvas { --room-glow: 0.75; }   /* home */
.room.smoke.quiet canvas { --room-glow: 0.45; }   /* inner pages: a little quieter (the step between them is kept small) */
/* a soft light that follows the pointer, like moving a desk lamp (entry page only) */
.room .lamp { position: absolute; left: 0; top: 0; width: 26vmax; height: 26vmax; margin: -13vmax 0 0 -13vmax; border-radius: 50%;
  background: radial-gradient(closest-side, rgba(120, 60, 230, 0.11), rgba(120, 60, 230, 0)); /* taste-skill-ignore: pointer light */
  transform: translate3d(50vw, 50vh, 0); opacity: 0; transition: opacity 1200ms; will-change: transform; }
.room.live .lamp { opacity: 1; }
.room.quiet { --room-glow: 0.22; }
.room.quiet canvas { --room-glow: 0.4; }
@media (prefers-reduced-motion: reduce) {
  .room i, .room canvas { opacity: var(--room-glow, 0.45) !important; }
  .room .lamp { display: none; }
}

section[id] { scroll-margin-top: 96px; }
@media (prefers-reduced-motion: no-preference) { html, body { scroll-behavior: smooth; } }

/* headings rise from behind their own baseline as they arrive (live.js adds .is-in). The mask is in the
   markup, so nothing in the page is rebuilt and the text never reflows or jumps after the move. */
[data-lines] .mask { display: block; overflow: clip; padding-bottom: 0.12em; margin-bottom: -0.12em; }
[data-lines] .mask > span { display: block; }
@media (prefers-reduced-motion: no-preference) {
  .js [data-lines]:not(.is-in) .mask > span { transform: translateY(110%); }
  .js [data-lines].is-in .mask > span { transition: transform 1000ms cubic-bezier(0.16, 1, 0.3, 1) 80ms; }   /* just after the picture starts */
}

/* Scroll depth, run by the browser's compositor (scroll-driven animations): no script, no work on the
   main thread. Pictures drift slower than the page, headings and text a little ahead of it. Uses the
   individual `translate` property so it adds to the entrance transforms. Browsers without scroll
   timelines show the page still. */
@supports (animation-timeline: view()) {
  @media (prefers-reduced-motion: no-preference) {
    .service-media img, .service-media video { scale: 1.1; --travel: -6%; }  /* % of the picture: always inside its 1.1 scale margin */
    .service h1, .service h2 { --travel: 70px; }
    .service .lead { --travel: 45px; }
    .detail { --travel: 25px; }
    .process-intro, .faq h2 { --travel: 50px; }
    .strip { --travel: 30px; }
    .service-media img, .service-media video, .service h1, .service h2, .service .lead,
    .detail, .process-intro, .faq h2, .strip {
      animation: drift linear both; animation-timeline: view(); animation-range: cover;
    }
  }
}
@media (max-width: 760px) {
  .service h1, .service h2, .service .lead, .detail,
  .process-intro, .faq h2, .strip { animation: none; }
}
@keyframes drift { from { translate: 0 calc(var(--travel) * 0.7); } to { translate: 0 calc(var(--travel) * -0.7); } }

/* language switch, at the foot of every page (put in place of <!--langs--> by i18n/build.mjs):
   the current language and a caret; the list opens upwards, each language in its own name */
.langs { position: relative; font-size: var(--step-small); }
.langs summary { list-style: none; cursor: pointer; display: inline-flex; align-items: center; gap: 10px; padding: 6px 0; color: var(--muted); transition: color 200ms; }
.langs summary::-webkit-details-marker, .langs summary::marker { display: none; content: ""; }
.langs summary .caret { transform: translateY(1px) rotate(225deg); }
.langs[open] summary .caret { transform: translateY(-2px) rotate(45deg); }
.langs summary:hover, .langs[open] summary { color: var(--ink); }
.langs ul { position: absolute; bottom: 100%; left: -16px; margin-bottom: 8px; min-width: 180px; padding: 8px 0; background: #18161e; box-shadow: 0 18px 50px rgba(0, 0, 0, 0.5); z-index: 5; }
.langs[open] ul { animation: langs-in 220ms var(--ease-out); }
@keyframes langs-in { from { opacity: 0; transform: translateY(6px); } }
.langs a[data-lang] { display: block; padding: 9px 16px; color: var(--muted); text-decoration: none; }
.langs a[data-lang]:hover, .langs a[data-lang]:focus-visible { background: #221f2a; color: #fff; }
.langs a[data-lang][aria-current] { color: var(--ink); }
@media (max-width: 760px) { .langs ul { left: 0; } }
/* in the bar (the entry page on a phone, where its footer is hidden): before the menu button, opening downwards */
.bar .langs { display: none; }
.bar .langs summary { color: inherit; }
.bar .langs summary .caret { transform: translateY(-2px) rotate(45deg); }
.bar .langs[open] summary .caret { transform: translateY(1px) rotate(225deg); }
.bar .langs ul { bottom: auto; top: 100%; margin: 8px 0 0; left: auto; right: -16px; }
@keyframes langs-down { from { opacity: 0; transform: translateY(-6px); } }
.bar .langs[open] ul { animation-name: langs-down; }
/* phones: the language lives at the foot of the menu (the same links), the bar and the footer do not show it */
.bar .menu-langs, .bar .menu-acct { display: none; }
@media (max-width: 760px) {
  .bar .menu-acct { display: block; }
  .bar .menu-langs { display: flex; flex-wrap: wrap; padding: 8px 8px 0; margin-top: 8px; }
  .menu-langs a[data-lang] { padding: 10px 12px; font-weight: 600; }
  .menu-langs a[data-lang]:hover, .menu-langs a[data-lang]:focus-visible { background: none; }
  .footer .langs { display: none; }
}

/* the site footer (i18n/footer.html): the sections under the wordmark, the documents in two groups, then the
   copyright and the language on one hairline-separated line */
.footer { width: min(100% - 2 * var(--margin), 1360px); margin: 0 auto; padding: 56px 0 32px; color: var(--muted);
  font-size: var(--step-small); border-top: 1px solid rgba(255, 255, 255, 0.08); }
.footer a { text-decoration: none; color: var(--muted); transition: color 200ms; }
.footer a:hover, .footer a:focus-visible { color: var(--ink); }
.foot-cols { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 32px; }
.foot-col { display: flex; flex-direction: column; align-items: flex-start; gap: 12px; }
.footer .home, .foot-h { margin: 0 0 6px; color: var(--ink); font-size: var(--step-small); line-height: inherit; }
.footer .home { font-weight: 600; font-stretch: 125%; letter-spacing: 0.02em; }
.foot-h { font-weight: 500; }
.foot-base { display: flex; align-items: center; justify-content: space-between; gap: 24px; margin-top: 48px;
  padding-top: 20px; border-top: 1px solid rgba(255, 255, 255, 0.08); }
@media (max-width: 760px) {
  .footer { width: auto; margin: 0 16px; padding: 40px 0 32px; }
  .foot-cols { grid-template-columns: 1fr; gap: 32px; }
  .foot-base { margin-top: 36px; }
}
/* short pages: the footer sits on the real bottom of the screen (body is a column at least one screen tall) */
.footer { margin-top: auto; }

/* quantity: minus, the number, plus (cart panel and checkout) */
.stepper { display: inline-flex; align-items: center; background: var(--ground-2); }
.stepper button { width: 44px; height: 44px; background: none; border: 0; font-size: 1.25rem; cursor: pointer; transition: color 200ms, background-color 200ms; }
.stepper button:hover { background: #221f2a; color: #fff; }
.stepper button:disabled { opacity: 0.35; cursor: default; background: none; color: inherit; }
.stepper output { min-width: 40px; text-align: center; font-weight: 600; font-variant-numeric: tabular-nums; }

/* the cart: the bag in the bar (with the count once something is in it) and a panel from the right edge */
.bar .home { margin-right: auto; }
.cart-icon { width: 24px; height: 24px; flex: none; }
/* the cart and the account in one group at the right end of the bar */
.bar-icons { display: flex; align-items: center; gap: 18px; margin-left: 28px; }
.acct-wrap { position: relative; display: flex; }
/* the quick menu of the signed-in member: the look of the popovers on the beats page */
.acct-menu:not([hidden]) { position: absolute; z-index: 2; top: calc(100% + 12.7px); right: -1px; display: grid; min-width: 200px; padding: 6px; border-radius: 0; background: #1d1a24;
  border: 1px solid rgba(255, 255, 255, 0.08); box-shadow: 0 16px 40px rgba(0, 0, 0, 0.45); }
@keyframes acct-in { from { opacity: 0; transform: translateY(6px); } }
@media (prefers-reduced-motion: no-preference) { .acct-menu:not([hidden]) { animation: acct-in 200ms var(--ease-out); } }
.acct-menu::before { content: ""; position: absolute; inset: -14px 0 auto; height: 14px; }
.acct-menu a { display: flex; align-items: center; min-height: 40px; padding: 0 14px; border-radius: 0; color: var(--ink); font-size: var(--step-small); text-decoration: none; white-space: nowrap;
  transition: color 160ms, background-color 160ms; }
.acct-menu a:hover, .acct-menu a:focus-visible { background: rgba(255, 255, 255, 0.06); color: #fff; outline: none; }
.acct-menu hr { height: 1px; margin: 6px 8px; border: 0; background: rgba(255, 255, 255, 0.1); }
.acct-open { position: relative; display: inline-flex; align-items: center; justify-content: center; padding: 8px; margin: -8px; text-decoration: none; transition: color 200ms; }
.acct-open:hover { color: #fff; }
.acct-icon { width: 22px; height: 22px; flex: none; }
/* the initial: a quiet tinted disc the size of the line icons, so it doesn't outweigh the cart next to it */
.acct-avatar { width: 24px; height: 24px; margin: -1px; border-radius: 50%; overflow: hidden; display: grid; place-items: center;
  background: rgba(255, 255, 255, 0.12); color: var(--ink);
  font-size: 0.75rem; font-weight: 600; text-transform: uppercase; line-height: 1; transition: background-color 200ms, color 200ms; }
.acct-open:hover .acct-avatar { background: rgba(255, 255, 255, 0.2); color: #fff; }
.acct-avatar img { width: 100%; height: 100%; object-fit: cover; }
.acct-open.signed .acct-icon { display: none; }
.cart-open { position: relative; display: inline-flex; align-items: center; padding: 8px; margin: -8px; text-decoration: none; transition: color 200ms; }
.cart-open:hover { color: #fff; }
/* the count: a small ink pill on the bag's lower right corner, cut out of the icon by a ring of the ground colour */
.cart-count { position: absolute; bottom: 5px; right: 3px; min-width: 14px; height: 14px; padding: 0 3.5px; border-radius: 7px; display: grid; place-items: center;
  background: var(--ink); color: var(--ground); box-shadow: 0 0 0 2px var(--ground);
  font-size: 0.5625rem; font-weight: 700; line-height: 1; font-variant-numeric: tabular-nums; }
.cart-count:empty { display: none; }
.button .cart-icon { width: 1.2em; height: 1.2em; }

.cart-shade { position: fixed; inset: 0; z-index: 39; background: rgba(8, 7, 10, 0.6); opacity: 0; visibility: hidden;
  transition: opacity 300ms, visibility 0s 300ms; }
.cart-shade.open { opacity: 1; visibility: visible; transition: opacity 300ms; }
.cart { position: fixed; z-index: 40; inset: 0 0 0 auto; width: min(440px, 100%); display: flex; flex-direction: column;
  background: var(--ground-2); box-shadow: -30px 0 80px rgba(0, 0, 0, 0.45), inset 1px 0 0 rgba(255, 255, 255, 0.08); transform: translateX(100%); visibility: hidden;
  transition: transform 450ms cubic-bezier(0.16, 1, 0.3, 1), visibility 0s 450ms; }
.cart.open { transform: none; visibility: visible; transition: transform 450ms cubic-bezier(0.16, 1, 0.3, 1); }
.cart-lock, .cart-lock body { overflow: hidden; }
.cart-head { display: flex; align-items: center; justify-content: space-between; padding: 22px 28px; border-bottom: 1px solid rgba(255, 255, 255, 0.08); }
.cart-head h2 { font-size: 1.5rem; font-weight: 650; font-stretch: 112%; letter-spacing: -0.02em; }
.cart-x { width: 40px; height: 40px; margin-right: -10px; display: grid; place-items: center; background: none; border: 0; color: var(--ink); cursor: pointer; transition: color 200ms; }
.cart-x:hover, .cart-x:focus-visible { color: #fff; outline: none; }
.cart-x svg { width: 22px; height: 22px; }
.cart-items { flex: 1; overflow-y: auto; padding: 8px 28px; }
.cart-items:empty { flex: 0; padding: 0; }
.cart-row { display: grid; grid-template-columns: 1fr auto auto; align-items: center; gap: 14px 16px; padding: 20px 0; border-bottom: 1px solid rgba(255, 255, 255, 0.08); }
.cart-name { font-size: 1.25rem; font-weight: 650; font-stretch: 112%; }
.cart-name small { display: block; margin-top: 2px; font-size: var(--step-small); font-weight: 400; font-stretch: 100%; color: var(--muted); }
.cart-cover { width: 40px; height: 40px; object-fit: cover; vertical-align: middle; margin-right: 14px; }
.cart-price { justify-self: end; font-variant-numeric: tabular-nums; font-weight: 600; }
.cart-row .stepper { grid-column: 1 / -1; justify-self: start; background: #1f1c26; }
.cart-remove { width: 36px; height: 36px; margin-right: -8px; display: grid; place-items: center; background: none; border: 0; color: var(--muted); cursor: pointer; transition: color 200ms; }
.cart-remove:hover { color: #fff; }
.cart-remove svg { width: 18px; height: 18px; }
.cart-empty { flex: 1; padding: 32px 28px; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 24px; text-align: center; }
.cart-empty[hidden] { display: none; }
.cart-empty p { font-size: 1.5rem; font-weight: 650; font-stretch: 112%; letter-spacing: -0.02em; }
.cart-empty-actions { display: grid; gap: 12px; justify-items: stretch; }
.cart-empty-actions .button { justify-content: center; }
.cart-foot { display: grid; gap: 18px; padding: 24px 28px 28px; border-top: 1px solid rgba(255, 255, 255, 0.08); }
.cart-total { display: flex; justify-content: space-between; align-items: baseline; }
.cart-total span { font-weight: 600; }
.cart-total b { font-size: 1.75rem; font-weight: 650; font-stretch: 112%; letter-spacing: -0.02em; font-variant-numeric: tabular-nums; }
.cart-go { justify-content: center; }
@media (max-width: 760px) {
  /* the bag then the burger at the edge: 22px between the two glyphs, the burger's glyph on the page margin */
  .bar-icons { order: 8; gap: 22px; margin-left: auto; margin-right: 0; }
  .menu-toggle { order: 9; margin: 0 -10px 0 12px; }
  .menu-toggle .bars { width: 24px; }
  .bar-icons .acct-wrap { display: none; }
  .cart-head, .cart-items, .cart-foot, .cart-empty { padding-inline: 20px; }
}

/* moving between pages (nav.js): the page's content fades out, the bar and the smoke stay; the next page
   then plays its own entrances once, over the same smoke */
main, .footer, .fab { transition: opacity 320ms cubic-bezier(.45, 0, .25, 1); }
/* a page comes together in parts: the pictures surface first, then each heading rises (80 ms later), then
   its text, line after line (artists.js) */
@media (prefers-reduced-motion: no-preference) {
  .js .service-media { animation: media-in 700ms var(--ease-out) both; }
}
@keyframes media-in { from { opacity: 0; } }
html.leaving main, html.leaving .footer, html.leaving .fab { opacity: 0 !important; }
/* within the site the smoke goes on where it was: no fade-in from black on every page (room.js sets this) */
.room.carry canvas { animation: none; opacity: var(--room-glow, 0.45); transition: opacity 2200ms cubic-bezier(.45, 0, .25, 1); }
/* the content takes the focus after a page is swapped in (early.js), for screen readers; no ring for it */
main[tabindex="-1"]:focus { outline: none; }

/* no scrollbar on the page, in any browser (the wheel, trackpad, keys and touch still scroll).
   With a mouse or trackpad, macOS shows a classic scrollbar on the window that Safari never lets a page
   hide; so there the page scrolls inside the body instead of the window, and the body's bar can be hidden
   (early.js: monaroScroll reads and sets the position for every script). Phones keep the window scrolling:
   their bar overlays and fades by itself, and the address bar keeps collapsing. */
@media (hover: hover) and (pointer: fine) {
  html { height: 100%; overflow: hidden; }
  body { height: 100%; overflow-y: auto; overflow-x: hidden; overscroll-behavior-y: none; }
}
html, body { scrollbar-width: none; -ms-overflow-style: none; }
::-webkit-scrollbar { display: none; width: 0; height: 0; background: transparent; }   /* Safari, older Chrome */
