/*
 * dreyv marketing design system (redesign-seals, Oct 2026).
 * Scoped under .mk so the product app (/app, /atlas, studio) is untouched.
 * Art world: still-life photography on warm cotton paper, deep violet accents.
 * Type: Newsreader (display serif, approved for dreyv) and Inter (text).
 */

.mk {
  --mk-paper: #efebe2;
  --mk-paper-light: #f6f3ec;
  --mk-paper-deep: #e6e0d4;
  --mk-ink: #2a0f73;
  --mk-ink-2: #4a3b7a;
  --mk-ink-3: #574b84;
  --mk-violet: #4b17c2;
  --mk-violet-hover: #3d10a6;
  --mk-night: #1e0a52;
  --mk-lilac: #e7e1f3;
  --mk-rule: rgba(42, 15, 115, 0.16);
  --mk-rule-strong: rgba(42, 15, 115, 0.32);
  --mk-on-night: #f4f0ff;
  --mk-on-night-2: #cfc4f0;
  --mk-radius: 999px;
  --mk-radius-sm: 14px;
  --mk-pad: clamp(20px, 4vw, 48px);
  --mk-max: 1200px;
  --mk-header-h: clamp(60px, 9vh, 88px);

  font-family: var(--mk-sans), system-ui, sans-serif;
  color: var(--mk-ink);
  background: var(--mk-paper);
  font-feature-settings: "kern", "liga", "calt";
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  min-height: 100dvh;
  position: relative;
}

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

:where(.mk) img {
  max-width: 100%;
  height: auto;
}

:where(.mk) a {
  color: inherit;
}

.mk-main {
  outline: none;
  display: block;
}

.mk :focus-visible {
  outline: 2px solid var(--mk-violet);
  outline-offset: 3px;
  border-radius: 6px;
}

.mk .mk-night :focus-visible,
.mk .mk-violet :focus-visible {
  outline-color: #ffffff;
}

/* ---------- Skip link ---------- */
.mk-skip {
  position: absolute;
  left: 12px;
  top: -80px;
  z-index: 100;
  background: #ffffff;
  color: var(--mk-ink);
  padding: 10px 16px;
  border-radius: 10px;
  font-size: 14px;
  font-weight: 500;
  text-decoration: none;
  box-shadow: 0 6px 24px rgba(42, 15, 115, 0.18);
}
.mk-skip:focus {
  top: 12px;
}

/* ---------- Type ---------- */
.mk-serif {
  font-family: var(--mk-serif), Georgia, serif;
  font-weight: 400;
  font-variation-settings: "opsz" 72;
  letter-spacing: -0.012em;
}

.mk-h1 {
  font-family: var(--mk-serif), Georgia, serif;
  font-weight: 400;
  font-variation-settings: "opsz" 72;
  letter-spacing: -0.018em;
  line-height: 1;
  margin: 0;
  color: var(--mk-ink);
  text-wrap: balance;
}

.mk-h2 {
  font-family: var(--mk-serif), Georgia, serif;
  font-weight: 400;
  font-variation-settings: "opsz" 72;
  letter-spacing: -0.014em;
  line-height: 1.04;
  font-size: clamp(38px, 5.6vw, 76px);
  margin: 0;
  text-wrap: balance;
}

.mk-h3 {
  font-family: var(--mk-serif), Georgia, serif;
  font-weight: 400;
  font-variation-settings: "opsz" 36;
  letter-spacing: -0.006em;
  line-height: 1.15;
  font-size: clamp(24px, 2.4vw, 32px);
  margin: 0;
  text-wrap: balance;
}

.mk-h4 {
  font-family: var(--mk-sans), system-ui, sans-serif;
  font-weight: 600;
  font-size: 17px;
  line-height: 1.35;
  margin: 0;
}

.mk-lede {
  font-size: clamp(17px, 1.5vw, 21px);
  line-height: 1.5;
  color: var(--mk-ink-2);
  margin: 0;
  text-wrap: pretty;
}

.mk-body {
  font-size: 17px;
  line-height: 1.62;
  color: var(--mk-ink-2);
  margin: 0;
  text-wrap: pretty;
}

.mk-small {
  font-size: 14px;
  line-height: 1.5;
  color: var(--mk-ink-3);
  margin: 0;
}

.mk-mono {
  font-family: ui-monospace, "SFMono-Regular", "JetBrains Mono", Menlo, Consolas, monospace;
  font-size: 0.9em;
  overflow-wrap: anywhere;
}

.mk-measure {
  max-width: 62ch;
}

.mk-center {
  text-align: center;
  margin-left: auto;
  margin-right: auto;
}

.mk-tnum {
  font-variant-numeric: tabular-nums;
}

.mk-link {
  color: var(--mk-violet);
  text-decoration: underline;
  text-decoration-thickness: 1px;
  text-underline-offset: 3px;
  text-decoration-color: rgba(75, 23, 194, 0.4);
  transition: text-decoration-color 160ms ease, color 160ms ease;
}
.mk-link:hover {
  text-decoration-color: currentColor;
}
.mk-night .mk-link {
  color: #ffffff;
  text-decoration-color: rgba(255, 255, 255, 0.45);
}

/* ---------- Buttons and pills ---------- */
.mk-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 48px;
  padding: 0 28px;
  border-radius: var(--mk-radius);
  font-family: var(--mk-sans), system-ui, sans-serif;
  font-size: 16px;
  font-weight: 500;
  line-height: 1;
  text-decoration: none;
  white-space: nowrap;
  cursor: pointer;
  border: 1px solid transparent;
  transition: background-color 160ms ease, color 160ms ease, border-color 160ms ease, transform 160ms ease;
}
.mk-btn:active {
  transform: translateY(1px);
}
.mk-btn-solid {
  background: var(--mk-violet);
  color: #ffffff;
}
.mk-btn-solid:hover {
  background: var(--mk-violet-hover);
}
.mk-btn-outline {
  background: transparent;
  color: var(--mk-ink);
  border-color: var(--mk-ink);
}
.mk-btn-outline:hover {
  background: rgba(42, 15, 115, 0.06);
}
.mk-btn-light {
  background: #ffffff;
  color: var(--mk-ink);
}
.mk-btn-light:hover {
  background: var(--mk-lilac);
}
.mk-btn-ghost-light {
  background: transparent;
  color: #ffffff;
  border-color: rgba(255, 255, 255, 0.55);
}
.mk-btn-ghost-light:hover {
  background: rgba(255, 255, 255, 0.1);
}
.mk-btn-sm {
  min-height: 38px;
  padding: 0 18px;
  font-size: 14px;
}

