/* The marketing site — "Night and signal." (2026-11-12)

   DARK-LED, HEAVY, ONE ACCENT. The page opens on a full-height night band
   (navy, a low orange glow, a film grain and an 80px hairline grid masked to
   fade at its edges) and alternates night bands with a warm paper ground.
   Display type is Outfit at 800, uppercase, tight, at sizes that make the
   headline the picture. Orange is the only accent and it arrives as signal:
   the kicker's rule, a numeral, a stat's top rule, the marquee's dots, the
   primary button — never a large fill behind text (the one warm band carries
   navy ink). Glows are radial gradients with soft edges by construction; a
   test refuses `filter: blur(` in this file, backdrop-filter included.
   Motion is GSAP + ScrollTrigger, vendored (see marketing.js); the CSS
   describes the page COMPLETE at frame 0, so no JavaScript and reduced
   motion both read a finished page.

   Two rules carried over, both still load-bearing:
     1. Nothing here comes from another origin. Outfit is self-hosted (its
        @font-face is in tokens.css); the grain is an inline SVG data URI.
     2. tokens.css is never touched. It is shared with the panel, the docs
        site and the client portal. Everything below is scoped to `.mk`, so a
        redesign here cannot reach the other three.

   Bands re-point the token set and nothing else: .mk-sky (night), .mk-warm
   (the yellow→orange gradient, at most once per page), .mk-grey (paper-2).
   Legacy classes (.mk-band, .mk-glow, .mk-grain, .mk-ticker,
   .mk-section--tint) are declared as no-ops near the end. */

/* ─────────────────────────────────────────────────────────────── typefaces */

/* Outfit for display and body, as on appointment.tools. Its @font-face is in
   tokens.css (loaded first); header.php preloads the file. */

/* ──────────────────────────────────────────────────────────────── tokens */

