/* marked product page (body.mk). The brand as drawn in its Figma: electric violet under a soft-light gradient
   and grain, lavender as the light ground, the brushstroke M as the only symbol. Bricolage Grotesque for
   display, Montserrat for text, Roboto Mono for labels; pill buttons with bold italic capitals. */
body.mk {
  --mk-violet: #4312cc; --mk-bright: #5b21e6; --mk-deep: #2a0a8f; --mk-ink: #170b3f;
  --mk-lav: #eee8ff; --mk-dark: #0e0e0e; --mk-dark2: #1a1a1a; --mk-lilac: #c9b8ff; --mk-line: rgba(67,18,204,.14); --mk-text2: #4a3f73;
  --mk-display: "Bricolage Grotesque", "Montserrat", ui-sans-serif, system-ui, sans-serif;
  --mk-body: "Montserrat", ui-sans-serif, system-ui, sans-serif;
  --mk-mono: "Roboto Mono", ui-monospace, Menlo, monospace;
  --mk-sec: clamp(72px, 9vw, 128px);
  background: #fff; color: var(--mk-ink);
}

/* the brand ground: violet, gradient in soft light, grain in overlay */
.mk-grain { background: url("../assets/marked/tex/noise.png") 0 0 / 146px 146px, url("../assets/marked/tex/gradient.jpg") center / cover no-repeat, var(--mk-violet); background-blend-mode: overlay, soft-light, normal; color: #fff; }
/* the dark ground (#0E0E0E), with the same grain */
.mk-dark { background: url("../assets/marked/tex/noise.png") 0 0 / 146px 146px, var(--mk-dark); background-blend-mode: overlay, normal; color: #fff; }
.mk-dark .mk-h2 em { color: var(--mk-lilac); }
.mk-dark .mk-eyebrow { color: var(--mk-lilac); }
.mk-dark .mk-p { color: rgba(255,255,255,.72); }

/* type */
.mk-eyebrow { font: 500 13px/1.2 var(--mk-mono); letter-spacing: .04em; text-transform: uppercase; color: var(--mk-violet); }
.mk-grain .mk-eyebrow { color: var(--mk-lilac); }
.mk-h1 { font: 700 clamp(52px, 8.4vw, 124px)/.92 var(--mk-display); letter-spacing: -0.045em; margin: 0; text-wrap: balance; }
.mk-h2 { font: 700 clamp(34px, 4.6vw, 64px)/1 var(--mk-display); letter-spacing: -0.04em; margin: 0; text-wrap: balance; }
.mk-h3 { font: 700 clamp(22px, 2vw, 28px)/1.1 var(--mk-display); letter-spacing: -0.03em; margin: 0; }
.mk-h1 em { font-style: normal; color: var(--mk-lilac); }
.mk-h2 em { font-style: normal; color: var(--mk-violet); }
.mk-grain .mk-h2 em { color: var(--mk-lilac); }
.mk-p { font: 400 clamp(16px, 1.25vw, 19px)/1.55 var(--mk-body); color: var(--mk-text2); margin: 0; max-width: 60ch; letter-spacing: 0; }
.mk-grain .mk-p { color: rgba(255,255,255,.84); }

/* pill buttons, as on the product's own sign-in screen */
.mk-actions { display: flex; flex-wrap: wrap; gap: 12px; }
.mk-btn { display: inline-flex; align-items: center; justify-content: center; gap: 10px; min-height: 54px; padding: 0 30px; border-radius: 100px; text-decoration: none; font: 700 15px/1 var(--mk-body); letter-spacing: 0; transition: transform .25s ease, background .25s ease, box-shadow .25s ease; }
.mk-btn.solid { background: #fff; color: var(--mk-violet); font-style: italic; text-transform: uppercase; box-shadow: 0 12px 30px rgba(23,11,63,.25); }
.mk-btn.line { background: rgba(255,255,255,.2); color: #fff; box-shadow: inset 0 0 0 2px #fff; font-weight: 600; }
.mk-btn.violet { background: var(--mk-violet); color: #fff; font-style: italic; text-transform: uppercase; box-shadow: 0 12px 30px rgba(67,18,204,.3); }
.mk-btn.ghost { background: transparent; color: var(--mk-violet); box-shadow: inset 0 0 0 2px var(--mk-violet); font-weight: 600; }
.mk-btn:hover { transform: translateY(-2px); }
.mk-btn.line:hover { background: rgba(255,255,255,.3); }

/* ---------- hero ---------- */
.mk-hero { position: relative; overflow: hidden; padding: clamp(28px, 4vw, 56px) 0 clamp(170px, 22vw, 320px); }
.mk-hero .wrap { position: relative; z-index: 1; }
.mk-hero .crumbs { color: rgba(255,255,255,.62); margin: 0; }
.mk-hero .crumbs a { color: inherit; }
.mk-hero-in { display: grid; justify-items: center; text-align: center; gap: 26px; margin-top: clamp(32px, 5vw, 72px); }
.mk-hero .mk-p { max-width: 50ch; }
.mk-hero .mk-actions { justify-content: center; margin-top: 6px; }
.mk-iso { width: clamp(88px, 9vw, 128px); height: auto; display: block; }
.mk-iso.draw { clip-path: inset(0 100% 0 0); animation: mk-draw 1.1s cubic-bezier(.65,0,.35,1) .15s forwards; }
@keyframes mk-draw { to { clip-path: inset(0 0 0 0); } }
.mk-hero-mark { position: absolute; z-index: 0; right: -8vw; bottom: -10vw; width: min(56vw, 820px); height: auto; opacity: .08; pointer-events: none; }

/* ---------- the film, in a browser window rising out of the hero ---------- */
.mk-stage { position: relative; padding-bottom: var(--mk-sec); }
.mk-window { position: relative; z-index: 1; margin-top: calc(clamp(170px, 22vw, 320px) * -1 + 40px); border-radius: 20px; background: var(--mk-dark); box-shadow: 0 50px 100px rgba(0,0,0,.45), 0 0 0 1px rgba(255,255,255,.08); overflow: hidden; }
.mk-chrome { display: flex; align-items: center; gap: 8px; height: 44px; padding: 0 16px; border-bottom: 1px solid #222; background: var(--mk-dark); }
.mk-chrome i { width: 11px; height: 11px; border-radius: 50%; background: #2c2c2c; flex: none; }
.mk-chrome span { flex: 1; max-width: 340px; margin: 0 auto; height: 26px; border-radius: 100px; background: var(--mk-dark2); display: flex; align-items: center; justify-content: center; gap: 8px; font: 500 12px/1 var(--mk-mono); color: rgba(255,255,255,.7); }
.mk-chrome span img { width: 15px; height: auto; }
.mk-chrome b { width: 49px; flex: none; }
.mk-window .film-view { position: relative; aspect-ratio: 16 / 10; overflow: hidden; background: var(--mk-dark); }
.mk-window .film-cam { width: 100%; height: 100%; will-change: transform; }
.mk-window .film-cam video { width: 100%; height: 100%; object-fit: cover; display: block; }
.mk .film-play { position: absolute; right: 16px; bottom: 16px; z-index: 2; width: 46px; height: 46px; border-radius: 50%; border: 0; background: var(--mk-violet); cursor: pointer; display: grid; place-items: center; box-shadow: 0 8px 20px rgba(67,18,204,.4); }
.mk .film-play::before { content: ""; width: 0; height: 0; border-left: 12px solid #fff; border-top: 8px solid transparent; border-bottom: 8px solid transparent; margin-left: 3px; }
.mk .playing .film-play::before { width: 12px; height: 14px; border: 0; margin: 0; background: linear-gradient(90deg, #fff 0 4px, transparent 4px 8px, #fff 8px 12px); }
.mk .film-chapters { display: flex; flex-wrap: wrap; justify-content: center; gap: 8px; margin-top: 28px; }
.mk .film-chapters button { --p: 0; position: relative; overflow: hidden; border: 0; cursor: pointer; padding: 12px 18px; border-radius: 100px; background: var(--mk-dark2); color: rgba(255,255,255,.72); font: 600 13px/1 var(--mk-body); box-shadow: inset 0 0 0 1px rgba(255,255,255,.08); transition: background .3s, color .3s; }
.mk .film-chapters button::after { content: ""; position: absolute; left: 0; bottom: 0; height: 3px; width: calc(var(--p) * 100%); background: var(--mk-violet); }
.mk .film-chapters button[aria-current="true"] { background: var(--mk-violet); color: #fff; box-shadow: none; }
.mk .film-chapters button[aria-current="true"]::after { background: var(--mk-lilac); }
.mk-note { margin: 18px 0 0; text-align: center; font: 500 12px/1.4 var(--mk-mono); color: rgba(255,255,255,.55); }

/* section scaffolding */
.mk-sec { padding-block: var(--mk-sec); }
.mk-head { display: grid; gap: 18px; margin-bottom: clamp(32px, 4.5vw, 56px); }
@media (min-width: 960px) { .mk-head.split { grid-template-columns: 1.15fr 1fr; align-items: end; column-gap: 48px; } }

@media (prefers-reduced-motion: reduce) { .mk-iso.draw { animation: none; clip-path: none; } }
@media (max-width: 640px) {
  .mk-btn { min-height: 50px; padding: 0 22px; font-size: 14px; }
  .mk-hero .mk-actions { width: 100%; }
  .mk-hero .mk-actions .mk-btn { flex: 1 1 auto; }
  .mk-chrome span { font-size: 11px; }
  .mk-window { border-radius: 14px; }
}