.mk-pill {
  display: inline-flex;
  align-items: center;
  height: 28px;
  padding: 0 calc(14px - 0.24em) 0 14px;
  border: 1px solid var(--mk-ink);
  border-radius: var(--mk-radius);
  font-size: 12px;
  font-weight: 500;
  letter-spacing: 0.24em;
  text-transform: uppercase;
  color: var(--mk-ink);
  line-height: 1;
}

.mk-tag {
  display: inline-flex;
  align-items: center;
  height: 26px;
  padding: 0 11px;
  border-radius: var(--mk-radius);
  border: 1px solid var(--mk-rule-strong);
  font-size: 13px;
  font-weight: 500;
  color: var(--mk-ink-2);
  line-height: 1;
  white-space: nowrap;
}

.mk-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  align-items: center;
}
.mk-actions-center {
  justify-content: center;
}

/* ---------- Header ---------- */
.mk-header {
  position: relative;
  z-index: 20;
  width: 100%;
}
.mk-header-overlay {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
}
.mk-header-inner {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  gap: 16px;
  height: var(--mk-header-h);
  padding: 0 var(--mk-pad);
  max-width: 1600px;
  margin: 0 auto;
}
.mk-logo {
  display: inline-flex;
  align-items: center;
  justify-self: start;
  text-decoration: none;
  border-radius: 6px;
}
.mk-logo img {
  display: block;
  height: 24px;
  width: auto;
}
/* Header wordmark: plain text "dreyv", as on the pre-redesign site (Urbanist 600, tight), in the Start free button violet. */
.mk-wordmark {
  font-family: var(--mk-wordmark), system-ui, sans-serif;
  font-weight: 600;
  font-size: 24px;
  line-height: 1;
  letter-spacing: -0.025em;
  text-transform: lowercase;
  color: var(--mk-violet);
  padding: 4px 0 6px;
  transition: color 160ms ease;
}
.mk-logo:hover .mk-wordmark {
  color: var(--mk-violet-hover);
}
.mk-nav {
  display: flex;
  gap: 28px;
  align-items: center;
}
.mk-nav a {
  font-size: 15px;
  font-weight: 450;
  color: var(--mk-ink);
  text-decoration: none;
  padding: 6px 0;
  border-bottom: 1px solid transparent;
  transition: border-color 160ms ease;
}
.mk-nav a:hover,
.mk-nav a[aria-current="page"] {
  border-bottom-color: var(--mk-ink);
}
.mk-header-end {
  justify-self: end;
  display: flex;
  align-items: center;
  gap: 12px;
}
.mk-signin {
  display: inline-flex;
  align-items: center;
  height: 38px;
  padding: 0 18px;
  border: 1px solid var(--mk-ink);
  border-radius: var(--mk-radius);
  font-size: 15px;
  font-weight: 450;
  color: var(--mk-ink);
  text-decoration: none;
  transition: background-color 160ms ease;
  white-space: nowrap;
}
.mk-signin:hover {
  background: rgba(42, 15, 115, 0.06);
}
.mk-menu {
  display: none;
  position: relative;
}
.mk-menu > summary {
  list-style: none;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  height: 38px;
  padding: 0 4px;
  font-size: 15px;
  font-weight: 450;
  color: var(--mk-ink);
  border-radius: 8px;
}
.mk-menu > summary::-webkit-details-marker {
  display: none;
}
.mk-menu-panel {
  position: absolute;
  right: 0;
  top: calc(100% + 8px);
  min-width: 200px;
  background: var(--mk-paper-light);
  border: 1px solid var(--mk-rule);
  border-radius: var(--mk-radius-sm);
  box-shadow: 0 18px 40px -18px rgba(42, 15, 115, 0.35);
  padding: 8px;
  display: grid;
}
.mk-menu-panel a {
  padding: 11px 12px;
  font-size: 16px;
  color: var(--mk-ink);
  text-decoration: none;
  border-radius: 8px;
}
.mk-menu-panel a:hover {
  background: rgba(42, 15, 115, 0.06);
}

@media (max-width: 820px) {
  .mk-header-inner {
    grid-template-columns: 1fr auto;
  }
  .mk-nav {
    display: none;
  }
  .mk-menu {
    display: block;
  }
  .mk-logo img {
    height: 22px;
  }
  .mk-wordmark {
    font-size: 22px;
  }
}

/* ---------- Heroes (home seals and inner pages) ----------
 * Every hero is exactly one screen: 100svh (dvh, then vh, as fallbacks).
 * Stacked, never overlaid: copy first, then an art area that takes the rest of the screen.
 * The art area is a size container. Inside it the photograph covers the area while the
 * still life stays fully in frame; when covering would crop the still life (very wide or very
 * tall areas) it switches to contain and the edges fade into the paper.
 * Checked with .harness/hero-fit.cjs: no rects intersect, hero height equals the viewport.
 */
.mk-hero,
.mk-phero {
  position: relative;
  display: flex;
  flex-direction: column;
  height: 100vh;
  height: 100dvh;
  height: 100svh;
  overflow: hidden;
  background: var(--mk-hero-bg, var(--mk-paper));
  isolation: isolate;
}
.mk-hero {
  --mk-hero-bg: #ede9e1;
}
.mk-hero-copy,
.mk-phero-copy {
  flex: none;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  padding: calc(var(--mk-header-h) + clamp(4px, 3vh, 48px)) var(--mk-pad) 0;
  padding: calc(var(--mk-header-h) + clamp(4px, 3svh, 48px)) var(--mk-pad) 0;
  position: relative;
  z-index: 1;
}
.mk-hero .mk-pill {
  margin-bottom: clamp(10px, 2.2vh, 24px);
  margin-bottom: clamp(10px, 2.2svh, 24px);
}
.mk-hero .mk-h1 {
  font-size: clamp(34px, min(11vw, 6.6vh), 56px);
  font-size: clamp(34px, min(11vw, 6.6svh), 56px);
  max-width: 11ch;
}
.mk-hero-sub,
.mk-phero-sub {
  margin: clamp(10px, 2.4vh, 28px) 0 0;
  margin: clamp(10px, 2.4svh, 28px) 0 0;
  font-size: clamp(15px, min(4.3vw, 2.4vh), 20px);
  font-size: clamp(15px, min(4.3vw, 2.4svh), 20px);
  line-height: 1.45;
  color: var(--mk-ink-2);
  text-wrap: balance;
}
.mk-hero-sub {
  max-width: 32ch;
}
.mk-phero-sub {
  max-width: 54ch;
}
.mk-hero .mk-btn,
.mk-phero .mk-actions {
  margin-top: clamp(14px, 2.8vh, 28px);
  margin-top: clamp(14px, 2.8svh, 28px);
}
.mk-phero .mk-actions {
  justify-content: center;
}
.mk-hero-note,
.mk-phero-meta {
  margin: clamp(8px, 1.4vh, 14px) 0 0;
  margin: clamp(8px, 1.4svh, 14px) 0 0;
  font-size: 13px;
  line-height: 1.4;
  color: var(--mk-ink-2);
}
.mk-phero .mk-h1 {
  font-size: clamp(30px, min(9vw, 6.4vh), 56px);
  font-size: clamp(30px, min(9vw, 6.4svh), 56px);
  max-width: 16ch;
}