body.mk {
  /* the ground: warm paper, a white step above it, a deeper paper below */
  --ground:    #f4f3ef;
  --ground-2:  #ffffff;
  --ground-3:  #e9e7e1;
  --paper:     #f4f3ef;
  --paper-2:   #e9e7e1;

  /* ink at four strengths. Hex, not alpha, so the contrast floors are fixed:
     ink 13.9:1, mute 6.5:1 on paper; orange ink 4.5:1 (#9a4507 on the grey band) */
  --ink:       #1b2340;
  --ink-soft:  #343c5c;
  --ink-mute:  #4f566f;
  --ink-faint: #8f94a8;

  /* the structure */
  --line:        rgba(27, 35, 64, .12);
  --line-strong: rgba(27, 35, 64, .22);

  /* ONE accent. On paper, orange text uses the ink step (#b4530a, 4.5:1);
     the bright orange is for rules, dots and fills (with navy on top). */
  --accent:      #b4530a;
  --accent-hi:   #b4530a;
  --accent-soft: rgba(245, 132, 31, .22);
  --orange:      #f5841f;
  --orange-ink:  #b4530a;
  --ok:          #2e750e;
  --warn:        #b45a09;

  /* the night: hero, stats, tour, CTA, nav, footer */
  --night:         #1b2340;
  --night-deep:    #10152a;
  --night-2:       #232d52;
  --night-3:       #2e3a63;
  --on-night:      #f4f3ef;
  --on-night-mute: #a9aec4;   /* 7.0:1 on night */

  /* the warm pair, kept for the primary button and the one warm band */
  --grad-brand:        linear-gradient(115deg, #f7ec13 0%, #f5841f 40%, #2c3d75 75%, #1b2340 100%);
  --grad-warm:         linear-gradient(180deg, #f9c726, #f5841f);
  --sun:   #f9c726;
  --sun-2: #f5841f;

  /* film grain: fractal noise as an inline SVG, laid over night bands */
  --grain: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='220' height='220'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.9' numOctaves='2' stitchTiles='stitch'/%3E%3CfeColorMatrix values='0 0 0 0 1 0 0 0 0 1 0 0 0 0 1 0 0 0 .55 0'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
  --shadow-long: 0 50px 90px -40px rgba(16, 21, 42, .55);

  /* the type scale: display sizes clamp to the viewport */
  --fs-hero: clamp(2.9rem, min(7.2vw, 12.5vh), 7.25rem);
  --fs-head: clamp(2.6rem, 5.6vw, 5.25rem);
  --fs-h2:   clamp(2.1rem, 4.4vw, 4.1rem);
  --fs-num:  clamp(2.8rem, 5vw, 4.9rem);

  /* timings, read by marketing.js (ms()) so one number drives CSS and GSAP */
  --d-fast: 320ms; --d-base: 620ms; --d-slow: 1200ms;
  --e-signature: cubic-bezier(.2, .8, .2, 1);

  --font-display: "Outfit", system-ui, -apple-system, "Segoe UI", sans-serif;
  --font-body:    "Outfit", system-ui, -apple-system, "Segoe UI", sans-serif;
  --font-mono:    ui-monospace, "SF Mono", Menlo, Consolas, "Liberation Mono", monospace;

  --wrap:      1240px;
  --gutter:    clamp(1rem, 4vw, 2.5rem);
  --nav-h:     72px;
  --nav-block: 72px;   /* the flat bar's slot */
  --section-y: clamp(4.5rem, 10vw, 8.5rem);

  --r:    10px;
  --r-lg: 14px;

  --d: 620ms;
  --e: cubic-bezier(.2, .8, .2, 1);

  margin: 0;
  background: var(--ground);
  color: var(--ink);
  font: 400 1rem/1.6 var(--font-body);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  color-scheme: light;
}

/* The one global lever this host pulls — scoped with :has so the panel,
   docs and portal (which share tokens.css, not this) are untouched. */
html:has(body.mk) { font-size: 17px; background: #f4f3ef; scroll-behavior: smooth; }
body.mk { overflow-x: clip; }

/* ──────────────────────────────────────────────────────────────── bands */

/* Each band re-points the token set and NOTHING else. Every component below
   reads the tokens, so a ledger on the night, a step on the warm band and a
   card on the grey all re-skin themselves. */
.mk-sky {
  --ground: var(--night); --ground-2: var(--night-2); --ground-3: var(--night-3);
  --ink: #f4f3ef; --ink-soft: #cfd2de; --ink-mute: var(--on-night-mute);
  --ink-faint: rgba(244, 243, 239, .32);
  --line: rgba(244, 243, 239, .12); --line-strong: rgba(244, 243, 239, .24);
  --accent: #f5841f; --accent-hi: #ff9d45; --accent-soft: rgba(245, 132, 31, .3); --ok: #5fd68a; --warn: #f5b73c;
  color-scheme: dark;
  position: relative; isolation: isolate;
  /* three layers: a low orange glow, a lifted navy glow, the night itself */
  background:
    radial-gradient(70% 60% at 82% 108%, rgba(245, 132, 31, .30) 0%, rgba(245, 132, 31, 0) 62%),
    radial-gradient(60% 55% at 8% -6%, #34427a 0%, rgba(52, 66, 122, 0) 64%),
    linear-gradient(180deg, var(--night-deep) 0%, var(--night) 55%, #1f2848 100%);
  color: var(--ink);
}
/* the grain and the grid: two pseudo-layers under the content */
.mk-sky::before, .mk-sky::after { content: ""; position: absolute; inset: 0; pointer-events: none; z-index: -1; }
.mk-sky::before { background-image: var(--grain); background-size: 220px; opacity: .10; mix-blend-mode: overlay; }
.mk-sky::after {
  background-image:
    linear-gradient(rgba(244, 243, 239, .055) 1px, transparent 1px),
    linear-gradient(90deg, rgba(244, 243, 239, .055) 1px, transparent 1px);
  background-size: 80px 80px; background-position: center top;
  -webkit-mask-image: radial-gradient(75% 70% at 50% 45%, #000 25%, transparent 100%);
          mask-image: radial-gradient(75% 70% at 50% 45%, #000 25%, transparent 100%);
}
.mk-warm {
  --ground: transparent; --ground-2: rgba(255, 255, 255, .26); --ground-3: rgba(255, 255, 255, .42);
  --ink: #1b2340; --ink-soft: #232d52; --ink-mute: #2b3358; --ink-faint: #4a5276;
  --line: rgba(27, 35, 64, .22); --line-strong: rgba(27, 35, 64, .36);
  --accent: #1b2340; --accent-hi: #1b2340; --accent-soft: rgba(27, 35, 64, .12); --ok: #1b2340;
  background: var(--grad-warm); color: var(--ink);
  border-top: 0 !important;
}
.mk-grey { --ground: var(--paper-2); --ground-2: #ffffff; --ground-3: #dedbd3; --accent: #9a4507; --accent-hi: #9a4507; --orange-ink: #9a4507; background: var(--paper-2); }
/* a section that follows a band of another colour needs no hairline of its own */
.mk-sky + .mk-section, .mk-warm + .mk-section, .mk-grey + .mk-section,
.mk-section + .mk-sky, .mk-marquee + .mk-section { border-top: 0; }

/* the headline's accent words: solid signal, not a ramp — orange on the
   night, the orange ink step on paper, navy on the warm band */
.mk-grad-text { color: var(--accent); -webkit-text-fill-color: currentColor; }
.mk-sky .mk-grad-text { color: #f5841f; }
.mk-warm .mk-grad-text { color: var(--ink); }
/* the old 4px ramp under a section head; the kicker's rule replaced it */
.mk-grad-rule { display: none; }
@media (max-width: 760px) { html:has(body.mk) { font-size: 16px; } }

/* ──────────────────────────────────────────────────────────────── base */

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

.mk a { color: inherit; text-decoration: none; transition: color 160ms var(--e), border-color 160ms var(--e); }
.mk a:hover { color: var(--accent-hi); }
.mk :focus-visible { outline: 2px solid var(--accent-hi); outline-offset: 3px; border-radius: 3px; }
.mk ::selection { background: #f5841f; color: #1b2340; }
.mk img, .mk svg { max-width: 100%; }
.mk p { margin: 0 0 1rem; }
.mk strong, .mk b { font-weight: 600; color: var(--ink); }
.mk code { font: .88em var(--font-mono); color: var(--ink); }

.mk .skip { position: absolute; left: -9999px; top: 0; z-index: 100; padding: .6rem 1rem;
        background: var(--accent); color: #fff; border-radius: 0 0 var(--r) 0; }
.mk .skip:focus { left: 0; }
.mk-sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

/* ──────────────────────────────────────────────────────────────── icons */

/* Inline SVG sprite (view/marketing/_icons.php), stroked, with a second
   tone: each symbol carries one filled shape reading var(--i-fill) and, where
   it has a "live" element, var(--i-fill-2). Custom properties inherit through
   <use>, so the same symbol is monochrome at 15px in the nav and two-tone at
   32px in an index row, by the tokens alone. */
.mk-i { width: 1em; height: 1em; display: inline-block; vertical-align: -.125em;
        --i-fill: rgba(44, 61, 117, .16); --i-fill-2: #f5841f;
        fill: none; stroke: currentColor; stroke-width: 1.75;
        stroke-linecap: round; stroke-linejoin: round; flex: none; }
.mk-i--mono { --i-fill: transparent; --i-fill-2: currentColor; }
.mk-glyph { width: 64px; height: 64px; stroke-width: 1.1; color: var(--ink);
            --i-fill: rgba(44, 61, 117, .22); --i-fill-2: #f5841f; }
.mk-sky .mk-glyph { --i-fill: rgba(245, 132, 31, .25); }
.mk-warm .mk-i, .mk-warm .mk-glyph { --i-fill: rgba(27, 35, 64, .18); --i-fill-2: #1b2340; }

/* ──────────────────────────────────────────────────────────────── type */

.mk-display, .mk-h2, .mk-h3 { font-family: var(--font-display); color: var(--ink); }

/* Display type: Outfit at 800, uppercase, tight. The headline IS the
   picture, so it gets the width and the size. */
.mk-display, .mk-h2 {
  font-weight: 800; text-transform: uppercase;
  text-wrap: balance; font-kerning: normal;
}
.mk-display {
  font-size: var(--fs-head);
  line-height: .92;
  letter-spacing: -.025em;
  margin: 0 0 1.75rem;
  max-width: 15ch;
}
.mk-h2 {
  font-size: var(--fs-h2);
  line-height: .95;
  letter-spacing: -.02em;
  margin: 0 0 1.25rem;
  max-width: 16ch;
}
.mk-h3 { font-size: 1.3rem; font-weight: 700; line-height: 1.25; letter-spacing: -.005em; margin: 0 0 .5rem; }

.mk-lede { font-size: 1.2rem; line-height: 1.55; color: var(--ink-soft); max-width: 54ch; margin: 0 0 2rem; }

/* The kicker: a 28px orange rule, then small tracked caps. A section's
   number (`<span class="mk-kicker__n">01</span>`) reads in the accent. */
.mk-kicker {
  display: flex; align-items: center; gap: .8rem;
  font: 600 .8rem/1.2 var(--font-body);
  letter-spacing: .16em; text-transform: uppercase;
  color: var(--ink-mute); margin: 0 0 1.5rem;
}
.mk-kicker::before { content: ""; width: 28px; height: 2px; background: #f5841f; flex: none; }
.mk-warm .mk-kicker::before { background: #1b2340; }
.mk-warm .mk-kicker__n { color: #1b2340; }
.mk-kicker .mk-i { width: 14px; height: 14px; }
.mk-kicker__n { color: var(--accent); font-weight: 800; }

.mk-promise {
  font-size: 1.1rem; line-height: 1.5; color: var(--ink);
  border-left: 2px solid #f5841f; padding-left: 1rem;
  max-width: 56ch; margin: 0 0 2rem;
}
.mk-prose { max-width: 66ch; font-size: 1.08rem; line-height: 1.65; color: var(--ink-soft); }
.mk-prose p { margin: 0 0 1.25rem; }
.mk-prose h2, .mk-prose .mk-h2 { margin-top: 2.5rem; }
.mk-prose a { color: var(--ink); border-bottom: 1px solid var(--line-strong); }
.mk-prose a:hover { color: var(--accent-hi); border-color: var(--accent); }

/* ──────────────────────────────────────────────────────────────── layout */

.mk-wrap { max-width: var(--wrap); margin: 0 auto; padding: 0 var(--gutter); }

/* The rails: two hairlines at the container's edges, the full height of
   <main>. They are what make the page one object rather than a stack of
   bands, and they only appear once there is room outside the container. */
#content { position: relative; }
@media (min-width: 1280px) {
  #content::before, #content::after {
    content: ""; position: absolute; top: 0; bottom: 0; width: 1px;
    background: var(--line); pointer-events: none;
  }
  #content::before { left: calc(50% - var(--wrap) / 2); }
  #content::after  { left: calc(50% + var(--wrap) / 2 - 1px); }
}

.mk-section { padding: var(--section-y) 0; border-top: 1px solid var(--line); }
.mk-section__head { margin-bottom: 3rem; max-width: 760px; }
.mk-section__head .mk-lede { margin-bottom: 0; }

/* The page head every inner page opens on: a night band most of a
   viewport tall, the copy settled toward its foot like a title card. */
.mk-page-head { padding: calc(var(--nav-block) + var(--section-y) * .7) 0 var(--section-y);
                min-height: min(78svh, 760px); display: flex; flex-direction: column; justify-content: flex-end; }
.mk-page-head > .mk-wrap { width: 100%; }
.mk-page-head--tall { min-height: 88svh; }
.mk-page-head .mk-lede:last-child { margin-bottom: 0; }
.mk-page-head .mk-kicker .mk-glyph { width: 40px; height: 40px; margin-right: .25rem; }
/* the split head: copy left, a pillar's art and its first shot right */
.mk-page-head--split .mk-wrap { display: grid; grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); gap: 3rem; align-items: end; }
.mk-page-head--split .mk-display { font-size: clamp(2.5rem, 4.9vw, 4.6rem); }
.mk-page-head__art { display: grid; gap: 1.5rem; justify-items: center; }
.mk-page-head__art .mk-art { width: min(100%, 360px); height: auto; }
.mk-page-head__art .mk-shot { width: 100%; }
/* the night's horizon: an orange hairline that burns out at both ends */
.mk-sky__horizon { position: absolute; left: 0; right: 0; bottom: 0; height: 1px; border: 0; margin: 0; z-index: 2;
                   background: linear-gradient(90deg, rgba(245, 132, 31, 0), #f5841f 50%, rgba(245, 132, 31, 0)); }
.mk-sky__canvas { position: absolute; inset: 0; z-index: 0; pointer-events: none; }
.mk-sky__canvas canvas { display: block; width: 100%; height: 100%; opacity: 0; transition: opacity var(--d-slow) var(--e-signature); }
.mk-sky__canvas.is-live canvas { opacity: 1; }
.mk-sky > .mk-wrap, .mk-sky > .mk-hero__inner { position: relative; z-index: 1; }

/* ──────────────────────────────────────────────────────────────── buttons */

/* Two buttons, the same everywhere (2026-11-05, kept): PRIMARY wears the
   warm gradient with navy ink (white on #f9c726 is 1.6:1, so never white).
   SECONDARY (--ghost) is navy with a 2px white outline. One type size, all
   caps, one 12px corner, at least 48px tall. On hover a fill slides up from
   the foot (the ::after, under the label): deeper orange on the primary,
   paper on the secondary, which turns its label navy. */
.mk-btn {
  position: relative; isolation: isolate; overflow: hidden;
  display: inline-flex; align-items: center; justify-content: center; gap: .55rem;
  min-height: 48px;
  background: var(--grad-warm); color: #1b2340;
  font: 800 .95rem/1 var(--font-body);
  text-transform: uppercase; letter-spacing: .05em;
  padding: .9rem 1.3rem; border-radius: 12px;
  border: 2px solid transparent; cursor: pointer; white-space: nowrap;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, .45), 0 1px 2px rgba(0, 0, 0, .14), 0 2px 6px -2px rgba(0, 0, 0, .18);
  transition: color 260ms var(--e), border-color 260ms var(--e), transform 160ms var(--e), box-shadow 160ms var(--e);
}
.mk-btn::after {
  content: ""; position: absolute; inset: -2px; z-index: -1;
  background: #f07a12;
  transform: translateY(101%); transition: transform 420ms var(--e);
}
.mk-btn:hover::after, .mk-btn:focus-visible::after { transform: none; }
.mk-btn:active { transform: translateY(1px); box-shadow: inset 0 1px 2px rgba(0, 0, 0, .18); }
.mk-btn--ghost { background: #1b2340; border-color: rgba(255, 255, 255, .85);
                 box-shadow: inset 0 1px 0 rgba(255, 255, 255, .12), 0 1px 2px rgba(0, 0, 0, .14), 0 2px 6px -2px rgba(0, 0, 0, .18); }
.mk-btn--ghost::after { background: #f4f3ef; }
.mk-btn--ghost:hover, .mk-btn--ghost:focus-visible { border-color: #f4f3ef; }
.mk-btn--lg { padding: 1.05rem 1.6rem; min-height: 56px; }
.mk-btn--sm { padding: .6rem .95rem; min-height: 40px; }
.mk-btn--block { display: flex; width: 100%; white-space: normal; text-align: center; padding-inline: .9rem; }
.mk-btn .mk-i { width: 16px; height: 16px; transition: transform 260ms var(--e); }
.mk-btn:hover .mk-i { transform: translateX(3px); }
/* the warm band IS the gradient, so a primary there turns navy to stay visible */
.mk-warm .mk-btn:not(.mk-btn--ghost) { background: #1b2340; }
.mk-warm .mk-btn:not(.mk-btn--ghost)::after { background: #2c3d75; }
/* `.mk a { color: inherit }` outranks a bare .mk-btn, and most buttons are
   links, so the ink is restated one step higher */
.mk .mk-btn, .mk .mk-btn:hover, .mk .mk-btn:focus-visible { color: #1b2340; }
.mk .mk-btn--ghost, .mk .mk-warm .mk-btn { color: #fff; }
.mk .mk-btn--ghost:hover, .mk .mk-btn--ghost:focus-visible { color: #1b2340; }
.mk .mk-warm .mk-btn:not(.mk-btn--ghost):hover, .mk .mk-warm .mk-btn:not(.mk-btn--ghost):focus-visible { color: #fff; }
/* a magnetic button is moved by GSAP; the rest state is plain */
[data-magnet] { will-change: transform; }

.mk-more {
  display: inline-flex; align-items: center; gap: .4rem;
  color: var(--ink); font-weight: 500;
  border-bottom: 1px solid var(--line-strong); padding-bottom: 2px;
}
.mk-more:hover { color: var(--accent-hi); border-color: var(--accent); }
.mk-more .mk-i { width: 15px; height: 15px; transition: transform 160ms var(--e); }
.mk-more:hover .mk-i { transform: translateX(3px); }

/* ──────────────────────────────────────────────────────────────── nav */

/* A flat full-width bar (2026-11-05, replacing the snazzy.ie capsule): solid
   navy, a 34px logo, white
   uppercase links, and the primary (gradient) button as the CTA. The bar is DARK whatever the
   band under it, so it states its colours rather than reading the tokens. */
.mk-nav {
  position: sticky; top: 0; z-index: 50;
  padding: 0 var(--gutter);
  /* a flat full-width bar; its slot is handed back so the sky starts at the
     very top of the viewport behind it */
  margin-bottom: calc(-1 * var(--nav-block));
  background: #10152a;
  border-bottom: 1px solid rgba(255, 255, 255, .08);
  color: #fff;
  transition: box-shadow 260ms var(--e);
}
/* marketing.js adds this once the page has scrolled past the first 60px */
.mk-nav.is-scrolled { box-shadow: 0 18px 40px -24px rgba(0, 0, 0, .7); }
.mk-nav__inner {
  max-width: var(--wrap); margin: 0 auto;
  display: flex; align-items: center; gap: 28px; height: var(--nav-h);
}
.mk-nav__brand { display: flex; align-items: center; flex: none; }
.mk-nav__logo { height: 34px; width: auto; display: block; }

.mk-nav__drawer { display: flex; align-items: center; flex: 1; min-width: 0; }
.mk-nav__links { display: flex; align-items: center; gap: 26px; }
.mk-nav__item { position: relative; display: flex; align-items: center; }
.mk-nav__links > a, .mk-nav__item > a {
  position: relative; display: inline-flex; align-items: center; gap: .3rem;
  color: rgba(255, 255, 255, .96); font-size: .95rem; font-weight: 800;
  text-transform: uppercase; letter-spacing: .07em;
  min-height: 44px;
}
.mk-nav__links > a:hover, .mk-nav__item > a:hover { color: #ffb066; }
/* the current page: an orange 2px marker under the word */
.mk-nav__links > a::after, .mk-nav__item > a::after {
  content: ""; position: absolute; left: 0; right: 0; bottom: 6px; height: 2px; background: #f5841f;
  transform: scaleX(0); transform-origin: left; transition: transform 320ms var(--e);
}
.mk-nav__links > a.is-current::after, .mk-nav__item > a.is-current::after,
.mk-nav__links > a:hover::after, .mk-nav__item > a:hover::after { transform: none; }
.mk-nav__item > a::after { right: 1.1rem; }
.mk-nav__chev { width: 14px; height: 14px; transition: transform var(--d-fast) var(--e-signature); }
.mk-nav__item:hover .mk-nav__chev, .mk-nav__item:focus-within .mk-nav__chev { transform: rotate(180deg); }

/* CSS-only submenu: :hover and :focus-within open it. A dark panel whatever
   the band; the ::before bridge fills the gap so the pointer cannot fall
   through mid-travel. */
.mk-nav__sub {
  position: absolute; top: calc(100% + 14px); left: -16px; min-width: 236px;
  padding: .55rem; z-index: 60;
  background: var(--night-2); border: 1px solid var(--night-3); border-radius: var(--r-lg);
  box-shadow: 0 24px 60px -24px rgba(0, 0, 0, .8);
  display: grid; gap: 2px;
  opacity: 0; visibility: hidden; transform: translateY(6px);
  transition: opacity 160ms var(--e), transform 160ms var(--e), visibility 0s 160ms;
}
.mk-nav__sub::before { content: ""; position: absolute; top: -14px; left: 0; right: 0; height: 14px; }
.mk-nav__item:hover .mk-nav__sub, .mk-nav__item:focus-within .mk-nav__sub {
  opacity: 1; visibility: visible; transform: none; transition-delay: 0s;
}
.mk-nav__sub--right { left: auto; right: -16px; }
.mk-nav__sub a {
  display: flex; align-items: center; gap: .65rem;
  padding: .55rem .7rem; border-radius: 8px;
  color: var(--on-night-mute); font-size: .85rem; font-weight: 700;
  text-transform: uppercase; letter-spacing: .04em;
  white-space: nowrap;   /* one line on desktop; the drawer below lets it wrap */
}
.mk-nav__sub a:hover { color: #fff; background: var(--night-3); }
.mk-nav__sub .mk-i { width: 18px; height: 18px; color: var(--sun); --i-fill: rgba(249, 199, 38, .18); }

/* The CTA: the primary button, only shorter so it fits the 64px bar. */
.mk-nav__actions { margin-left: auto; display: flex; align-items: center; gap: 14px; }
.mk-nav__actions .mk-btn {
  height: 40px; padding-block: 0; padding-inline: 1.1rem;
}
.mk-nav__signin { color: #fff; font-size: .95rem; font-weight: 800; text-transform: uppercase; letter-spacing: .07em; }
.mk .mk-nav__signin:hover { color: #ffb066; }
.mk-nav__ie { width: 36px; height: 36px; border-radius: 50%; display: block; }

.mk-nav__toggle {
  display: none; margin-left: auto;
  width: 44px; height: 44px; border-radius: 50%;
  background: transparent; border: 0; color: #fff;
  align-items: center; justify-content: center; cursor: pointer;
}
.mk-nav__toggle .mk-i { width: 24px; height: 24px; }
.mk-nav__toggle-close { display: none; }
body.mk-nav-open .mk-nav__toggle-open { display: none; }
body.mk-nav-open .mk-nav__toggle-close { display: block; }

/* ──────────────────────────────────────────────────────────────── hero */

/* The home hero: a full viewport of night. The headline takes the whole
   width on top; under it the lede and actions sit left and the product
   stack right, riding down over the band's foot. */
.mk-hero { padding: calc(var(--nav-block) + clamp(3rem, 8vh, 6rem)) 0 calc(var(--section-y) * 1.25); min-height: 100svh; }
.mk-hero__inner { max-width: var(--wrap); margin: 0 auto; padding: 0 var(--gutter);
                  display: grid; grid-template-columns: minmax(0, 6fr) minmax(0, 6fr); column-gap: 3.5rem; align-items: start; }
.mk-hero__head { grid-column: 1 / -1; }
.mk-hero .mk-display { font-size: var(--fs-hero); line-height: .9; max-width: 16ch; margin-bottom: clamp(2rem, 5vh, 3.25rem); }
.mk-hero__copy { max-width: 560px; }
.mk-hero__copy .mk-lede { font-size: 1.15rem; }
.mk-hero__actions { display: flex; flex-wrap: wrap; gap: .75rem; margin: 0 0 1.6rem; }
.mk-hero__note { color: var(--ink-mute); font-size: .95rem; max-width: 56ch; margin: 0; }
.mk-hero .mk-stack { margin-top: -1rem; }

/* ── the stack: the product on lifted planes ─────────────────────────────
   A perspective scene built from the dashboard itself. The base is the real
   screenshot; the fragments are crops of other screens (and one drawn
   sparkline) on their own depth planes. The CSS state IS the composition —
   nothing here is opacity 0 — so the hero is complete with no script and
   under reduced motion; GSAP only moves what is already there. */
.mk-stack { position: relative; perspective: 1400px; perspective-origin: 60% 40%;
            aspect-ratio: 16 / 11; min-height: 0; max-width: 100%; }
/* the sky clips both axes; the stack's planes may fly past its box but never
   widen the page — overflow:clip, unlike hidden, also refuses to become a
   scroll container, so no element inside can be scrolled into view sideways */
.mk-sky { overflow: clip; }
.mk-stack__base, .mk-stack__frag { position: absolute; transform-style: preserve-3d; will-change: transform; }
.mk-stack__base { inset: 6% 0 0 2%; width: 98%; border-radius: var(--r-lg);
                  transform: rotateX(6deg) rotateY(-10deg); }
.mk-stack__base img { width: 100%; height: auto; display: block; border-radius: inherit; }
.mk-stack__frag { width: 30%; border-radius: var(--r); overflow: hidden;
                  background: #fff; border: 1px solid rgba(27, 35, 64, .12);
                  box-shadow: 0 24px 60px -24px rgba(0, 0, 0, .55), 0 0 0 1px rgba(255, 255, 255, .5) inset; }
.mk-stack__frag img { width: 100%; height: auto; display: block; }
.mk-stack__frag { --depth: .5; }   /* each plane's lift, mirrored by its data-depth for the script */
.mk-stack__frag--server  { --depth: .35; left: -4%;  top: 2%;   width: 32%; transform: translateZ(calc(var(--depth) * 140px)) rotateY(-8deg); }
.mk-stack__frag--uptime  { --depth: .6;  right: -2%; top: -4%;  width: 30%; padding: .75rem .9rem .6rem; transform: translateZ(calc(var(--depth) * 140px)) rotateY(-6deg); }
.mk-stack__frag--invoice { --depth: .45; left: 10%;  bottom: 4%; width: 36%; transform: translateZ(calc(var(--depth) * 140px)) rotateY(-9deg); }
.mk-stack__frag--ai      { --depth: .8;  right: -6%; top: 34%;  width: 34%; transform: translateZ(calc(var(--depth) * 140px)) rotateY(-5deg); }
.mk-stack__frag--backup  { --depth: .5;  right: 6%;  bottom: -4%; width: 30%; transform: translateZ(calc(var(--depth) * 140px)) rotateY(-7deg); }
.mk-stack__frag--portal  { --depth: .7;  left: 28%;  top: -8%;  width: 24%; transform: translateZ(calc(var(--depth) * 140px)) rotateY(-7deg); }
.mk-stack__tag { display: block; font: 700 .72rem/1.2 var(--font-body); letter-spacing: .1em; text-transform: uppercase;
                 color: #1b2340; margin-top: .4rem; }
.mk-spark { display: block; width: 100%; height: auto; }
.mk-spark__grid { stroke: rgba(27, 35, 64, .10); stroke-width: 1; }
.mk-spark__line { fill: none; stroke: #2c3d75; stroke-width: 3; stroke-linecap: round; stroke-linejoin: round; }
.mk-spark__fill { fill: rgba(44, 61, 117, .10); }
.mk-spark__dot  { fill: #f5841f; }

/* The edge-light: 1px of the warm pair along the lit edge of a frame plus a
   warm cast in the shadow. A border through mask-composite, not a glow. */
.mk-shot--sun { box-shadow: 0 30px 80px -40px rgba(245, 132, 31, .45), 0 40px 100px -50px rgba(0, 0, 0, .75); }
.mk-shot--sun::before { content: ""; position: absolute; inset: -1px; border-radius: inherit; padding: 1px; z-index: 2; pointer-events: none;
  background: linear-gradient(135deg, var(--sun), var(--sun-2) 38%, rgba(245, 132, 31, 0) 70%);
  -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
  -webkit-mask-composite: xor; mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0); mask-composite: exclude; }
.mk-shot--tilt { transform: perspective(1200px) rotateY(-8deg) rotateX(3deg); transform-origin: left center; }
.mk-feature:nth-child(even) .mk-shot--tilt { transform: perspective(1200px) rotateY(8deg) rotateX(3deg); transform-origin: right center; }

/* ──────────────────────────────────────────────────────────────── the shot */

/* One frame for every real screenshot: a hairline, a radius, the raised
   ground behind, and a long soft shadow. No browser-chrome bar, no dots. */
.mk-shot, .mk-frame {
  position: relative; overflow: hidden;
  border: 1px solid var(--line-strong); border-radius: var(--r-lg);
  background: var(--ground-2);
  box-shadow: var(--shadow-long);
}
.mk-shot img, .mk-frame img { display: block; width: 100%; height: auto; }
.mk-frame__bar { display: none; }
.mk-shot__caption, .mk-shot figcaption {
  font: 600 .74rem/1.4 var(--font-body); letter-spacing: .12em; text-transform: uppercase;
  color: var(--ink-mute); padding: .8rem 1rem; border-top: 1px solid var(--line);
}

/* ──────────────────────────────────────────────────────────────── ledger */

/* Figures and claims in cells. Hairlines between, a hairline around — the
   old stat tiles and trust chips both became this. */
.mk-ledger, .mk-stats__grid {
  display: grid; grid-template-columns: repeat(4, 1fr);
  border: 1px solid var(--line); border-radius: var(--r-lg); overflow: hidden;
  background: var(--line); gap: 1px;
}
.mk-ledger--3 { grid-template-columns: repeat(3, 1fr); }
.mk-ledger--2 { grid-template-columns: repeat(2, 1fr); }
.mk-ledger__cell, .mk-stat { padding: 1.5rem 1.6rem; background: var(--ground); min-width: 0; }
.mk-ledger__v, .mk-stat__value {
  font: 800 2.3rem/1 var(--font-display); letter-spacing: -.02em; text-transform: uppercase; color: var(--ink); margin: 0;
}
.mk-ledger__t, .mk-stat__title {
  font: 600 .74rem/1.2 var(--font-body); letter-spacing: .14em; text-transform: uppercase;
  color: var(--ink-mute); margin: 0 0 1rem;
}
.mk-ledger__l, .mk-stat__label { color: var(--ink-soft); font-size: .92rem; line-height: 1.5; margin: .6rem 0 0; }
.mk-ledger__cell .mk-more, .mk-stat__link .mk-more { margin-top: 1rem; font-size: .9rem; }
.mk-stat__link { margin: 0; }
.mk-stat__icon { display: none; }
.mk-ledger__cell--claim { display: flex; align-items: flex-start; gap: .75rem; font-size: .95rem; color: var(--ink-soft); line-height: 1.45; }
.mk-ledger__cell--claim .mk-i { color: var(--ok); margin-top: .25rem; width: 16px; height: 16px; }
/* the one overlap on the page: the claims ledger rides up over the night's foot */
.mk-section--lift { padding-top: 0; padding-bottom: calc(var(--section-y) * .55); border-top: 0; }
.mk-section--lift .mk-ledger { position: relative; z-index: 3; margin-top: -3.5rem;
  background: var(--line); box-shadow: var(--shadow-long); }
.mk-section--lift .mk-ledger__cell { background: var(--ground-2); padding: 1.6rem 1.7rem; font-weight: 500; color: var(--ink); }
.mk-section--lift .mk-ledger__cell--claim .mk-i { color: var(--orange-ink); }

/* The stats band: no boxes, just oversized numerals over a 2px orange rule.
   marketing.js grows the rule on entry by tweening --rule; at rest it is drawn. */
.mk-ledger--stats { border: 0; border-radius: 0; background: none; gap: 0; overflow: visible; }
.mk-ledger--stats .mk-ledger__cell { background: none; padding: 1.75rem 2rem 0 0; position: relative; display: flex; flex-direction: column; align-items: flex-start; }
.mk-ledger--stats .mk-ledger__cell .mk-more { margin-top: auto; padding-top: 1.25rem; }
.mk-ledger--stats .mk-ledger__cell::before { content: ""; position: absolute; left: 0; top: 0; height: 2px; width: 56px; background: #f5841f;
  transform-origin: left; transform: scaleX(var(--rule, 1)); }
.mk-ledger--stats .mk-ledger__cell + .mk-ledger__cell { padding-left: 2rem; border-left: 1px solid var(--line); }
.mk-ledger--stats .mk-ledger__cell + .mk-ledger__cell::before { left: 2rem; }
.mk-ledger--stats .mk-ledger__v { font-size: var(--fs-num); line-height: .9; letter-spacing: -.035em; white-space: nowrap; }
.mk-ledger--stats .mk-ledger__l { font-size: .98rem; max-width: 30ch; }

/* ──────────────────────────────────────────────────────────────── index */

/* Numbered hairline rows — the pains, the pillars, the hub. A row that is a
   link lights its ground on hover across the full gutter width. */
.mk-index { list-style: none; margin: 0; padding: 0; border-top: 1px solid var(--line); }
.mk-index__row {
  display: grid; grid-template-columns: 4.5rem minmax(0, 1fr) minmax(0, 1.3fr) 2.5rem;
  gap: 2rem; align-items: baseline;
  padding: 1.9rem var(--gutter); margin: 0 calc(-1 * var(--gutter));
  border-bottom: 1px solid var(--line); color: inherit;
  transition: background 320ms var(--e), color 320ms var(--e);
}
/* a linked row goes to night on hover: the tokens re-point, so every part
   of the row (and its drawing) re-skins with it */
a.mk-index__row:hover {
  --ground: var(--night); --ground-2: var(--night-2); --ink: #f4f3ef; --ink-soft: #cfd2de; --ink-mute: var(--on-night-mute);
  --line-strong: rgba(244, 243, 239, .24); --accent: #f5841f;
  background: var(--night); color: var(--ink);
}
.mk-index__n { font: 800 1.6rem/1 var(--font-display); color: var(--accent); letter-spacing: -.02em; }
.mk-index__t { font: 800 clamp(1.35rem, 2.3vw, 2rem)/1.05 var(--font-display); color: var(--ink); margin: 0;
               letter-spacing: -.015em; text-transform: uppercase; text-wrap: balance; }
.mk-index__d { color: var(--ink-soft); margin: 0; }
.mk-index__d .mk-more { margin-top: .75rem; font-size: .92rem; }
.mk-index__go { color: var(--ink-mute); justify-self: end; transition: color 320ms var(--e), transform 320ms var(--e); }
a.mk-index__row:hover .mk-index__go { color: #f5841f; transform: translateX(4px); }
.mk-index__go .mk-i { width: 18px; height: 18px; }
/* a row that carries its icon (the pains) or its art (the pillars) */
.mk-index__row--icon { grid-template-columns: 4.5rem 32px minmax(0, 1fr) minmax(0, 1.5fr) 2rem; align-items: center; }
.mk-index__i { width: 32px; height: 32px; color: var(--ink); align-self: center; }
.mk-index__row--art { grid-template-columns: 4.5rem 96px minmax(0, 1fr) minmax(0, 1.5fr) 2rem; align-items: center; }
.mk-index__art { width: 96px; height: 72px; align-self: center; }
.mk-index__art .mk-art { width: 100%; height: 100%; }
/* a stake is one sentence, not a title and a body */
.mk-index__row--stake { grid-template-columns: 4.5rem minmax(0, 1fr); }
.mk-index__row--stake .mk-index__d { font-size: 1.2rem; line-height: 1.4; color: var(--ink); max-width: 60ch; }

/* ──────────────────────────────────────────────────────────────── art */

/* The seven pillar illustrations (view/marketing/_art/*.php) share ONE
   vocabulary, carried by these classes so no drawing picks its own colours:
   slabs in the night pair, pink edges, a hairline grid, and exactly one
   orange element per drawing — the live thing. No gradients, no blur. */
.mk-art { display: block; overflow: visible; }
.mk-art__grid { stroke: var(--ink-faint); stroke-width: .75; opacity: .55; }
.mk-art__slab { fill: var(--night-2); stroke: var(--night); stroke-width: 1.25; stroke-linejoin: round; }
.mk-art__slab--2 { fill: #2c3d75; }
.mk-art__slab--3 { fill: var(--night-3); }
.mk-art__face { fill: var(--ground); stroke: var(--line-strong); stroke-width: 1.25; }
.mk-art__edge { fill: none; stroke: #2c3d75; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.mk-art__pink { fill: #f5841f; }
.mk-art__ink  { fill: var(--ink); }
.mk-art__sun  { fill: #f5841f; }
.mk-art__sun-line { fill: none; stroke: #f5841f; stroke-width: 2.5; stroke-linecap: round; stroke-linejoin: round; }
.mk-sky .mk-art__slab, a.mk-index__row:hover .mk-art__slab { fill: var(--night-3); stroke: rgba(244, 243, 239, .35); }
.mk-sky .mk-art__face, a.mk-index__row:hover .mk-art__face { fill: rgba(244, 243, 239, .08); stroke: rgba(244, 243, 239, .25); }
.mk-sky .mk-art__grid, a.mk-index__row:hover .mk-art__grid { stroke: rgba(244, 243, 239, .22); }
.mk-sky .mk-art__ink, a.mk-index__row:hover .mk-art__ink { fill: #f4f3ef; }
.mk-sky .mk-art__edge, a.mk-index__row:hover .mk-art__edge { stroke: #8fa0d8; }
.mk-warm .mk-art__edge, .mk-warm .mk-art__pink { stroke: #1b2340; fill: #1b2340; }
.mk-warm .mk-art__edge { fill: none; }

/* ──────────────────────────────────────────────────────────────── cards & grids */

/* The grid draws the lines; the cards inside carry none of their own. */
.mk-grid {
  display: grid; gap: 1px; background: var(--line);
  border: 1px solid var(--line); border-radius: var(--r-lg); overflow: hidden;
}
.mk-grid--3 { grid-template-columns: repeat(3, 1fr); }
.mk-grid--4 { grid-template-columns: repeat(4, 1fr); }
.mk-card {
  background: var(--ground); padding: 1.6rem; min-width: 0;
  transition: background 160ms var(--e);
}
.mk-grid .mk-card:hover { background: var(--ground-2); }
.mk-card > p { color: var(--ink-soft); margin: 0 0 .75rem; }
.mk-card__head { display: flex; align-items: center; gap: .75rem; margin-bottom: .85rem; }
.mk-card__head .mk-h3 { margin: 0; }
.mk-card__icon { width: 20px; height: 20px; color: var(--accent-hi); }
.mk-card__head .mk-glyph { width: 40px; height: 40px; }
.mk-card--pain .mk-card__icon { color: var(--warn); }
.mk-card__lead { color: var(--ink-soft); }
.mk-card .mk-feature__link { margin: .5rem 0 0; }
/* a card outside a grid still needs its own line */
.mk-card:not(.mk-grid > *) { border: 1px solid var(--line); border-radius: var(--r-lg); }

/* ──────────────────────────────────────────────────────────────── steps */

.mk-steps {
  list-style: none; margin: 0; padding: 0;
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 1px;
  background: var(--line); border: 1px solid var(--line); border-radius: var(--r-lg); overflow: hidden;
}
.mk-step { padding: 2rem; background: var(--ground); min-width: 0; }
.mk-step__head { display: flex; flex-direction: column; gap: .8rem; margin-bottom: .75rem; }
.mk-step__head .mk-h3 { margin: 0; }
.mk-step__n { font: 800 clamp(2.6rem, 4vw, 3.6rem)/.85 var(--font-display); letter-spacing: -.04em; color: var(--accent); }
.mk-warm .mk-steps { background: rgba(27, 35, 64, .14); border-color: rgba(27, 35, 64, .14); gap: 1px; }
.mk-warm .mk-step { background: #ffffff; box-shadow: 0 20px 50px -30px rgba(27, 35, 64, .5); }
.mk-warm .mk-checks li { background: rgba(255, 255, 255, .6); border-radius: var(--r); padding: .55rem .75rem; }
.mk-warm .mk-step__n { color: #b4530a; }
.mk-step > p { color: var(--ink-soft); margin: 0; }

/* ──────────────────────────────────────────────────────────────── teaser & checks */

.mk-teaser { display: grid; grid-template-columns: 1.05fr .95fr; gap: 4rem; align-items: start; }
.mk-teaser__copy > p { color: var(--ink-soft); max-width: 56ch; }
.mk-teaser__copy .mk-btn { margin-top: .4rem; }
.mk-teaser__copy .mk-feature__link { margin-top: 1.25rem; }

.mk-checks { list-style: none; margin: 0; padding: 0; }
.mk-checks li {
  display: flex; gap: .8rem; align-items: flex-start;
  padding: .85rem 0; border-top: 1px solid var(--line);
  color: var(--ink-soft); line-height: 1.5;
}
.mk-checks li:last-child { border-bottom: 1px solid var(--line); }
.mk-checks .mk-i { color: var(--ok); width: 16px; height: 16px; margin-top: .3rem; }
.mk-checks strong { color: var(--ink); }

/* ──────────────────────────────────────────────────────────────── feature stanzas */

.mk-features { display: grid; gap: calc(var(--section-y) * .85); }
.mk-feature { display: grid; grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); gap: 3.5rem; align-items: center; }
.mk-feature:nth-child(even) .mk-feature__media { order: 2; }
.mk-feature--solo { grid-template-columns: minmax(0, 1fr); max-width: 760px; }
.mk-feature__media { min-width: 0; }
.mk-feature__body > p { color: var(--ink-soft); }
.mk-feature__body .mk-h2 { margin-bottom: 1rem; }
.mk-feature__body .mk-checks { margin: 1.25rem 0; }
.mk-feature__link { margin: 1.25rem 0 0; }

.mk-nextlinks { display: flex; flex-wrap: wrap; gap: 1.25rem 3rem; }

/* ──────────────────────────────────────────────────────────────── plans */

.mk-plans { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 1rem; }
.mk-plan {
  display: flex; flex-direction: column; gap: .35rem;
  background: var(--ground-2); border: 1px solid var(--line); border-radius: var(--r-lg);
  padding: 1.8rem;
}
/* the featured plan wears the brand ramp as a uniform 3px ring: a double
   background — the card's ground over the gradient — so the ring follows the
   corner radius (a ::before strip could not) */
.mk-plan--featured {
  --ground: var(--night); --ground-2: var(--night); --ink: #f4f3ef; --ink-soft: #cfd2de; --ink-mute: var(--on-night-mute);
  --line: rgba(244, 243, 239, .12); --line-strong: rgba(244, 243, 239, .24); --accent: #f5841f; --accent-hi: #ff9d45; --ok: #5fd68a;
  color: var(--ink); border: 2px solid #f5841f;
  background: radial-gradient(90% 60% at 100% 0%, rgba(245, 132, 31, .22), rgba(245, 132, 31, 0) 60%), var(--night);
  box-shadow: var(--shadow-long); }
.mk-warm .mk-plan { background: rgba(255, 255, 255, .82); border-color: rgba(27, 35, 64, .18); }
.mk-warm .mk-plan--featured { border-color: #1b2340;
  background: radial-gradient(90% 60% at 100% 0%, rgba(245, 132, 31, .22), rgba(245, 132, 31, 0) 60%), var(--night); }
/* the featured card is night even on the warm band, so its primary stays warm */
.mk-warm .mk-plan--featured .mk-btn:not(.mk-btn--ghost) { background: var(--grad-warm); }
.mk-warm .mk-plan--featured .mk-btn:not(.mk-btn--ghost)::after { background: #f07a12; }
.mk .mk-warm .mk-plan--featured .mk-btn:not(.mk-btn--ghost) { color: #1b2340; }
.mk-ring { border: 3px solid transparent;
  background: linear-gradient(var(--ground-2), var(--ground-2)) padding-box, var(--grad-brand) border-box; }
.mk-plan__flag { font: 700 .74rem/1 var(--font-body); letter-spacing: .14em; text-transform: uppercase; color: var(--accent); margin: 0 0 .6rem; }
.mk-plan__name { font: 800 1.15rem/1.2 var(--font-display); text-transform: uppercase; letter-spacing: .04em; color: var(--ink); margin: 0 0 .4rem; }
.mk-plan__price { font: 800 3.2rem/1 var(--font-display); letter-spacing: -.035em; color: var(--ink); margin: 0 0 .4rem; }
.mk-plan__per { font: 400 1rem/1 var(--font-body); color: var(--ink-mute); margin-left: .2rem; }
.mk-plan__custom { font-size: 1.7rem; }
.mk-plan__annual { color: var(--ink-mute); font-size: .9rem; margin: 0 0 .5rem; }
.mk-plan__tagline { color: var(--ink-soft); margin: 0 0 .5rem; }
.mk-plan__for { color: var(--ink-mute); font-size: .9rem; margin: 0 0 1rem; }
.mk-plan__features { list-style: none; margin: .5rem 0 1.5rem; padding: 0; }
.mk-plan__features li { display: flex; gap: .65rem; align-items: flex-start; padding: .55rem 0; border-top: 1px solid var(--line); color: var(--ink-soft); font-size: .95rem; }
.mk-plan__features .mk-i { color: var(--ok); width: 15px; height: 15px; margin-top: .25rem; }
.mk-plan .mk-btn { margin-top: auto; }
.mk-empty { color: var(--ink-mute); }

.mk-billing { display: flex; align-items: center; gap: .9rem; margin: 0 0 2rem; }
.mk-billing__opt { color: var(--ink-soft); font-size: .95rem; }
.mk-billing__save { font: 500 .68rem/1 var(--font-mono); letter-spacing: .08em; text-transform: uppercase;
  color: var(--ok); border: 1px solid rgba(60, 207, 109, .4); padding: .3rem .55rem; border-radius: 999px; margin-left: .5rem; }
.mk-switch { position: relative; display: inline-block; width: 46px; height: 26px; flex: none; }
.mk-switch input { position: absolute; inset: 0; opacity: 0; margin: 0; cursor: pointer; z-index: 1; }
.mk-switch__track { position: absolute; inset: 0; border-radius: 999px; background: var(--ground-3); border: 1px solid var(--line-strong); transition: background 160ms var(--e); }
.mk-switch__track::after { content: ""; position: absolute; top: 3px; left: 3px; width: 18px; height: 18px; border-radius: 50%; background: var(--ink); transition: transform 160ms var(--e); }
.mk-switch input:checked + .mk-switch__track { background: var(--accent); border-color: var(--accent); }
.mk-switch input:checked + .mk-switch__track::after { transform: translateX(20px); }
.mk-switch input:focus-visible + .mk-switch__track { outline: 2px solid var(--accent-hi); outline-offset: 3px; }

.mk-table-scroll { overflow-x: auto; border: 1px solid var(--line); border-radius: var(--r-lg); }
.mk-compare { width: 100%; border-collapse: collapse; font-size: .95rem; min-width: 640px; }
.mk-compare th, .mk-compare td { padding: .85rem 1rem; text-align: left; border-bottom: 1px solid var(--line); vertical-align: top; }
.mk-compare thead th { font: 600 1rem/1.3 var(--font-display); color: var(--ink); background: var(--ground-2); }
.mk-compare tbody th { font-weight: 500; color: var(--ink); }
.mk-compare td { color: var(--ink-soft); }
.mk-compare tr:last-child th, .mk-compare tr:last-child td { border-bottom: 0; }
.mk-compare .mk-i { color: var(--ok); }

/* ──────────────────────────────────────────────────────────────── faq */

.mk-faq { border-top: 1px solid var(--line); }
.mk-faq__item { border-bottom: 1px solid var(--line); }
.mk-faq__item summary {
  display: flex; justify-content: space-between; align-items: center; gap: 1.5rem;
  padding: 1.5rem 0; cursor: pointer; list-style: none; min-height: 44px;
  font: 700 clamp(1.1rem, 1.6vw, 1.35rem)/1.3 var(--font-display); color: var(--ink);
}
.mk-faq__item summary::-webkit-details-marker { display: none; }
.mk-faq__item summary:hover { color: var(--accent-hi); }
.mk-faq__chev { width: 20px; height: 20px; flex: none; color: var(--orange-ink); transition: transform 200ms var(--e); }
.mk-faq__item[open] .mk-faq__chev { transform: rotate(180deg); }
.mk-faq__a { color: var(--ink-soft); padding: 0 0 1.4rem; max-width: 66ch; }
.mk-faq__a p:last-child { margin-bottom: 0; }

/* ──────────────────────────────────────────────────────────────── roadmap */

.mk-road { display: grid; gap: 1.5rem; }
.mk-road__horizon { border: 1px solid var(--line); border-radius: var(--r-lg); padding: 1.6rem 1.8rem; }
.mk-road__head { display: flex; justify-content: space-between; align-items: baseline; gap: 1rem; flex-wrap: wrap; margin-bottom: .5rem; }
.mk-road__head .mk-h3 { margin: 0; }
.mk-road__head p { color: var(--ink-mute); margin: 0; font-size: .92rem; }
.mk-road__items { list-style: none; margin: 0; padding: 0; }
.mk-road__item { padding: 1rem 0; border-top: 1px solid var(--line); }
.mk-road__itemhead { display: flex; align-items: center; gap: .75rem; flex-wrap: wrap; }
.mk-road__itemhead .mk-h3 { margin: 0; font-size: 1.05rem; }
.mk-road__item > p { color: var(--ink-soft); margin: .4rem 0 0; max-width: 66ch; }

.mk-tag {
  display: inline-block; font: 500 .66rem/1 var(--font-mono); letter-spacing: .1em; text-transform: uppercase;
  padding: .3rem .55rem; border-radius: 999px; border: 1px solid var(--line-strong); color: var(--ink-soft);
}
.mk-tag--shipped  { color: var(--ok); border-color: rgba(60, 207, 109, .45); }
.mk-tag--building { color: var(--accent-hi); border-color: rgba(245, 132, 31, .55); }
.mk-tag--next     { color: var(--warn); border-color: rgba(245, 183, 60, .45); }
.mk-tag--later    { color: var(--ink-mute); }

/* ──────────────────────────────────────────────────────────────── cta */

.mk-cta { padding: calc(var(--section-y) * 1.15) 0; border-top: 1px solid var(--line); position: relative; overflow: clip; }
.mk-cta .mk-h2 { font-size: clamp(2.6rem, 6.4vw, 6rem); line-height: .9; max-width: 14ch; letter-spacing: -.03em; }
.mk-cta .mk-wrap { position: relative; z-index: 1; }
/* the closing night's orbs: two soft radial discs that drift (marketing.js);
   soft by construction, never a blur filter */
.mk-orb { position: absolute; border-radius: 50%; pointer-events: none; z-index: 0; will-change: transform; }
.mk-orb--1 { width: 62vmax; height: 62vmax; right: -18vmax; bottom: -34vmax;
             background: radial-gradient(closest-side, rgba(245, 132, 31, .34), rgba(245, 132, 31, 0) 72%); }
.mk-orb--2 { width: 46vmax; height: 46vmax; left: -16vmax; top: -24vmax;
             background: radial-gradient(closest-side, rgba(84, 104, 180, .38), rgba(84, 104, 180, 0) 72%); }
.mk-cta .mk-wrap > p { color: var(--ink-soft); max-width: 56ch; }
.mk-cta.mk-warm .mk-hero__note { color: var(--ink-soft); }
.mk-cta__actions { display: flex; flex-wrap: wrap; gap: .75rem; margin-top: 1.75rem; }
.mk-cta__actions--spaced { margin-top: 2.25rem; }
.mk-cta .mk-feature__link { margin-top: 1.5rem; }
.mk-cta .mk-hero__note { margin-top: 1.25rem; }
.mk-404__links { display: flex; flex-wrap: wrap; gap: 1.25rem 3rem; margin-top: 1.5rem; }

/* ──────────────────────────────────────────────────────────────── early access */

.mk-ea__grid { display: grid; grid-template-columns: 1.1fr .9fr; gap: 4rem; align-items: start; }
.mk-ea__list { list-style: none; margin: 0; padding: 0; }
.mk-ea__list li { display: flex; gap: .8rem; align-items: flex-start; padding: .85rem 0; border-top: 1px solid var(--line); color: var(--ink-soft); }
.mk-ea__list li:last-child { border-bottom: 1px solid var(--line); }
.mk-ea__list .mk-i { color: var(--ok); margin-top: .3rem; }
.mk-ea__quiet { color: var(--ink-mute); font-size: .92rem; }
.mk-ea__form { background: var(--ground-2); border: 1px solid var(--line); border-radius: var(--r-lg); padding: 1.8rem; position: relative; }
.mk-ea__label { display: block; font-size: .9rem; color: var(--ink-soft); margin: 0 0 .45rem; }
.mk-ea__input, .mk-ws__row input {
  width: 100%; background: var(--ground); color: var(--ink);
  border: 1px solid var(--line-strong); border-radius: var(--r);
  padding: .8rem .95rem; font: inherit; margin: 0 0 1rem;
  transition: border-color 160ms var(--e);
}
.mk-ea__input:focus, .mk-ws__row input:focus { outline: none; border-color: var(--accent); }
.mk-ea__submit { width: 100%; }
.mk-ea__out { margin: 1rem 0 0; min-height: 1.5em; color: var(--ink-soft); font-size: .95rem; }
.mk-ea__out.is-ok { color: var(--ok); }
.mk-ea__out.is-error { color: var(--warn); }
.mk-ea__trap { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }

/* ──────────────────────────────────────────────────────────────── worksheet */

.mk-ws__grid { display: grid; grid-template-columns: 1.15fr .85fr; gap: 3rem; align-items: start; }
.mk-ws__sheet { border: 1px solid var(--line); border-radius: var(--r-lg); overflow: hidden; margin: 0; }
.mk-ws__intro { color: var(--ink-soft); padding: 1.3rem 1.4rem; margin: 0; }
.mk-ws__row { border: 0; margin: 0; padding: 1.1rem 1.4rem; border-top: 1px solid var(--line); display: grid; gap: .6rem; }
.mk-ws__legend { font: 600 1rem/1.3 var(--font-display); color: var(--ink); padding: 0; float: left; width: 100%; margin-bottom: .4rem; }
.mk-ws__row label { display: grid; grid-template-columns: 1fr 160px; gap: 1rem; align-items: center; color: var(--ink-soft); font-size: .95rem; }
.mk-ws__row input { margin: 0; text-align: right; font-variant-numeric: tabular-nums; }
.mk-ws__result { position: sticky; top: calc(var(--nav-h) + 1.25rem); display: grid; gap: 1rem; }
.mk-ws__result .mk-stat { border: 1px solid var(--accent); border-radius: var(--r-lg); background: var(--ground-2); }
.mk-ws__result .mk-stat__value { font-size: 2.6rem; }
.mk-ws__compare, .mk-ws__plan { border: 1px solid var(--line); border-radius: var(--r-lg); padding: 1.3rem 1.4rem; }
.mk-ws__compare-head { font-weight: 500; color: var(--ink); margin: 0 0 .75rem; }
.mk-ws__compare ul, .mk-ws__steps { margin: 0; padding: 0; list-style: none; }
.mk-ws__compare li, .mk-ws__steps li { display: flex; gap: .75rem; align-items: flex-start; padding: .55rem 0; border-top: 1px solid var(--line); color: var(--ink-soft); font-size: .95rem; }
.mk-ws__steps .mk-step__n { margin-top: .3rem; }

/* ──────────────────────────────────────────────────────────────── examples & reviews */

.mk-ex__logo { display: flex; align-items: center; justify-content: center; padding: 2.5rem;
  border: 1px solid var(--line); border-radius: var(--r-lg); background: var(--ground-2); }
.mk-ex__logo img { max-width: 220px; height: auto; border-radius: 18px; }
.mk-rev__stars { display: flex; gap: 2px; margin-bottom: .5rem; }
.mk-rev__stars .mk-i { fill: var(--warn); stroke: var(--warn); width: 16px; height: 16px; }

/* ──────────────────────────────────────────────────────────────── footer */

.mk-foot {
  --ground: var(--night); --ground-2: var(--night-2); --ground-3: var(--night-3);
  --ink: #f3f5fb; --ink-soft: rgba(243, 245, 251, .74); --ink-mute: var(--on-night-mute);
  --ink-faint: rgba(243, 245, 251, .32);
  --line: rgba(243, 245, 251, .10); --line-strong: rgba(243, 245, 251, .20);
  border-top: 1px solid var(--line); padding: 5rem 0 2rem; background: var(--night-deep); color: var(--ink);
  position: relative; overflow: clip; isolation: isolate;
}
.mk-foot::before { content: ""; position: absolute; inset: 0; z-index: -1; pointer-events: none;
                   background-image: var(--grain); background-size: 220px; opacity: .08; mix-blend-mode: overlay; }
/* the wordmark across the foot: the brand at the width of the page */
.mk .mk-foot__mark { max-width: var(--wrap); margin: 4.5rem auto 0; padding: 0 var(--gutter);
                 font: 800 clamp(1.6rem, 6.4vw, 5.5rem)/.95 var(--font-display); letter-spacing: -.045em; text-transform: uppercase;
                 white-space: nowrap; color: transparent; -webkit-text-stroke: 1px rgba(244, 243, 239, .34); user-select: none; }
.mk-foot__mark span { -webkit-text-stroke: 0; color: #f5841f; }
.mk-foot__inner {
  max-width: var(--wrap); margin: 0 auto; padding: 0 var(--gutter);
  display: grid; grid-template-columns: 1.7fr repeat(5, 1fr); gap: 2.5rem;
}
.mk-foot__brand img { height: 30px; width: auto; display: block; margin-bottom: 1.1rem; }
.mk-foot__brand p { color: var(--ink-mute); font-size: .92rem; line-height: 1.55; max-width: 34ch; margin: 0 0 .75rem; }
.mk-foot__ie { color: var(--ink-soft); }
.mk-foot__title { font: 800 .8rem/1 var(--font-body); letter-spacing: .14em; text-transform: uppercase; color: var(--ink); margin: .3rem 0 1.1rem; }
.mk-foot__group ul { list-style: none; margin: 0; padding: 0; display: grid; gap: .5rem; }
.mk-foot__group a { color: var(--ink-soft); font-size: .92rem; }
.mk .mk-foot__group a:hover { color: #ff9d45; }
.mk-foot__legal {
  max-width: var(--wrap); margin: 3rem auto 0; padding: 1.5rem var(--gutter) 0;
  border-top: 1px solid var(--line);
  display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 1rem 2rem;
  color: var(--ink-mute); font-size: .85rem;
}
.mk-foot__legal a { color: var(--ink-soft); }
.mk-foot__legal-text p, .mk-foot__made { margin: 0; }
.mk-foot__made { display: flex; align-items: center; gap: .5rem; }
.mk-foot__snazzy img { height: 20px; width: auto; display: block; opacity: .85; }
.mk-foot__social { display: flex; gap: .5rem; }
.mk-foot__social a {
  width: 44px; height: 44px; border-radius: 999px; border: 1px solid var(--line-strong);
  display: inline-flex; align-items: center; justify-content: center; color: var(--ink-soft);
}
.mk .mk-foot__social a:hover { color: #1b2340; background: #f5841f; border-color: #f5841f; }
.mk-foot__social .mk-i { width: 16px; height: 16px; }

/* ──────────────────────────────────────────────────────────────── reveal */

/* Engaged only under html.js (set inline in the head). A reader without
   JavaScript never gets the hiding rule; a reader asking for reduced
   motion gets the final state. With GSAP present marketing.js strips the
   attribute (takeOver) and animates the same elements itself. */
.js .mk [data-reveal] { opacity: 0; transform: translateY(14px); transition: opacity var(--d) var(--e), transform var(--d) var(--e); }
/* the hand-rolled line split wraps words in these; no overflow clipping, so
   descenders and the clipped-gradient span survive */
.mk-w { display: inline-block; white-space: nowrap; }
.mk-w-i { display: inline-block; }
.js .mk [data-reveal].in { opacity: 1; transform: none; }
.js .mk [data-delay="1"] { transition-delay: 80ms; }
.js .mk [data-delay="2"] { transition-delay: 160ms; }
.js .mk [data-delay="3"] { transition-delay: 240ms; }

/* ──────────────────────────────────────────────────────────────── legacy no-ops */

/* Classes an older view may still carry. .mk-night is an alias of the sky;
   the rest render as nothing, deliberately. */
.mk-night { --ground: var(--night); --ground-2: var(--night-2); --ink: #f3f5fb; --ink-soft: rgba(244,241,251,.74);
            --ink-mute: var(--on-night-mute); --line: rgba(244,241,251,.10); background: var(--night); color: var(--ink); }
.mk-band, .mk-section--tint { background: transparent; }
.mk-glow, .mk-grain, .mk-ticker, .mk-floaty, .mk-hero__swirl, .mk-rail__progress, .mk-hero__chips, .mk-wa { display: none; }
.mk-rail__track { display: contents; }

/* ──────────────────────────────────────────────────────────────── responsive */

@media (max-width: 1040px) {
  .mk-teaser, .mk-feature, .mk-ea__grid, .mk-ws__grid, .mk-hero__inner, .mk-page-head--split .mk-wrap { grid-template-columns: 1fr; gap: 2.5rem; }
  .mk-hero .mk-display { max-width: 14ch; }
  .mk-stack { margin-top: 2rem; }
  .mk-shot--tilt, .mk-feature:nth-child(even) .mk-shot--tilt { transform: none; }
  .mk-feature:nth-child(even) .mk-feature__media { order: 0; }
  .mk-ledger, .mk-stats__grid { grid-template-columns: repeat(2, 1fr); }
  .mk-grid--4, .mk-grid--3 { grid-template-columns: repeat(2, 1fr); }
  .mk-foot__inner { grid-template-columns: 1fr 1fr; }
  .mk-foot__brand { grid-column: 1 / -1; }
  .mk-ws__result { position: static; }
}

@media (max-width: 760px) {
  body.mk { --nav-h: 64px; --nav-block: 64px; }
  .mk-nav__inner { gap: 18px; }
  .mk-nav__logo { height: 28px; }
  .mk-nav__ie { display: none; }
  .mk-nav__toggle { display: inline-flex; }
  .mk-nav__drawer { display: none; }
  /* ONE panel, links and actions, CTA included; the toggle stays in the
     capsule and reads as the close button. */
  body.mk-nav-open .mk-nav__drawer {
    display: flex; flex-direction: column; align-items: stretch; gap: 1rem;
    position: absolute; top: calc(var(--nav-h) + 8px); left: var(--gutter); right: var(--gutter);
    padding: 1rem 1.1rem 1.25rem;
    background: var(--night-2); border: 1px solid var(--night-3); border-radius: var(--r-lg);
    box-shadow: 0 24px 60px -24px rgba(0, 0, 0, .8);
    max-height: calc(100vh - 90px); overflow-y: auto;
  }
  .mk-nav__links { flex-direction: column; align-items: stretch; gap: 0; }
  .mk-nav__item { flex-direction: column; align-items: stretch; }
  .mk-nav__links > a, .mk-nav__item > a { padding: .75rem .25rem; border-bottom: 1px solid rgba(243, 245, 251, .10); }
  .mk-nav__chev { display: none; }
  .mk-nav__sub {
    position: static; opacity: 1; visibility: visible; transform: none; min-width: 0;
    background: transparent; border: 0; border-left: 1px solid rgba(243, 245, 251, .2); border-radius: 0;
    box-shadow: none; margin: .3rem 0 .4rem; padding: .2rem 0 .2rem .8rem;
  }
  .mk-nav__sub::before { display: none; }
  .mk-nav__sub a { white-space: normal; }
  .mk-nav__actions { margin-left: 0; padding-right: 0; justify-content: space-between; }
  .mk-nav__actions .mk-btn { flex: 1; }

  .mk-section { padding: 3.25rem 0; }
  .mk-section__head { margin-bottom: 2rem; }
  .mk-hero { padding-top: calc(var(--nav-block) + 2rem); padding-bottom: 4.5rem; }   /* clears the fixed bar */
  .mk-stack { aspect-ratio: 16 / 12; margin-top: 1rem; perspective: 900px; }
  .mk-stack__base { inset: 8% 0 0 0; width: 100%; transform: rotateX(4deg) rotateY(-6deg); }
  .mk-stack__frag--portal, .mk-stack__frag--backup { display: none; }
  .mk-stack__frag--server  { left: 0;  top: 0; width: 38%; }
  .mk-stack__frag--uptime  { right: 0; top: -2%; width: 38%; }
  .mk-stack__frag--invoice { left: 4%; bottom: 2%; width: 44%; }
  .mk-stack__frag--ai      { right: 0; top: 36%; width: 40%; }
  .mk-sky__horizon { display: none; }
  .mk-index__row--icon, .mk-index__row--art { grid-template-columns: 2.5rem minmax(0, 1fr); }
  .mk-index__i, .mk-index__art { display: none; }
  .mk-page-head__art { display: none; }
  .mk-display { max-width: none; }
  .mk-ledger, .mk-stats__grid, .mk-grid--4, .mk-grid--3, .mk-steps { grid-template-columns: 1fr; }
  .mk-index__row { grid-template-columns: 2.5rem minmax(0, 1fr); gap: .35rem 1rem; }
  .mk-index__n { grid-row: 1; }
  .mk-index__t { grid-column: 2; }
  .mk-index__d { grid-column: 2; }
  .mk-index__go { display: none; }
  .mk-foot__inner { grid-template-columns: 1fr; gap: 2rem; }
  .mk-foot__legal { flex-direction: column; align-items: flex-start; }
  .mk-ws__row label { grid-template-columns: 1fr; }
  .mk-ws__row input { text-align: left; }
}

/* ──────────────────────────────────────────────────────────────── reduced motion */

@media (prefers-reduced-motion: reduce) {
  .mk *, .mk *::before, .mk *::after { transition-duration: .001ms !important; animation: none !important; }
  .js .mk [data-reveal] { opacity: 1; transform: none; }
  html:has(body.mk) { scroll-behavior: auto; }
  .mk-sky__canvas { display: none; }
}

/* DigitalAgency.Tools layer — the few rules this site adds to the shared
   snazzy marketing system. */
.mk-teaser--after { margin-top: calc(var(--section-y) * .8); }
.mk-card > .mk-shot { margin: 0 0 1.1rem; box-shadow: none; }
/* the sprite carries `hidden`, which an `svg { display }` rule elsewhere
   outranks; without this the sprite reserves 150px above the nav */
body.mk > svg[hidden] { display: none; }
/* Large screenshots. A pillar stanza with a shot puts its words in a row
   (title | body) above the shot at the full width of the wrap; the home
   tour shows one big frame per tab. [data-zoom] opens the shot full size. */
.mk-feature--wide { grid-template-columns: minmax(0, 1fr); gap: 2.25rem; }
.mk-feature--wide .mk-feature__media,
.mk-feature--wide:nth-child(even) .mk-feature__media { order: 2; }
.mk-feature--wide .mk-feature__body { display: grid; grid-template-columns: minmax(0, 6fr) minmax(0, 6fr); column-gap: 3.5rem; align-items: start; }
.mk-feature--wide .mk-feature__body > .mk-h2 { grid-row: span 2; margin: 0; }
.mk-feature--wide .mk-feature__body > p { margin-top: 0; }
.mk-feature--wide .mk-feature__body .mk-checks { margin: .25rem 0 0; }
.mk-feature--wide .mk-checks { display: grid; grid-template-columns: repeat(auto-fit, minmax(14rem, 1fr)); gap: .5rem 1.5rem; }
[data-zoom] { display: block; cursor: zoom-in; }
.mk-tour__tabs { display: flex; flex-wrap: wrap; gap: .5rem; margin: 0 0 1.75rem; }
.mk-tour__tab { font: 800 .82rem/1 var(--font-body, inherit); text-transform: uppercase; letter-spacing: .08em;
                color: var(--ink-soft); background: transparent; min-height: 44px;
                border: 1px solid var(--line-strong); border-radius: 999px; padding: .75rem 1.2rem; cursor: pointer;
                transition: color 160ms var(--e), background 160ms var(--e), border-color 160ms var(--e); }
.mk-tour__tab:hover { color: var(--ink); border-color: var(--accent-hi); }
.mk-tour__tab[aria-selected="true"] { color: #fff; background: var(--accent); border-color: var(--accent); }
/* on the sky the accent is orange: a light fill carries navy ink, never white */
.mk-sky .mk-tour__tab[aria-selected="true"] { color: #1b2340; }
.mk-tour__tab:focus-visible { outline: 2px solid var(--accent-hi); outline-offset: 3px; }
.mk-tour__panel { margin: 0; }
.mk-tour__panel + .mk-tour__panel { margin-top: 2.5rem; }
.js .mk-tour__panel + .mk-tour__panel { margin-top: 0; }
.js .mk-tour__panel[hidden] { display: none; }
.mk-tour__cap { display: flex; flex-wrap: wrap; align-items: baseline; justify-content: space-between; gap: .5rem 1.5rem;
                margin-top: 1.1rem; color: var(--ink-soft); }
.mk-zoom { padding: 0; border: 0; background: transparent; max-width: 96vw; max-height: 94vh; overflow: visible; }
.mk-zoom::backdrop { background: rgba(14, 10, 32, .86); }
.mk-zoom img { display: block; max-width: 96vw; max-height: 90vh; width: auto; height: auto; border-radius: var(--r-lg);
               box-shadow: 0 40px 120px -40px rgba(0, 0, 0, .8); }
.mk-zoom__close { position: absolute; top: -.75rem; right: -.75rem; width: 40px; height: 40px; border-radius: 50%;
                  border: 0; background: #fff; color: #1b2340; font: 600 1.4rem/1 var(--font-body, inherit); cursor: pointer; }
.mk-zoom__close:focus-visible { outline: 2px solid #f5841f; outline-offset: 3px; }
@media (max-width: 900px) {
  .mk-feature--wide .mk-feature__body { grid-template-columns: 1fr; }
  .mk-feature--wide .mk-feature__body > .mk-h2 { grid-row: auto; margin-bottom: 1rem; }
  .mk-tour__tabs { flex-wrap: nowrap; overflow-x: auto; margin-inline: calc(var(--gutter) * -1); padding: 0 var(--gutter) .25rem; scrollbar-width: none; }
  .mk-tour__tab { flex: none; }
}

/* ──────────────────────────────────────────────────────────────── 2026-11 night & signal */

/* The marquee: the modules, one strip between hairlines, words in the
   display face with orange dots between. The list is printed twice so the
   loop is seamless; CSS runs it (reduced motion stops every animation). */
.mk-marquee { overflow: clip; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line);
              background: var(--ground); padding: 1.35rem 0; }
.mk-marquee__track { display: flex; width: max-content; animation: mk-marquee 42s linear infinite; }
.mk-marquee:hover .mk-marquee__track { animation-play-state: paused; }
.mk-marquee__list { display: flex; align-items: center; flex: none; margin: 0; padding: 0; list-style: none; }
.mk-marquee__list li { display: flex; align-items: center; font: 800 clamp(1.2rem, 2vw, 1.6rem)/1 var(--font-display);
                       text-transform: uppercase; letter-spacing: -.01em; color: var(--ink); white-space: nowrap; }
.mk-marquee__list li::after { content: ""; width: 9px; height: 9px; border-radius: 50%; background: #f5841f; margin: 0 2.2rem; }
@keyframes mk-marquee { to { transform: translateX(-50%); } }

/* split-line headings: marketing.js wraps each word in a mask and raises
   it; the mask's padding keeps descenders inside it */
.mk-w--mask { overflow: hidden; vertical-align: top; padding-bottom: .14em; margin-bottom: -.14em; }

/* a section's head can sit across the full width with the lede to its right */
.mk-section__head--split { max-width: none; display: grid; grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); column-gap: 3.5rem; align-items: end; }
.mk-section__head--split > .mk-kicker { grid-column: 1 / -1; }
.mk-section__head--split .mk-h2 { margin: 0; }
.mk-section__head--split .mk-lede { margin: 0; }

/* on the night, a shot gets a warm edge and a long drop */
.mk-sky .mk-shot { border-color: rgba(244, 243, 239, .18); }
/* image wipe on entry (marketing.js); at rest the frame is whole */
[data-wipe] { will-change: clip-path; }

@media (max-width: 1040px) {
  .mk-hero__inner { grid-template-columns: 1fr; }
  .mk-hero .mk-stack { margin-top: 2.5rem; }
  .mk-section__head--split { grid-template-columns: 1fr; row-gap: 1.25rem; }
  .mk-ledger--stats { row-gap: 2.5rem; }
  .mk-ledger--stats .mk-ledger__cell:nth-child(odd) { padding-left: 0; border-left: 0; }
  .mk-ledger--stats .mk-ledger__cell:nth-child(odd)::before { left: 0; }
  .mk-page-head { min-height: 0; }
}
@media (max-width: 760px) {
  .mk-hero { min-height: 0; padding-bottom: calc(var(--section-y) + 2rem); }
  .mk-hero .mk-display { max-width: none; margin-bottom: 1.5rem; }
  .mk-nav__links > a::after, .mk-nav__item > a::after { display: none; }
  .mk-ledger--stats .mk-ledger__cell { padding: 1.5rem 0 0; border-left: 0 !important; }
  .mk-ledger--stats .mk-ledger__cell::before { left: 0 !important; }
  .mk-marquee { padding: 1rem 0; }
  .mk-marquee__list li::after { margin: 0 1.4rem; }
  .mk-step { padding: 1.5rem; }
  .mk-foot__mark { margin-top: 2.5rem; }
}
@media (prefers-reduced-motion: reduce) {
  .mk-marquee__track { animation: none; }
  .mk-marquee { overflow-x: auto; }
}

/* a pillar page's last word: the next pillar, as one big link */
.mk-next { padding-block: calc(var(--section-y) * .7); }
.mk-next__link { position: relative; display: grid; grid-template-columns: minmax(0, 1fr) auto; column-gap: 2rem; align-items: end;
                 padding: 2.25rem 0; border-top: 1px solid var(--line-strong); border-bottom: 1px solid var(--line-strong); }
.mk-next__link .mk-kicker { grid-column: 1 / -1; margin-bottom: 1rem; }
.mk-next__name { font: 800 clamp(2.4rem, 6vw, 5.5rem)/.9 var(--font-display); text-transform: uppercase; letter-spacing: -.03em;
                 color: var(--ink); transition: color 320ms var(--e); }
.mk-next__tag { grid-column: 1; color: var(--ink-soft); margin-top: .9rem; max-width: 60ch; }
.mk-next__go { grid-column: 2; grid-row: 2 / span 2; align-self: center; width: clamp(36px, 4vw, 56px); height: clamp(36px, 4vw, 56px);
               color: var(--orange-ink); transition: transform 320ms var(--e); }
.mk .mk-next__link:hover .mk-next__name { color: var(--orange-ink); }
.mk-next__link:hover .mk-next__go { transform: translateX(8px); }
.mk-next__all { margin: 1.5rem 0 0; }

/* the legal pages (/pages/terms, /pages/privacy): a sticky contents list
   beside the document; one column on small screens */
.mk-legal { display: grid; grid-template-columns: minmax(0, 3fr) minmax(0, 8fr); gap: 3.5rem; align-items: start; }
.mk-legal__toc { position: sticky; top: calc(var(--nav-h) + 1.5rem); font-size: .95rem; }
.mk-legal__toc ol { margin: 0; padding-left: 1.25rem; color: var(--ink-mute); }
.mk-legal__toc li { margin: 0 0 .45rem; }
.mk-legal__toc a { color: var(--ink-soft); }
.mk-legal__toc a:hover { color: var(--orange-ink); }
.mk-legal__body { max-width: 72ch; overflow-wrap: break-word; }
.mk-legal__h { font: 700 1.45rem/1.25 var(--font-display); color: var(--ink); scroll-margin-top: calc(var(--nav-h) + 1.5rem); margin-bottom: 1rem; }
.mk-legal__body > p:first-child { font-size: 1.15rem; color: var(--ink); }
.mk-prose ul, .mk-prose ol { margin: 0 0 1.25rem; padding-left: 1.4rem; }
.mk-prose li { margin: 0 0 .5rem; }
.mk-prose h3 { font: 700 1.1rem/1.3 var(--font-display); color: var(--ink); margin: 1.75rem 0 .75rem; }
.mk-prose strong { color: var(--ink); }
.mk-prose table { width: 100%; border-collapse: collapse; margin: 0 0 1.5rem; font-size: .95rem; display: block; overflow-x: auto; }
.mk-prose th, .mk-prose td { text-align: left; vertical-align: top; padding: .65rem .9rem .65rem 0; border-bottom: 1px solid var(--line); }
.mk-prose th { color: var(--ink); font-weight: 700; border-bottom-color: var(--line-strong); }
@media (max-width: 900px) {
  .mk-legal { grid-template-columns: minmax(0, 1fr); gap: 2rem; }
  .mk-legal__toc { position: static; }
}