@media (min-aspect-ratio: 6/5) {
  .mk-hero .mk-h1 {
    font-size: clamp(36px, min(7vw, 10vh), 112px);
    font-size: clamp(36px, min(7vw, 10svh), 112px);
    max-width: none;
    white-space: nowrap;
  }
  .mk-phero .mk-h1 {
    font-size: clamp(32px, min(5.6vw, 8.4vh), 92px);
    font-size: clamp(32px, min(5.6vw, 8.4svh), 92px);
    max-width: 18ch;
  }
  .mk-hero-sub,
  .mk-phero-sub {
    font-size: clamp(15px, min(1.5vw, 2.3vh), 20px);
    font-size: clamp(15px, min(1.5vw, 2.3svh), 20px);
  }
}

/*
 * Art area: whatever is left of the screen, as a size container.
 * The photograph is sized from four numbers about it: --art-a (width / height), --art-top (top of the
 * still life, 0 to 1), --art-sw (width of the still life, 0 to 1) and --art-cx (its centre, 0 to 1).
 *   wide areas: as wide as the area, unless that would crop the top of the still life;
 *   tall areas: taller than the area's width allows, so the still life fills the frame without cropping.
 * It is anchored to the bottom and centred on the still life. The area fades in from the paper above.
 */
.mk-hero-art,
.mk-phero-art {
  --art-a: 1.7917;
  --art-top: 0.6;
  --art-sw: 0.4;
  --art-cx: 0.5;
  --art-d: max(
    min(100cqw, 100cqh * var(--art-a) / (1.06 - var(--art-top))),
    min(100cqh * var(--art-a), 100cqw / (var(--art-sw) + 0.12))
  );
  position: relative;
  flex: 1 1 0;
  min-height: 0;
  margin-top: clamp(8px, 2vh, 28px);
  margin-top: clamp(8px, 2svh, 28px);
  container-type: size;
  overflow: hidden;
  -webkit-mask-image: linear-gradient(to bottom, transparent 0, #000 min(26%, 160px));
  mask-image: linear-gradient(to bottom, transparent 0, #000 min(26%, 160px));
}
.mk-hero-art picture,
.mk-phero-art picture {
  display: contents;
}
.mk-hero-art img,
.mk-phero-art img {
  position: absolute;
  bottom: 0;
  display: block;
  max-width: none;
  width: var(--art-d);
  height: auto;
  aspect-ratio: var(--art-a);
  left: clamp(min(0px, 100cqw - var(--art-d)), 50cqw - var(--art-d) * var(--art-cx), max(0px, 100cqw - var(--art-d)));
  -webkit-mask-image: linear-gradient(to bottom, transparent 0, #000 20%);
  mask-image: linear-gradient(to bottom, transparent 0, #000 20%);
}
/* When the photograph is narrower than the area, fade its sides into the paper. */
@container (min-aspect-ratio: 3.2) {
  .mk-hero-art img,
  .mk-phero-art img {
    -webkit-mask-image: linear-gradient(to right, transparent 0, #000 7%, #000 93%, transparent 100%),
      linear-gradient(to bottom, transparent 0, #000 20%);
    mask-image: linear-gradient(to right, transparent 0, #000 7%, #000 93%, transparent 100%),
      linear-gradient(to bottom, transparent 0, #000 20%);
    -webkit-mask-composite: source-in;
    mask-composite: intersect;
  }
}
/* Home: wide photograph of the seals and pen (1252x768). */
.mk-hero-art {
  --art-a: 1.6302;
  --art-top: 0.555;
  --art-sw: 0.82;
  --art-cx: 0.59;
}
/* Tall phones get the tall photograph (768x1376). */
@media (max-aspect-ratio: 1/2) {
  .mk-hero-art {
    --art-a: 0.5581;
    --art-top: 0.6;
    --art-sw: 0.92;
    --art-cx: 0.54;
  }
}

/* Compact variant for long reading pages (single guides): a short band, not a full screen. */
.mk-phero-compact {
  height: auto;
}
.mk-phero-compact .mk-phero-art {
  flex: none;
  height: clamp(140px, 28vh, 380px);
  height: clamp(140px, 28svh, 380px);
}

/* Short screens (phones on their side, small laptops): drop the small print. */
@media (max-height: 560px) {
  .mk-hero .mk-pill,
  .mk-hero-note,
  .mk-phero-meta {
    display: none;
  }
  .mk-hero-copy,
  .mk-phero-copy {
    padding-top: calc(var(--mk-header-h) + 2px);
  }
  .mk-hero .mk-btn,
  .mk-phero .mk-btn {
    min-height: 40px;
  }
}
@media (max-height: 560px) and (min-aspect-ratio: 3/2) {
  .mk-hero .mk-h1,
  .mk-phero .mk-h1 {
    font-size: clamp(26px, 8.5vh, 48px);
    font-size: clamp(26px, 8.5svh, 48px);
  }
  .mk-phero .mk-h1 {
    max-width: 30ch;
  }
  .mk-hero-sub,
  .mk-phero-sub {
    margin-top: 6px;
    font-size: 15px;
    max-width: 72ch;
  }
  .mk-phero-sub {
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
  }
  .mk-hero .mk-btn,
  .mk-phero .mk-actions {
    margin-top: 10px;
  }
}

/* ---------- Sections ---------- */
.mk-section {
  position: relative;
  padding: clamp(88px, 14vh, 168px) var(--mk-pad);
}
.mk-screen {
  min-height: 100vh;
  min-height: 100svh;
  display: flex;
  flex-direction: column;
  justify-content: center;
}
.mk-wrap {
  width: 100%;
  max-width: var(--mk-max);
  margin: 0 auto;
}
.mk-wrap-narrow {
  width: 100%;
  max-width: 860px;
  margin: 0 auto;
}
.mk-wrap-text {
  width: 100%;
  max-width: 720px;
  margin: 0 auto;
}
.mk-stack > * + * {
  margin-top: clamp(16px, 2.4vh, 24px);
}

.mk-bg-light {
  background: var(--mk-paper-light);
}
.mk-bg-deep {
  background: var(--mk-paper-deep);
}
.mk-bg-lilac {
  background: var(--mk-lilac);
}
.mk-night {
  background: var(--mk-night);
  color: var(--mk-on-night);
}
.mk-night .mk-h1,
.mk-night .mk-h2,
.mk-night .mk-h3,
.mk-night .mk-h4 {
  color: #ffffff;
}
.mk-night .mk-lede,
.mk-night .mk-body,
.mk-night .mk-small {
  color: var(--mk-on-night-2);
}
.mk-violet {
  background: var(--mk-violet);
  color: #ffffff;
}
.mk-violet .mk-h2,
.mk-violet .mk-h3 {
  color: #ffffff;
}
.mk-violet .mk-lede,
.mk-violet .mk-body {
  color: #efeaff;
}

/* ---------- Home v2: editorial sections after the hero ----------
 * Each section has its own generated still life and its own layout family:
 * split with a bleeding image (intent, team), offset split (proof), book plate (statement),
 * dark chapter with a rounded plate (signing, agents), wide band with an overlapping panel (Atlas),
 * large sentence (pricing), two-column questions, full-screen brand colour (close).
 * Mobile first (375): every section stacks copy, then image, with the image edge to edge.
 */
.hx {
  position: relative;
  padding: clamp(72px, 12vh, 160px) var(--mk-pad);
  grid-template-columns: minmax(0, 1fr);
}
.hx > * {
  min-width: 0;
}
.hx picture,
.hx-atlas picture {
  display: block;
}
.hx img,
.hx-atlas img {
  display: block;
  width: 100%;
  height: auto;
}
.hx-h2 {
  font-family: var(--mk-serif), Georgia, serif;
  font-weight: 400;
  font-variation-settings: "opsz" 72;
  letter-spacing: -0.016em;
  line-height: 1.02;
  font-size: clamp(40px, 6.4vw, 92px);
  margin: 0;
  text-wrap: balance;
}
.hx-body {
  margin: clamp(18px, 2.6vh, 28px) 0 0;
  max-width: 34ch;
  font-size: clamp(17px, 1.45vw, 21px);
  line-height: 1.55;
  color: var(--mk-ink-2);
  text-wrap: pretty;
}
.hx-caption {
  margin: 14px 0 0;
  font-family: var(--mk-serif), Georgia, serif;
  font-size: 15px;
  line-height: 1.4;
  color: var(--mk-ink-3);
}
/* Images that run to the screen edge on phones. */
.hx-intent-art,
.hx-proof-art picture,
.hx-team-art,
.hx-price-art {
  margin-left: calc(-1 * var(--mk-pad));
  margin-right: calc(-1 * var(--mk-pad));
}

/* Paper photos melt into the section on phones: soft top and bottom edges. */
.hx-intent-art img,
.hx-proof-art img,
.hx-team-art img,
.hx-price-art img {
  -webkit-mask-image: linear-gradient(to bottom, transparent 0, #000 12%, #000 88%, transparent 100%);
  mask-image: linear-gradient(to bottom, transparent 0, #000 12%, #000 88%, transparent 100%);
}

/* Intent */
.hx-intent {
  padding-bottom: 0;
  display: grid;
  gap: clamp(36px, 6vh, 64px);
}
.hx-quotes {
  list-style: none;
  margin: clamp(24px, 4vh, 44px) 0 0;
  padding: 0;
}
.hx-quotes li {
  font-family: var(--mk-sans), system-ui, sans-serif;
  font-weight: 500;
  font-size: clamp(18px, 1.6vw, 22px);
  line-height: 1.4;
  letter-spacing: -0.01em;
  color: var(--mk-violet);
  text-indent: -0.42em;
  padding-left: 0.42em;
}
.hx-quotes li + li {
  margin-top: 0.5em;
}

/* Proof */
.hx-proof {
  display: grid;
  gap: clamp(32px, 5vh, 56px);
}
.hx-proof-art {
  margin: 0;
}
.hx-proof-art .hx-caption {
  padding: 0;
}


/* Book plate */
.hx-plate {
  background: var(--mk-paper-light);
  display: grid;
  gap: clamp(36px, 6vh, 64px);
}
.hx-plate-fig {
  margin: 0;
}
.hx-plate-mat {
  background: var(--mk-paper);
  padding: clamp(14px, 3vw, 40px);
  box-shadow: 0 1px 0 var(--mk-rule), 0 30px 60px -40px rgba(42, 15, 115, 0.35);
}

/* Signing, the dark chapter */
.hx-sign {
  background: #1b1145;
  color: var(--mk-on-night);
  display: grid;
  gap: clamp(32px, 5vh, 56px);
}
.hx-sign .hx-h2,
.hx-agents .hx-h2 {
  color: #ffffff;
}
.hx-sign .hx-body,
.hx-agents .hx-body {
  color: var(--mk-on-night-2);
}
/* On the dark chapters the paper flat-lay sits as a clean rounded plate. */
.hx-sign-art img,
.hx-agents-art img {
  border-radius: clamp(14px, 1.6vw, 24px);
  box-shadow: 0 0 0 1px rgba(255, 255, 255, 0.08), 0 40px 80px -36px rgba(0, 0, 0, 0.65);
}

/* Team */
.hx-team {
  background: var(--mk-paper-deep);
  display: grid;
  gap: clamp(32px, 5vh, 56px);
}


/* Atlas band */
.hx-atlas {
  position: relative;
  background: #e9e6df;
  padding-bottom: clamp(64px, 10vh, 120px);
}
.hx-atlas-art img {
  -webkit-mask-image: linear-gradient(to bottom, transparent 0, #000 12%, #000 88%, transparent 100%);
  mask-image: linear-gradient(to bottom, transparent 0, #000 12%, #000 88%, transparent 100%);
}
.hx-atlas-panel {
  position: relative;
  margin: -48px var(--mk-pad) 0;
  background: var(--mk-paper-light);
  padding: clamp(28px, 4vw, 56px);
  box-shadow: 0 1px 0 var(--mk-rule), 0 30px 60px -40px rgba(42, 15, 115, 0.35);
}
.hx-atlas-panel .hx-h2 {
  font-size: clamp(34px, 4.6vw, 64px);
}
.hx-atlas-panel .mk-btn {
  margin-top: clamp(22px, 3vh, 32px);
}

/* Agents */
.hx-agents {
  background: #161535;
  color: var(--mk-on-night);
  display: grid;
  gap: clamp(32px, 5vh, 56px);
}
.hx-code {
  margin: clamp(24px, 4vh, 40px) 0 clamp(24px, 4vh, 36px);
  padding: 20px 0 20px 18px;
  border-left: 2px solid rgba(207, 196, 240, 0.4);
  font-family: ui-monospace, "SFMono-Regular", "JetBrains Mono", Menlo, Consolas, monospace;
  font-size: clamp(11px, 1.1vw, 14px);
  line-height: 1.7;
  color: #e6defc;
  white-space: pre;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  max-width: 100%;
}

/* Pricing */
.hx-price {
  display: grid;
  gap: clamp(32px, 5vh, 56px);
}
.hx-price-line {
  font-family: var(--mk-serif), Georgia, serif;
  font-weight: 400;
  font-variation-settings: "opsz" 72;
  letter-spacing: -0.014em;
  font-size: clamp(34px, 4.8vw, 72px);
  line-height: 1.1;
  margin: 0 0 clamp(28px, 4vh, 44px);
  text-wrap: balance;
}

/* Questions */
.hx-faq {
  display: grid;
  gap: clamp(28px, 5vh, 48px);
  border-top: 1px solid var(--mk-rule);
}

/* Close */
.hx-close {
  min-height: 100vh;
  min-height: 100svh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  gap: clamp(32px, 5vh, 48px);
  padding: clamp(72px, 12vh, 160px) var(--mk-pad);
}
.hx-close-line {
  font-family: var(--mk-serif), Georgia, serif;
  font-weight: 400;
  font-variation-settings: "opsz" 72;
  letter-spacing: -0.018em;
  line-height: 1.02;
  font-size: clamp(44px, 8vw, 128px);
  max-width: 14ch;
  margin: 0;
  color: #ffffff;
  text-wrap: balance;
}

/* Phones: tighter crops so the flat-lay objects read at small sizes. */
@media (max-width: 899px) {
  .hx-intent-art img {
    aspect-ratio: 1 / 1;
    object-fit: cover;
    object-position: 96% 50%;
  }
  .hx-atlas-art img {
    aspect-ratio: 3 / 2;
    object-fit: cover;
    object-position: 58% 50%;
  }
  .hx-atlas-panel {
    margin-top: -12px;
  }
}

/* ---------- Home v2, wide screens ---------- */
@media (min-width: 900px) {
  .hx-intent-art,
  .hx-proof-art picture,
  .hx-team-art,
  .hx-price-art {
    margin-left: 0;
    margin-right: 0;
  }
  .hx-intent,
  .hx-sign,
  .hx-agents {
    grid-template-columns: minmax(0, 5fr) minmax(0, 7fr);
    align-items: center;
    column-gap: clamp(32px, 5vw, 96px);
    padding-right: 0;
    padding-bottom: clamp(72px, 12vh, 160px);
  }
  .hx-intent-copy,
  .hx-sign-copy,
  .hx-agents-copy {
    max-width: 560px;
    justify-self: end;
    width: 100%;
  }
  /* Paper flat-lays that bleed off one side: the other three edges melt into the section. */
  .hx-intent-art img {
    -webkit-mask-image: linear-gradient(to right, transparent 0, #000 14%),
      linear-gradient(to bottom, transparent 0, #000 12%, #000 88%, transparent 100%);
    mask-image: linear-gradient(to right, transparent 0, #000 14%),
      linear-gradient(to bottom, transparent 0, #000 12%, #000 88%, transparent 100%);
    -webkit-mask-composite: source-in;
    mask-composite: intersect;
  }
  .hx-sign,
  .hx-agents {
    min-height: 100vh;
    min-height: 100svh;
  }
  .hx-sign,
  .hx-agents {
    align-items: center;
    padding-right: max(var(--mk-pad), 5vw);
  }
  .hx-sign-art,
  .hx-agents-art {
    width: 100%;
    max-width: 820px;
  }
  /* Paper photos on wide screens: fade the edge that meets the copy, and soften the plate. */
  .hx-team-art img {
    -webkit-mask-image: linear-gradient(to left, transparent 0, #000 14%),
      linear-gradient(to bottom, transparent 0, #000 12%, #000 88%, transparent 100%);
    mask-image: linear-gradient(to left, transparent 0, #000 14%),
      linear-gradient(to bottom, transparent 0, #000 12%, #000 88%, transparent 100%);
    -webkit-mask-composite: source-in;
    mask-composite: intersect;
  }
  .hx-price-art img {
    -webkit-mask-image: linear-gradient(to right, transparent 0, #000 12%, #000 88%, transparent 100%),
      linear-gradient(to bottom, transparent 0, #000 12%, #000 88%, transparent 100%);
    mask-image: linear-gradient(to right, transparent 0, #000 12%, #000 88%, transparent 100%),
      linear-gradient(to bottom, transparent 0, #000 12%, #000 88%, transparent 100%);
    -webkit-mask-composite: source-in;
    mask-composite: intersect;
  }
  .hx-agents {
    grid-template-columns: minmax(0, 6fr) minmax(0, 6fr);
  }

  .hx-proof {
    grid-template-columns: minmax(0, 7fr) minmax(0, 5fr);
    column-gap: clamp(32px, 5vw, 96px);
    align-items: end;
    padding-left: 0;
  }
  .hx-proof-art {
    order: 1;
  }
  .hx-proof-art .hx-caption {
    padding-left: var(--mk-pad);
  }
  .hx-proof-art img {
    -webkit-mask-image: linear-gradient(to left, transparent 0, #000 14%),
      linear-gradient(to bottom, transparent 0, #000 12%, #000 88%, transparent 100%);
    mask-image: linear-gradient(to left, transparent 0, #000 14%),
      linear-gradient(to bottom, transparent 0, #000 12%, #000 88%, transparent 100%);
    -webkit-mask-composite: source-in;
    mask-composite: intersect;
  }
  .hx-proof-copy {
    order: 2;
    padding-bottom: clamp(40px, 8vh, 120px);
    max-width: 520px;
  }

  .hx-plate {
    grid-template-columns: minmax(0, 6fr) minmax(0, 5fr);
    column-gap: clamp(40px, 7vw, 140px);
    align-items: start;
    max-width: 1440px;
    margin: 0 auto;
    padding-left: max(var(--mk-pad), 6vw);
    padding-right: max(var(--mk-pad), 6vw);
  }
  .hx-plate-copy {
    position: sticky;
    top: 12vh;
    padding-top: clamp(16px, 6vh, 80px);
  }
  .hx-plate .hx-h2 {
    font-size: clamp(56px, 7.6vw, 120px);
  }

  .hx-team {
    grid-template-columns: minmax(0, 7fr) minmax(0, 5fr);
    column-gap: clamp(32px, 5vw, 96px);
    align-items: start;
    padding-left: 0;
  }
  .hx-team-art {
    order: 1;
  }
  .hx-team-copy {
    order: 2;
    margin-top: clamp(80px, 22vh, 260px);
    max-width: 480px;
  }

  .hx-atlas {
    padding-bottom: clamp(80px, 14vh, 180px);
  }
  /* The map sits right of centre so the panel never covers the tablet. */
  .hx-atlas-art {
    width: 72%;
    margin-left: auto;
  }
  .hx-atlas-art img {
    -webkit-mask-image: linear-gradient(to right, transparent 0, #000 16%),
      linear-gradient(to bottom, transparent 0, #000 12%, #000 88%, transparent 100%);
    mask-image: linear-gradient(to right, transparent 0, #000 16%),
      linear-gradient(to bottom, transparent 0, #000 12%, #000 88%, transparent 100%);
    -webkit-mask-composite: source-in;
    mask-composite: intersect;
  }
  .hx-atlas-panel {
    position: absolute;
    left: max(var(--mk-pad), 6vw);
    bottom: clamp(40px, 7vh, 96px);
    margin: 0;
    max-width: 520px;
  }

  .hx-price {
    grid-template-columns: minmax(0, 7fr) minmax(0, 5fr);
    column-gap: clamp(32px, 5vw, 96px);
    align-items: center;
    max-width: 1440px;
    margin: 0 auto;
  }

  .hx-faq {
    grid-template-columns: minmax(0, 4fr) minmax(0, 8fr);
    column-gap: clamp(32px, 6vw, 120px);
    align-items: start;
    max-width: 1320px;
    margin: 0 auto;
    border-top: 0;
  }
  .hx-faq .hx-h2 {
    position: sticky;
    top: 12vh;
  }
}
@media (min-width: 1500px) {
  .hx-intent-copy,
  .hx-sign-copy,
  .hx-agents-copy {
    max-width: 620px;
  }
}

/* ---------- Code ---------- */
.mk-code {
  margin: 0;
  text-align: left;
  font-family: ui-monospace, "SFMono-Regular", "JetBrains Mono", Menlo, Consolas, monospace;
  font-size: 14px;
  line-height: 1.6;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.16);
  border-radius: var(--mk-radius-sm);
  padding: 20px 22px;
  overflow-x: auto;
  color: #efeaff;
  white-space: pre;
  max-width: 100%;
}
.mk-code-light {
  background: #fbfaf6;
  border-color: var(--mk-rule);
  color: #2b2147;
}
.mk-code-wrap {
  white-space: pre-wrap;
  overflow-wrap: anywhere;
}

/* ---------- Divided lists ---------- */
.mk-list {
  list-style: none;
  margin: 0;
  padding: 0;
  border-top: 1px solid var(--mk-rule);
}
.mk-list > li {
  border-bottom: 1px solid var(--mk-rule);
  padding: clamp(18px, 2.6vh, 28px) 0;
}
.mk-night .mk-list,
.mk-night .mk-list > li {
  border-color: rgba(255, 255, 255, 0.16);
}
.mk-row {
  overflow-wrap: anywhere;
  display: grid;
  grid-template-columns: minmax(0, 5fr) minmax(0, 7fr);
  gap: clamp(12px, 3vw, 48px);
  align-items: baseline;
}
@media (max-width: 760px) {
  .mk-row {
    grid-template-columns: minmax(0, 1fr);
    gap: 8px;
  }
}
.mk-row-link {
  text-decoration: none;
  border-radius: 8px;
}
.mk-row-link:hover .mk-h3,
.mk-row-link:hover .mk-h4 {
  color: var(--mk-violet);
}
.mk-arrow {
  display: inline-block;
  transition: transform 160ms ease;
}
a:hover .mk-arrow {
  transform: translateX(3px);
}

.mk-split {
  display: grid;
  grid-template-columns: minmax(0, 4fr) minmax(0, 8fr);
  gap: clamp(24px, 5vw, 80px);
  align-items: start;
}
@media (max-width: 900px) {
  .mk-split {
    grid-template-columns: minmax(0, 1fr);
  }
}
.mk-sticky {
  position: sticky;
  top: 32px;
}
@media (max-width: 900px) {
  .mk-sticky {
    position: static;
  }
}

.mk-two {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: clamp(20px, 3vw, 40px);
}
@media (max-width: 860px) {
  .mk-two {
    grid-template-columns: minmax(0, 1fr);
  }
}

/* ---------- FAQ ---------- */
.mk-faq details {
  border-bottom: 1px solid var(--mk-rule);
}
.mk-faq details:first-of-type {
  border-top: 1px solid var(--mk-rule);
}
.mk-faq summary {
  list-style: none;
  cursor: pointer;
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 20px;
  padding: 22px 0;
  font-family: var(--mk-serif), Georgia, serif;
  font-variation-settings: "opsz" 36;
  font-size: clamp(20px, 2vw, 26px);
  line-height: 1.25;
  color: var(--mk-ink);
  text-align: left;
}
.mk-faq summary::-webkit-details-marker {
  display: none;
}
.mk-faq summary::after {
  content: "+";
  font-family: var(--mk-sans), system-ui, sans-serif;
  font-size: 22px;
  font-weight: 300;
  color: var(--mk-violet);
  flex: none;
  transition: transform 180ms ease;
}
.mk-faq details[open] summary::after {
  transform: rotate(45deg);
}
.mk-faq details p {
  margin: 0 0 24px;
  max-width: 64ch;
  font-size: 17px;
  line-height: 1.62;
  color: var(--mk-ink-2);
  text-align: left;
}

/* ---------- Pricing table ---------- */
.mk-tiers {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  border-top: 1px solid var(--mk-rule-strong);
}
.mk-tier {
  padding: clamp(24px, 3vw, 40px) clamp(18px, 2.4vw, 36px) clamp(28px, 3vw, 40px);
  display: flex;
  flex-direction: column;
  border-right: 1px solid var(--mk-rule);
}
.mk-tier:first-child {
  padding-left: 0;
}
.mk-tier:last-child {
  border-right: 0;
  padding-right: 0;
}
.mk-tier-featured {
  box-shadow: inset 0 3px 0 var(--mk-violet);
}
.mk-tier-price {
  font-family: var(--mk-serif), Georgia, serif;
  font-variation-settings: "opsz" 72;
  font-size: clamp(48px, 5vw, 72px);
  line-height: 1;
  margin: 18px 0 6px;
  letter-spacing: -0.02em;
}
.mk-tier-price span {
  font-family: var(--mk-sans), system-ui, sans-serif;
  font-size: 16px;
  color: var(--mk-ink-3);
  letter-spacing: 0;
  margin-left: 6px;
}
.mk-tier ul {
  list-style: none;
  margin: 22px 0 28px;
  padding: 0;
  flex: 1;
}
.mk-tier li {
  padding: 10px 0;
  border-top: 1px solid var(--mk-rule);
  font-size: 15.5px;
  color: var(--mk-ink-2);
}
@media (max-width: 900px) {
  .mk-tiers {
    grid-template-columns: minmax(0, 1fr);
  }
  .mk-tier,
  .mk-tier:first-child,
  .mk-tier:last-child {
    padding-left: 0;
    padding-right: 0;
    border-right: 0;
    border-bottom: 1px solid var(--mk-rule);
  }
}

.mk-meter {
  height: 4px;
  border-radius: 4px;
  background: rgba(42, 15, 115, 0.12);
  overflow: hidden;
}
.mk-meter > span {
  display: block;
  height: 100%;
  background: var(--mk-violet);
}

/* ---------- Compare table ---------- */
.mk-table-wrap {
  overflow-x: auto;
  border-top: 1px solid var(--mk-rule-strong);
}
.mk-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 15.5px;
  min-width: 640px;
}
.mk-table th,
.mk-table td {
  padding: 15px 12px;
  border-bottom: 1px solid var(--mk-rule);
  text-align: center;
  vertical-align: middle;
}
.mk-table thead th {
  font-weight: 600;
  font-size: 14px;
  color: var(--mk-ink-2);
  padding-top: 18px;
}
.mk-table th[scope="row"] {
  text-align: left;
  font-weight: 450;
  color: var(--mk-ink);
  padding-left: 0;
}
.mk-table .mk-col-us {
  background: rgba(75, 23, 194, 0.07);
  color: var(--mk-violet);
}
.mk-yes,
.mk-no,
.mk-partial {
  display: inline-block;
  font-size: 14px;
  font-weight: 500;
}
.mk-yes {
  color: var(--mk-violet);
}
.mk-no {
  color: #6f6694;
}
.mk-partial {
  color: var(--mk-ink-3);
}

/* ---------- Forms ---------- */
.mk-form {
  display: grid;
  gap: 22px;
  text-align: left;
}
.mk-form-row {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 22px;
}
@media (max-width: 640px) {
  .mk-form-row {
    grid-template-columns: minmax(0, 1fr);
  }
}
.mk-label {
  display: block;
  font-size: 14px;
  font-weight: 600;
  color: var(--mk-ink);
  margin-bottom: 8px;
}
.mk-input {
  width: 100%;
  min-height: 48px;
  border-radius: 12px;
  border: 1px solid var(--mk-rule-strong);
  background: #fbfaf6;
  padding: 12px 14px;
  font: inherit;
  font-size: 16px;
  color: var(--mk-ink);
  transition: border-color 160ms ease, box-shadow 160ms ease;
}
.mk-input::placeholder {
  color: #7d739f;
}
.mk-input:focus {
  outline: none;
  border-color: var(--mk-violet);
  box-shadow: 0 0 0 3px rgba(75, 23, 194, 0.18);
}
.mk-chip {
  display: inline-flex;
  align-items: center;
  min-height: 40px;
  padding: 0 16px;
  border-radius: var(--mk-radius);
  border: 1px solid var(--mk-rule-strong);
  background: transparent;
  color: var(--mk-ink);
  font: inherit;
  font-size: 15px;
  cursor: pointer;
}
.mk-chip[aria-pressed="true"] {
  background: var(--mk-violet);
  border-color: var(--mk-violet);
  color: #ffffff;
}
.mk-error {
  font-size: 13.5px;
  color: #a1123b;
  margin: 6px 0 0;
}

/* ---------- Prose (guides, legal) ---------- */
.mk-prose {
  font-size: 18px;
  line-height: 1.7;
  color: var(--mk-ink-2);
}
.mk-prose > * + * {
  margin-top: 1.1em;
}
.mk-prose h2 {
  font-family: var(--mk-serif), Georgia, serif;
  font-variation-settings: "opsz" 48;
  font-weight: 400;
  font-size: clamp(28px, 3vw, 38px);
  line-height: 1.15;
  color: var(--mk-ink);
  margin-top: 2em;
  letter-spacing: -0.01em;
}
.mk-prose h3 {
  font-size: 20px;
  font-weight: 600;
  color: var(--mk-ink);
  margin-top: 1.8em;
}
.mk-prose ul,
.mk-prose ol {
  padding-left: 1.25em;
}
.mk-prose ul {
  list-style: disc;
}
.mk-prose ol {
  list-style: decimal;
}
.mk-prose li + li {
  margin-top: 0.5em;
}
.mk-prose li::marker {
  color: var(--mk-violet);
}
.mk-prose strong {
  color: var(--mk-ink);
  font-weight: 600;
}
.mk-prose a {
  color: var(--mk-violet);
  text-decoration: underline;
  text-underline-offset: 3px;
  text-decoration-color: rgba(75, 23, 194, 0.4);
}
.mk-prose code {
  font-family: ui-monospace, Menlo, Consolas, monospace;
  font-size: 0.88em;
  background: rgba(42, 15, 115, 0.06);
  padding: 0.1em 0.35em;
  border-radius: 5px;
  overflow-wrap: anywhere;
}
.mk-prose pre {
  background: #fbfaf6;
  border: 1px solid var(--mk-rule);
  border-radius: var(--mk-radius-sm);
  padding: 18px;
  overflow-x: auto;
  font-size: 14px;
}
.mk-prose pre code {
  background: none;
  padding: 0;
}
.mk-prose table {
  width: 100%;
  border-collapse: collapse;
  font-size: 15.5px;
  display: block;
  overflow-x: auto;
}
.mk-prose th,
.mk-prose td {
  border-bottom: 1px solid var(--mk-rule);
  padding: 10px 12px 10px 0;
  text-align: left;
  vertical-align: top;
}
.mk-prose blockquote {
  margin-left: 0;
  padding-left: 20px;
  border-left: 2px solid var(--mk-violet);
  color: var(--mk-ink);
}

/* ---------- Footer (round 2, concept B: vignettes on a dotted path) ---------- */
.mk-footer {
  position: relative;
  overflow: hidden;
  isolation: isolate;
  color: var(--mk-ink);
  background:
    radial-gradient(110% 80% at 50% 0%, rgba(250, 248, 242, 0.85), rgba(250, 248, 242, 0) 70%),
    url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='220' height='220'><filter id='n'><feTurbulence type='fractalNoise' baseFrequency='.85' numOctaves='3' stitchTiles='stitch'/><feColorMatrix values='0 0 0 0 .35  0 0 0 0 .3  0 0 0 0 .22  0 0 0 .07 0'/></filter><rect width='100%' height='100%' filter='url(%23n)'/></svg>"),
    var(--mk-paper);
  /* The drawing is 2400x1018 and pinned to the bottom edge. Its centre band
     (27% to 73% of the width) is clear above ~45% of its height, so the text
     column stays inside that band and the bottom padding keeps it above. */
  padding: clamp(56px, 5vw, 80px) var(--mk-pad) calc(24vw + 16px);
}
.mk-ft-art {
  position: absolute;
  z-index: 0;
  left: 0;
  width: 100%;
  pointer-events: none;
  user-select: none;
  mix-blend-mode: multiply;
}
.mk-ft-art img {
  display: block;
  width: 100%;
  height: auto;
}
.mk-ft-art-d {
  bottom: 0;
}
.mk-ft-art-m {
  display: none;
}
.mk-ft-inner {
  position: relative;
  z-index: 1;
  max-width: min(720px, 46vw);
  margin: 0 auto;
  text-align: center;
}
.mk-ft-brand {
  display: grid;
  justify-items: center;
}
.mk-ft-logo img {
  display: block;
  width: 132px;
  height: auto;
}
.mk-ft-tag {
  font-family: var(--mk-serif), Georgia, serif;
  font-weight: 400;
  font-size: 22px;
  line-height: 1.3;
  letter-spacing: -0.005em;
  margin: 18px 0 0;
  max-width: 34ch;
  color: var(--mk-ink);
  text-wrap: pretty;
}
.mk-ft-place {
  margin: 12px 0 0;
  font-size: 14px;
  color: var(--mk-ink-3);
}
.mk-ft-cols {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr)) minmax(0, 1.3fr);
  gap: 32px;
  text-align: left;
  margin: 38px auto 0;
  max-width: 680px;
}
.mk-ft-col h2 {
  font-family: var(--mk-serif), Georgia, serif;
  font-weight: 500;
  font-size: 18px;
  letter-spacing: -0.005em;
  margin: 0 0 12px;
  color: var(--mk-ink);
}
.mk-ft-col ul,
.mk-socials {
  list-style: none;
  margin: 0;
  padding: 0;
}
.mk-ft-col ul {
  display: grid;
  gap: 9px;
}
.mk-footer a {
  text-decoration: none;
  color: var(--mk-ink-2);
  font-size: 15px;
}
.mk-footer a:hover {
  color: var(--mk-violet);
  text-decoration: underline;
  text-underline-offset: 3px;
}
.mk-ft-mail {
  font-style: normal;
}
.mk-ft-mail dl {
  display: grid;
  gap: 9px;
  margin: 0;
}
.mk-ft-mail dl > div {
  display: grid;
  gap: 1px;
}
.mk-ft-mail dt {
  font-size: 12.5px;
  color: var(--mk-ink-3);
}
.mk-ft-mail dd {
  margin: 0;
}
.mk-ft-bar {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  align-items: center;
  gap: 12px 28px;
  margin-top: 34px;
}
.mk-socials {
  display: flex;
  flex-wrap: wrap;
  gap: 20px;
}
.mk-footer .mk-socials a {
  font-size: 14.5px;
  font-weight: 500;
  color: var(--mk-ink);
}
.mk-ft-copy {
  margin: 0;
  font-size: 13px;
  color: var(--mk-ink-3);
}
/* Tablet and small laptop: same drawing, links in a 2x2 grid so the column
   stays inside the clear centre band. */
@media (max-width: 1199px) {
  .mk-ft-cols {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 28px 24px;
    max-width: 440px;
  }
  .mk-ft-tag {
    font-size: 21px;
  }
}
/* Phones: top piece, dotted line down the left edge, bottom piece. */
@media (max-width: 700px) {
  .mk-footer {
    padding: 45vw 22px 54vw max(66px, calc(9.4vw + 30px));
  }
  .mk-ft-art-d {
    display: none;
  }
  .mk-ft-art-m {
    display: block;
  }
  .mk-ft-art-m-top {
    top: 0;
  }
  .mk-ft-art-m-bot {
    bottom: 0;
  }
  .mk-ft-art-m-mid {
    top: 59.8vw;
    bottom: 54.1vw;
    background: url("/art/footer-ink-m-mid.png") 0 0 / 100% auto repeat-y;
  }
  .mk-ft-inner {
    max-width: none;
    text-align: left;
  }
  .mk-ft-brand {
    justify-items: start;
  }
  .mk-ft-cols {
    grid-template-columns: minmax(0, 1fr) max-content;
    gap: 32px 18px;
    margin-top: 34px;
    max-width: none;
  }
  .mk-ft-bar {
    flex-direction: column;
    align-items: flex-start;
    gap: 14px;
  }
}

/* ---------- Motion (minimal, CSS only) ---------- */
@keyframes mk-rise {
  from {
    opacity: 0;
    transform: translateY(10px);
  }
  to {
    opacity: 1;
    transform: none;
  }
}
.mk-rise {
  animation: mk-rise 700ms cubic-bezier(0.2, 0.7, 0.2, 1) both;
}
.mk-rise-2 {
  animation-delay: 90ms;
}
.mk-rise-3 {
  animation-delay: 180ms;
}
@media (prefers-reduced-motion: reduce) {
  .mk *,
  .mk *::before,
  .mk *::after {
    animation: none !important;
    transition: none !important;
    scroll-behavior: auto !important;
  }
}

.mk-sr {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.mk-anchor {
  scroll-margin-top: 24px;
}

/* Header and footer used on pages that keep their older body styles. */
.mk.mk-chrome {
  min-height: 0;
  background: transparent;
}
.mk.mk-chrome .mk-header {
  background: var(--mk-paper);
  border-bottom: 1px solid var(--mk-rule);
}
