/* customcommercials.ai marketing site. One dark, cinematic, amber theme, scoped to .mk (the (site)
   layout and the blog wrap their pages in it) so the app's light pages are untouched. Mobile first:
   every rule is for phones, min-width queries build up. Tokens, type, layout, components, motion. */

/* ==== 0. Scope, tokens, reset ==== */
html:has(.mk), body:has(.mk) { background: #06070d; color-scheme: dark; overflow-x: clip; }
.mk {
  --page: #06070d;
  --surface: #0d0f1c;
  --surface-2: #131631;
  --surface-3: #1a1e3d;
  --glass: rgba(16, 18, 38, .62);
  --ink: #f4f5ff;
  --ink-2: #d4d6ee;
  --muted: #a4a8c8;
  --faint: #7d81a6;
  --line: rgba(255, 255, 255, .09);
  --line-2: rgba(255, 255, 255, .16);
  --line-accent: rgba(255, 176, 32, .5);
  --accent: #ffb020;
  --accent-ink: #1a1206;
  --accent-2: #ff7a45;
  --accent-text: #ffd99a;
  --accent-soft: rgba(255, 176, 32, .14);
  --accent-soft-2: rgba(255, 176, 32, .28);
  --brand: #b45309;
  --grad: linear-gradient(100deg, #ffb020, #ff7a45);
  --grad-text: linear-gradient(100deg, #ffd166 0%, #ffb020 45%, #ff9a5c 100%);
  --ok: #2fe0a8; --ok-soft: rgba(47, 224, 168, .13);
  --warn: #ffb547; --warn-soft: rgba(255, 181, 71, .13);
  --danger: #ff8a8a; --danger-soft: rgba(255, 138, 138, .12);
  --shadow-1: 0 30px 80px -30px rgba(0, 0, 0, .8);
  --shadow-amber: 0 40px 120px -50px rgba(255, 176, 32, .8);
  --glow: 0 10px 36px -8px rgba(255, 176, 32, .75);
  --r-sm: 8px; --r-md: 12px; --r-lg: 18px; --r-xl: 22px; --r-pill: 999px;
  --display: "Sora", "Sora fallback", "Avenir Next", "Segoe UI", sans-serif;
  --body: "Inter", "Inter fallback", "Helvetica Neue", Arial, sans-serif;
  --mono: ui-monospace, "SF Mono", Menlo, monospace;
  --gutter: 16px;
  --section: clamp(64px, 9vw, 120px);
  --wrap: 1240px; --wrap-mid: 980px; --wrap-narrow: 760px;
  --header-h: 64px;
  --ease: cubic-bezier(.2, .7, .2, 1);
  --t-fast: 150ms; --t-base: 200ms; --t-slow: 320ms; --t-reveal: 700ms;
  color-scheme: dark;
  min-height: 100vh;
  background: var(--page);
  color: var(--ink);
  font: 17px/1.6 var(--body);
  -webkit-font-smoothing: antialiased;
  overflow-x: clip;
}
@media (min-width: 700px) { .mk { --gutter: 32px; } }
@media (min-width: 1000px) { .mk { --header-h: 68px; } }
.mk *, .mk *::before, .mk *::after { box-sizing: border-box; min-width: 0; }
.mk img, .mk video, .mk svg { max-width: 100%; display: block; }
.mk img, .mk video { height: auto; }
.mk a { color: var(--accent); text-underline-offset: 3px; }
.mk a:hover { color: var(--accent-text); }
.mk p, .mk ul, .mk ol, .mk figure { margin: 0; }
.mk button, .mk input, .mk select, .mk textarea { font: inherit; color: inherit; }
.mk .visually-hidden { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.mk .skip { position: absolute; left: -999px; top: 8px; background: var(--ink); color: var(--page); padding: 10px 14px; border-radius: var(--r-sm); z-index: 50; font-weight: 600; }
.mk .skip:focus { left: 8px; }
.mk :focus-visible { outline: 3px solid var(--accent); outline-offset: 3px; }
.mk [id] { scroll-margin-top: calc(var(--header-h) + 16px); }

/* ==== 1. Type ==== */
@font-face { font-family: "Sora fallback"; font-weight: 600 700; src: local("Arial Bold"), local("Arial-BoldMT"); size-adjust: 105.5%; ascent-override: 92%; descent-override: 26%; line-gap-override: 0%; }
@font-face { font-family: "Inter fallback"; font-weight: 400; src: local("Arial"), local("ArialMT"); size-adjust: 106%; ascent-override: 91%; descent-override: 23%; line-gap-override: 0%; }
@font-face { font-family: "Inter fallback"; font-weight: 500 600; src: local("Arial Bold"), local("Arial-BoldMT"); size-adjust: 99%; ascent-override: 97%; descent-override: 24%; line-gap-override: 0%; }
.mk h1, .mk h2, .mk h3, .mk .h3, .mk h4 { font-family: var(--display); margin: 0; color: var(--ink); text-wrap: balance; }
.mk h1 { font-size: clamp(36px, 5.6vw, 64px); line-height: 1.06; font-weight: 700; letter-spacing: -0.03em; }
.mk .hero h1 { font-size: clamp(38px, 7vw, 68px); line-height: 1.04; }
/* Beside the sequence the copy column is half the page, so the display size steps down. */
@media (min-width: 1000px) { .mk .hero:not(.hero-copy-only) .hero-grid h1 { font-size: clamp(36px, 4.3vw, 58px); } }
.mk h2 { font-size: clamp(30px, 4.2vw, 48px); line-height: 1.1; font-weight: 700; letter-spacing: -0.025em; }
.mk h3, .mk .h3 { font-size: 22px; line-height: 1.25; font-weight: 600; letter-spacing: -0.015em; }
.mk h4 { font-size: 18px; line-height: 1.3; font-weight: 600; }
.mk h1 em { font-style: normal; background: var(--grad-text); -webkit-background-clip: text; background-clip: text; color: transparent; }
.mk .lede { margin-top: 20px; font-size: clamp(18px, 2vw, 21px); line-height: 1.55; color: var(--muted); max-width: 34em; }
.mk .section-head .lede { margin-top: 14px; }
.mk .small { font-size: 15px; line-height: 1.5; }
.mk .meta { font-size: 13.5px; line-height: 1.5; font-weight: 500; color: var(--faint); }
.mk .muted { color: var(--muted); }
.mk .mono { font-family: var(--mono); font-size: 14px; font-variant-numeric: tabular-nums; }
.mk .kicker, .mk .eyebrow { display: inline-flex; align-items: center; gap: 8px; font: 600 12.5px/1 var(--body); letter-spacing: .12em; text-transform: uppercase; color: var(--accent); }
.mk .kicker { background: var(--grad-text); -webkit-background-clip: text; background-clip: text; color: transparent; }
.mk a.kicker { min-height: 44px; padding: 0 2px; } /* a linked kicker is a tap target */
.mk .eyebrow .dot { width: 8px; height: 8px; border-radius: 50%; background: var(--accent); box-shadow: 0 0 0 4px var(--accent-soft); }
.mk .prose { max-width: 40em; font-size: 17px; line-height: 1.7; color: var(--ink-2); text-wrap: pretty; }

/* ==== 2. Layout ==== */
.mk .wrap, .mk .wrap-mid, .mk .wrap-narrow { margin: 0 auto; padding: 0 var(--gutter); width: 100%; }
.mk .wrap { max-width: var(--wrap); }
.mk .wrap-mid { max-width: var(--wrap-mid); }
.mk .wrap-narrow { max-width: var(--wrap-narrow); }
.mk main > section, .mk main > article > section, .mk .cta { padding: var(--section) 0; }
.mk .section-head { margin-bottom: 40px; max-width: 46em; }
.mk .section-head .kicker { margin-bottom: 14px; }
@media (min-width: 1000px) { .mk .section-head { margin-bottom: 48px; } }
.mk .band { background: linear-gradient(180deg, rgba(255, 255, 255, .02), transparent 60%); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.mk .has-spot { position: relative; isolation: isolate; }
.mk .spot { position: absolute; inset: calc(var(--header-h) * -1) 0 0; z-index: -1; pointer-events: none; background: radial-gradient(60% 70% at 85% 10%, rgba(255, 176, 32, .22), transparent 70%), radial-gradient(40% 50% at 8% 95%, rgba(255, 122, 69, .1), transparent 70%); }
.mk .grid-2, .mk .grid-3, .mk .grid-4 { display: grid; gap: 16px; }
.mk .grid-2 { grid-template-columns: repeat(auto-fit, minmax(min(100%, 300px), 1fr)); }
.mk .grid-3 { grid-template-columns: repeat(auto-fit, minmax(min(100%, 260px), 1fr)); }
.mk .grid-4 { grid-template-columns: repeat(auto-fit, minmax(min(100%, 240px), 1fr)); }
@media (min-width: 860px) { .mk .grid-2, .mk .grid-3, .mk .grid-4 { gap: 24px; } }
.mk .duo { display: grid; gap: 32px; align-items: center; }
@media (min-width: 960px) { .mk .duo { grid-template-columns: 1.1fr 1fr; gap: 64px; } .mk .duo.flip > :first-child { order: 2; } }

/* ==== 3. Header and nav ==== */
.mk .site-header { position: sticky; top: 0; z-index: 20; height: var(--header-h); background: rgba(6, 7, 13, .82); backdrop-filter: blur(16px) saturate(1.4); -webkit-backdrop-filter: blur(16px) saturate(1.4); border-bottom: 1px solid var(--line); }
.mk .site-header .wrap { display: flex; align-items: center; height: 100%; gap: 12px; }
.mk .logo { min-height: 44px; display: inline-flex; align-items: center; gap: 10px; color: var(--ink); text-decoration: none; font: 700 19px/1 var(--display); letter-spacing: -0.02em; white-space: nowrap; margin-right: auto; }
.mk .logo svg { width: 30px; height: 30px; flex: none; filter: drop-shadow(0 0 12px rgba(255, 176, 32, .55)); }
.mk .logo .tld { color: var(--accent); }
/* Phones show only the mark: pad it out to a 44 px target. */
@media (max-width: 559px) { .mk .site-header .logo { padding: 0 7px; margin-left: -7px; } }
.mk .nav { display: none; gap: 4px; align-items: center; margin-right: auto; }
.mk .nav a { display: inline-flex; align-items: center; min-height: 44px; padding: 0 11px; color: var(--muted); text-decoration: none; font-size: 15px; font-weight: 500; white-space: nowrap; border-radius: var(--r-sm); transition: color var(--t-fast); }
.mk .nav a:hover, .mk .nav a[aria-current="page"] { color: var(--ink); }
.mk .nav .nav-wide { display: none; }
@media (min-width: 1000px) { .mk .nav { display: flex; } .mk .logo { margin-right: 0; } }
@media (min-width: 1200px) { .mk .nav .nav-wide { display: inline-flex; } }
.mk .nav-menu { position: static; }
.mk .nav-menu summary { display: inline-flex; align-items: center; gap: 8px; min-height: 44px; padding: 0 12px; border-radius: var(--r-sm); list-style: none; cursor: pointer; font-size: 15px; font-weight: 600; color: var(--ink); user-select: none; }
.mk .nav-menu summary::-webkit-details-marker { display: none; }
.mk .burger { display: inline-grid; gap: 4px; width: 18px; }
.mk .burger i { display: block; height: 2px; border-radius: 2px; background: currentColor; transition: transform var(--t-base) var(--ease), opacity var(--t-base); }
.mk .nav-menu[open] .burger i:nth-child(1) { transform: translateY(6px) rotate(45deg); }
.mk .nav-menu[open] .burger i:nth-child(2) { opacity: 0; }
.mk .nav-menu[open] .burger i:nth-child(3) { transform: translateY(-6px) rotate(-45deg); }
.mk .nav-panel { min-height: calc(100vh - var(--header-h)); min-height: calc(100dvh - var(--header-h)); position: absolute; inset: var(--header-h) 0 auto 0; z-index: 30; display: flex; flex-direction: column; padding: 8px var(--gutter) 20px; background: var(--surface); border-bottom: 1px solid var(--line-2); box-shadow: var(--shadow-1); max-height: calc(100vh - var(--header-h)); overflow-y: auto; }
.mk .nav-panel a:not(.btn) { display: flex; align-items: center; min-height: 52px; color: var(--ink); text-decoration: none; font-size: 17px; font-weight: 500; border-bottom: 1px solid var(--line); }
.mk .nav-group { margin: 14px 0 2px; font: 600 12.5px/1 var(--body); letter-spacing: .12em; text-transform: uppercase; color: var(--faint); }
.mk .nav-actions { display: grid; gap: 10px; margin-top: 18px; }
@media (min-width: 1000px) { .mk .nav-menu { display: none; } }
/* Phones: the mark, the start button and the menu; the wordmark (the link keeps its label) and sign-in live in the menu. */
@media (max-width: 559px) { .mk .site-header .wordmark, .mk .site-header .nav-login { display: none; } .mk .site-header .btn-small { padding: 0 14px; font-size: 14px; } }
@media (max-width: 400px) { .mk .site-header .nav-menu summary { padding: 0 8px; } }

/* ==== 4. Buttons, links, chips, badges, icon tiles ==== */
.mk .btn { position: relative; display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 50px; padding: 0 24px; border-radius: var(--r-pill); border: 0; background: rgba(255, 255, 255, .04); font: 600 16px/1 var(--body); color: var(--ink); text-decoration: none; white-space: nowrap; cursor: pointer; box-shadow: inset 0 0 0 1px var(--line-2); transition: transform var(--t-fast) var(--ease), background var(--t-fast), box-shadow var(--t-base); }
.mk .btn-primary { color: var(--accent-ink); background: var(--grad); box-shadow: var(--glow); }
.mk .btn-ghost { background: rgba(255, 255, 255, .04); color: var(--ink); box-shadow: inset 0 0 0 1px var(--line-2); }
.mk .btn-small { min-height: 44px; padding: 0 16px; font-size: 15px; }
.mk .btn[disabled] { opacity: .6; cursor: progress; }
@media (hover: hover) {
  .mk .btn-primary:hover { transform: translateY(-1px); box-shadow: 0 14px 44px -6px rgba(255, 176, 32, .95); color: var(--accent-ink); }
  .mk .btn-ghost:hover { background: rgba(255, 255, 255, .09); box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .3); color: var(--ink); }
}
.mk .actions { display: flex; flex-wrap: wrap; gap: 12px 14px; align-items: center; margin-top: 28px; }
.mk .chip { display: inline-flex; align-items: center; gap: 6px; min-height: 28px; padding: 0 10px; border-radius: var(--r-pill); background: rgba(255, 255, 255, .07); box-shadow: inset 0 0 0 1px var(--line); font-size: 12px; font-weight: 600; color: var(--ink-2); white-space: nowrap; }
.mk .chip.on { background: var(--accent-soft); box-shadow: inset 0 0 0 1px var(--line-accent); color: var(--ink); }
.mk .chips { display: flex; flex-wrap: wrap; gap: 6px; }
.mk .badge { display: inline-flex; align-items: center; gap: 6px; padding: 5px 9px; border-radius: var(--r-pill); font: 600 11.5px/1 var(--body); letter-spacing: .04em; text-transform: uppercase; }
.mk .badge.ok { background: var(--ok-soft); color: var(--ok); }
.mk .badge.warn { background: var(--warn-soft); color: var(--warn); }
.mk .badge.new { background: var(--accent-soft); color: var(--accent); }
.mk .ico { display: inline-grid; place-items: center; width: 44px; height: 44px; border-radius: var(--r-md); background: var(--accent-soft); color: var(--accent); flex: none; }
.mk .ico svg { width: 24px; height: 24px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.mk .note { padding: 14px 16px; border-radius: var(--r-md); background: var(--warn-soft); box-shadow: inset 0 0 0 1px rgba(255, 181, 71, .4); color: #ffe2b3; font-size: 15px; line-height: 1.5; }
.mk .note a { color: var(--ink); }
.mk .note.ok { background: var(--ok-soft); box-shadow: inset 0 0 0 1px rgba(47, 224, 168, .35); color: #c9f5e6; }
.mk .price-line { margin-top: 18px; font-size: 15px; color: var(--muted); }
.mk .price-line b { color: var(--ink); font-variant-numeric: tabular-nums; }
.mk .price-slot { min-height: 46px; }

/* ==== 5. Hero and the storyboard-to-ad sequence ==== */
/* The header is sticky, so it is already in the flow: the hero's top padding matches the page heads'. */
.mk .hero { padding: 40px 0 var(--section) !important; }
@media (min-width: 1000px) { .mk .hero { padding-top: 64px !important; } }
.mk .hero-grid { display: grid; gap: 40px; align-items: center; }
@media (min-width: 1000px) { .mk .hero-grid { grid-template-columns: 1fr 1.05fr; gap: 56px; } }
.mk .hero .copy .eyebrow { margin-bottom: 18px; }
.mk .hero .lede { max-width: 36em; }
.mk .proof-row { display: grid; gap: 14px; margin-top: 48px; padding: 0; list-style: none; }
.mk .proof-row li { display: grid; gap: 4px; padding: 16px 18px; border-radius: var(--r-md); background: rgba(255, 255, 255, .03); box-shadow: inset 0 0 0 1px var(--line); font-size: 15px; color: var(--muted); }
.mk .proof-row b { color: var(--ink); font-weight: 600; }
@media (min-width: 700px) { .mk .proof-row { grid-template-columns: repeat(3, 1fr); } }
.mk .hero-seq-wrap { width: 100%; }
.mk .hero-seq { width: 100%; }
.mk .hs-toggle { margin-top: 10px; }
.mk .hs-toggle[hidden] { display: none; }
.mk .hs-stage { --T: 16s; position: relative; aspect-ratio: 4 / 3; overflow: hidden; contain: paint; animation: hs-stage var(--T) var(--ease) infinite both; }
@media (min-width: 1000px) { .mk .hs-stage { aspect-ratio: 16 / 11; } }
.mk .hs-defs { position: absolute; width: 0; height: 0; }
.mk .hs-board { position: absolute; left: 0; right: 0; top: 0; display: grid; grid-template-columns: repeat(5, 1fr); gap: 8px; padding: 0; list-style: none; }
.mk .hs-shot { display: grid; gap: 4px; }
.mk .hs-shot svg { width: 100%; aspect-ratio: 16 / 10; border-radius: 10px; box-shadow: inset 0 0 0 1px var(--line-2); overflow: hidden; }
.mk .hs-shot span { font: 500 10px/1.2 var(--body); color: var(--faint); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
@media (min-width: 560px) { .mk .hs-shot span { font-size: 11.5px; } }
.mk .hs-shot:nth-child(1) { animation: hs-shot-1 var(--T) var(--ease) infinite both; }
.mk .hs-shot:nth-child(2) { animation: hs-shot-2 var(--T) var(--ease) infinite both; }
.mk .hs-shot:nth-child(3) { animation: hs-shot-3 var(--T) var(--ease) infinite both; }
.mk .hs-shot:nth-child(4) { animation: hs-shot-4 var(--T) var(--ease) infinite both; }
.mk .hs-shot:nth-child(5) { animation: hs-shot-5 var(--T) var(--ease) infinite both; }
.mk .hs-stamp { position: absolute; left: 4%; top: 24%; z-index: 2; padding: 4px 10px; border: 2px solid var(--accent); border-radius: 6px; color: var(--accent); font: 700 13px/1 var(--display); letter-spacing: .14em; text-transform: uppercase; transform: rotate(-8deg); opacity: .9; animation: hs-stamp var(--T) var(--ease) infinite both; }
.mk .hs-frame { position: absolute; left: 0; bottom: 4%; width: 82%; aspect-ratio: 16 / 9; border-radius: 14px; overflow: hidden; background: var(--surface); box-shadow: var(--shadow-amber), 0 0 0 1px var(--line-accent); animation: hs-frame var(--T) var(--ease) infinite both; }
.mk .hs-reel, .mk .hs-take { position: absolute; inset: 0; }
.mk .hs-take { opacity: 0; will-change: transform; transform: scale(1.06); }
.mk .hs-take svg { width: 100%; height: 100%; }
.mk .hs-take:nth-child(1) { animation: hs-take-1 var(--T) var(--ease) infinite both; }
.mk .hs-take:nth-child(2) { animation: hs-take-2 var(--T) var(--ease) infinite both; }
.mk .hs-take:nth-child(3) { animation: hs-take-3 var(--T) var(--ease) infinite both; }
.mk .hs-take:nth-child(4) { animation: hs-take-4 var(--T) var(--ease) infinite both; }
.mk .hs-take:nth-child(5) { opacity: 1; animation: hs-take-5 var(--T) var(--ease) infinite both; }
.mk .hs-super { position: absolute; left: 6%; bottom: 18%; padding: 5px 9px; border-radius: 6px; background: rgba(6, 7, 13, .7); color: var(--ink); font: 600 11px/1 var(--display); opacity: 0; animation: hs-super var(--T) var(--ease) infinite both; }
.mk .hs-end { position: absolute; inset: 0; display: grid; place-content: center; justify-items: center; gap: 8px; animation: hs-end var(--T) var(--ease) infinite both; }
.mk .hs-chip { width: 16%; aspect-ratio: 1; border-radius: 22%; background: var(--grad); }
.mk .hs-pill { padding: 5px 12px; border-radius: var(--r-pill); border: 1.5px solid var(--accent); color: var(--accent); font: 600 11px/1 var(--body); }
.mk .hs-url { font: 500 10px/1 var(--body); color: var(--muted); letter-spacing: .04em; }
.mk .hs-bar { position: absolute; left: 0; right: 0; bottom: 0; height: 4px; background: rgba(255, 255, 255, .12); }
.mk .hs-playhead { display: block; height: 100%; background: var(--accent); transform-origin: left; animation: hs-playhead var(--T) linear infinite both; }
.mk .hs-shapes { position: absolute; right: 0; top: 36%; bottom: 0; width: 22%; }
.mk .hs-shapes i { position: absolute; right: 0; overflow: hidden; border-radius: 8px; background: var(--surface); box-shadow: 0 0 0 1px var(--line-2), var(--shadow-1); }
.mk .hs-shapes svg { width: 100%; height: 100%; }
.mk .hs-shapes b { position: absolute; left: 6px; bottom: 6px; padding: 2px 6px; border-radius: 4px; background: rgba(6, 7, 13, .75); color: var(--ink); font: 600 9px/1.3 var(--body); }
.mk .hs-916 { top: 0; width: 56%; aspect-ratio: 9 / 16; animation: hs-916 var(--T) var(--ease) infinite both; }
.mk .hs-11 { bottom: 4%; width: 78%; aspect-ratio: 1; animation: hs-11 var(--T) var(--ease) infinite both; }
/* Hero.tsx pauses the loop while it is off screen, so the page can go idle. */
.mk .hs-stage[data-paused], .mk .hs-stage[data-paused] * { animation-play-state: paused !important; }
@keyframes hs-stage { 0% { opacity: 0; } 2.5%, 97.5% { opacity: 1; } 100% { opacity: 0; } }
@keyframes hs-shot-1 { 0% { opacity: 0; transform: translateY(10px); filter: blur(6px) saturate(.2); } 5%, 14% { opacity: 1; transform: none; filter: blur(6px) saturate(.2); } 20%, 100% { opacity: 1; transform: none; filter: none; } }
@keyframes hs-shot-2 { 0%, 1.6% { opacity: 0; transform: translateY(10px); filter: blur(6px) saturate(.2); } 6.6%, 16% { opacity: 1; transform: none; filter: blur(6px) saturate(.2); } 22%, 100% { opacity: 1; transform: none; filter: none; } }
@keyframes hs-shot-3 { 0%, 3.2% { opacity: 0; transform: translateY(10px); filter: blur(6px) saturate(.2); } 8.2%, 18% { opacity: 1; transform: none; filter: blur(6px) saturate(.2); } 24%, 100% { opacity: 1; transform: none; filter: none; } }
@keyframes hs-shot-4 { 0%, 4.8% { opacity: 0; transform: translateY(10px); filter: blur(6px) saturate(.2); } 9.8%, 20% { opacity: 1; transform: none; filter: blur(6px) saturate(.2); } 26%, 100% { opacity: 1; transform: none; filter: none; } }
@keyframes hs-shot-5 { 0%, 6.4% { opacity: 0; transform: translateY(10px); filter: blur(6px) saturate(.2); } 11.4%, 22% { opacity: 1; transform: none; filter: blur(6px) saturate(.2); } 28%, 100% { opacity: 1; transform: none; filter: none; } }
@keyframes hs-stamp { 0%, 25% { opacity: 0; transform: scale(1.4) rotate(-8deg); } 28%, 100% { opacity: .9; transform: scale(1) rotate(-8deg); } }
@keyframes hs-take-1 { 0%, 29.9% { opacity: .35; transform: scale(1); } 30% { opacity: 1; transform: scale(1); } 41.2% { opacity: 1; transform: scale(1.06); } 41.3%, 100% { opacity: 0; transform: scale(1.06); } }
@keyframes hs-take-2 { 0%, 41.1% { opacity: 0; transform: scale(1); } 41.2% { opacity: 1; transform: scale(1); } 49.6% { opacity: 1; transform: scale(1.06); } 49.7%, 100% { opacity: 0; transform: scale(1.06); } }
@keyframes hs-take-3 { 0%, 49.5% { opacity: 0; transform: scale(1); } 49.6% { opacity: 1; transform: scale(1); } 58% { opacity: 1; transform: scale(1.06); } 58.1%, 100% { opacity: 0; transform: scale(1.06); } }
@keyframes hs-take-4 { 0%, 57.9% { opacity: 0; transform: scale(1); } 58% { opacity: 1; transform: scale(1); } 63.6% { opacity: 1; transform: scale(1.06); } 63.7%, 100% { opacity: 0; transform: scale(1.06); } }
@keyframes hs-take-5 { 0%, 63.5% { opacity: 0; transform: scale(1); } 63.6% { opacity: 1; transform: scale(1); } 72%, 100% { opacity: 1; transform: scale(1.06); } }
@keyframes hs-super { 0%, 44% { opacity: 0; transform: translateY(6px); } 46%, 52% { opacity: 1; transform: none; } 54%, 100% { opacity: 0; transform: none; } }
@keyframes hs-end { 0%, 72% { opacity: 0; } 76%, 100% { opacity: 1; } }
@keyframes hs-frame { 0%, 71%, 78%, 100% { box-shadow: var(--shadow-amber), 0 0 0 1px var(--line-accent); } 74% { box-shadow: 0 40px 120px -40px rgba(255, 176, 32, 1), 0 0 0 2px #ffb020; } }
@keyframes hs-playhead { 0%, 30% { transform: scaleX(0); } 72%, 100% { transform: scaleX(1); } }
@keyframes hs-916 { 0%, 82% { opacity: 0; transform: translateX(-40%); } 90%, 100% { opacity: 1; transform: none; } }
@keyframes hs-11 { 0%, 84% { opacity: 0; transform: translateY(-40%); } 92%, 100% { opacity: 1; transform: none; } }

/* ==== 6. Cards ==== */
.mk .card, .mk .feature, .mk .format-card, .mk .step, .mk .example-card, .mk .industry-card, .mk .post-card { position: relative; display: flex; flex-direction: column; gap: 12px; padding: 24px; border-radius: var(--r-lg); border: 1px solid var(--line); background: linear-gradient(180deg, rgba(255, 255, 255, .035), rgba(255, 255, 255, .01)); color: inherit; text-decoration: none; transition: border-color var(--t-base), transform var(--t-base) var(--ease); }
@media (min-width: 700px) { .mk .card, .mk .feature, .mk .format-card, .mk .step, .mk .example-card, .mk .industry-card { padding: 28px; } }
@media (hover: hover) { .mk a.format-card:hover, .mk a.industry-card:hover, .mk .example-card:hover, .mk .post-card:hover { border-color: var(--line-accent); transform: translateY(-2px); } }
.mk .feature p, .mk .format-card p, .mk .step p, .mk .industry-card p { font-size: 15.5px; line-height: 1.55; color: var(--muted); }
.mk .feature h3, .mk .industry-card h3 { margin-top: 4px; }
.mk .format-top { display: flex; align-items: center; gap: 10px; }
.mk .format-top :is(h3, .h3) { flex: 1; font-size: 20px; margin: 0; }
.mk .shape-glyph { color: var(--accent); flex: none; }
.mk .format-tagline { color: var(--muted); }
.mk .beats { display: grid; gap: 8px; }
.mk .beat-bar { display: grid; gap: 2px; height: 8px; border-radius: 4px; overflow: hidden; }
.mk .beat-bar span, .mk .beat-names span, .mk .format-legend i { display: block; background: var(--surface-3); }
.mk [data-kind="hook"] { background: var(--accent); }
.mk [data-kind="problem"] { background: var(--surface-3); }
.mk [data-kind="reveal"] { background: var(--accent-2); }
.mk [data-kind="demo"] { background: rgba(255, 176, 32, .45); }
.mk [data-kind="proof"] { background: var(--line-2); }
.mk [data-kind="end"] { background: rgba(244, 245, 255, .8); }
.mk .beat-names { display: flex; flex-wrap: wrap; gap: 4px 12px; padding: 0; list-style: none; font-size: 12.5px; color: var(--faint); }
.mk .beat-names li { display: inline-flex; align-items: center; gap: 6px; }
.mk .beat-names span { width: 8px; height: 8px; border-radius: 2px; flex: none; }
.mk .beat-names small { font-size: inherit; font-family: var(--mono); }
.mk .format-meta { font-size: 14.5px; }
.mk .format-meta b { color: var(--ink); font-weight: 600; }
.mk .format-legend { display: flex; flex-wrap: wrap; gap: 6px 16px; margin-top: 18px; font-size: 12.5px; color: var(--faint); }
.mk .format-legend span { display: inline-flex; align-items: center; gap: 6px; }
.mk .format-legend i { width: 10px; height: 10px; border-radius: 2px; }
.mk .format-note, .mk .format-rules { margin-top: 20px; max-width: 46em; color: var(--muted); font-size: 15.5px; line-height: 1.55; }
.mk .format-rules { padding-left: 1.2em; display: grid; gap: 6px; }
.mk .format-rules li::marker { color: var(--accent); }
.mk .steps { display: grid; gap: 16px; padding: 0; list-style: none; }
.mk .step { padding-top: 28px; }
.mk .step-n { position: absolute; top: -14px; left: 24px; display: grid; place-items: center; width: 44px; height: 44px; border-radius: var(--r-md); background: var(--grad); color: var(--accent-ink); font: 700 15px/1 var(--display); box-shadow: var(--glow); }
.mk .step .ico { margin-top: 6px; }
@media (min-width: 860px) { .mk .steps { grid-template-columns: repeat(3, 1fr); gap: 24px 20px; margin-top: 14px; } .mk .step:nth-child(4) { grid-column: 1 / 2; } .mk .step:nth-child(5) { grid-column: 2 / 3; } }
@media (min-width: 860px) { .mk .steps-4 { grid-template-columns: repeat(2, 1fr); } .mk .steps-4 .step:nth-child(4) { grid-column: auto; } }
.mk .example-card { padding: 0; overflow: hidden; }
.mk .example-poster { position: relative; display: block; aspect-ratio: 16 / 9; background: var(--surface-2); }
.mk .example-poster img { width: 100%; height: 100%; object-fit: cover; }
.mk .example-poster::after { content: ""; position: absolute; inset: 0; background: linear-gradient(0deg, rgba(6, 7, 13, .95), transparent 60%); }
.mk .example-poster .play { position: absolute; left: 50%; top: 50%; z-index: 1; width: 44px; height: 44px; margin: -22px 0 0 -22px; border-radius: 50%; background: var(--accent); box-shadow: var(--glow); }
.mk .example-poster .play::after { content: ""; position: absolute; left: 17px; top: 13px; border-left: 14px solid var(--accent-ink); border-top: 9px solid transparent; border-bottom: 9px solid transparent; }
.mk .example-card .body { display: grid; gap: 8px; padding: 18px 20px 22px; }
.mk .example-card h3 { font-size: 20px; }
.mk .example-card h3 a { color: var(--ink); text-decoration: none; }
.mk .example-card h3 a::after { content: ""; position: absolute; inset: 0; }
.mk .example-meta { font-size: 13.5px; color: var(--faint); }
.mk .made-with { font-size: 12.5px; color: var(--muted); }
.mk .gallery-empty { display: grid; gap: 14px; justify-items: start; max-width: 46em; padding: 28px; border-radius: var(--r-lg); border: 1px solid var(--line); background: linear-gradient(180deg, rgba(255, 255, 255, .035), rgba(255, 255, 255, .01)); }
.mk .gallery-empty-art { display: grid; grid-template-columns: repeat(5, 1fr); gap: 6px; width: min(100%, 420px); }
.mk .gallery-empty-art svg { width: 100%; aspect-ratio: 16 / 10; border-radius: 6px; box-shadow: inset 0 0 0 1px var(--line-2); }
.mk .gallery-empty p { color: var(--muted); font-size: 15.5px; }
.mk .gallery-empty .links { font-size: 15px; }

/* ==== 7. Pricing ==== */
.mk .price-card { display: grid; gap: 28px; padding: 28px; border-radius: var(--r-xl); background: linear-gradient(160deg, rgba(255, 176, 32, .26), rgba(13, 15, 28, .92) 62%); box-shadow: inset 0 0 0 1px var(--line-accent), var(--shadow-amber); }
@media (min-width: 860px) { .mk .price-card:not(.compact):not(.fallback):not(.closed) { grid-template-columns: 1.25fr 1fr; gap: 40px; padding: 36px; } }
.mk .price-card.compact, .mk .price-card.fallback, .mk .price-card.closed { max-width: 640px; }
.mk .price-card .lede { margin-top: 10px; }
.mk .price-main { display: grid; gap: 16px; justify-items: start; }
.mk .price-big { display: flex; flex-wrap: wrap; align-items: baseline; gap: 8px 12px; }
.mk .price-big b { font: 700 clamp(44px, 7vw, 64px)/1 var(--display); letter-spacing: -0.03em; font-variant-numeric: tabular-nums; color: var(--ink); }
.mk .price-big span { font-size: 17px; color: var(--muted); }
.mk .price-step { color: var(--ink-2); font-size: 16px; max-width: 34em; }
.mk .included { display: grid; gap: 8px; padding: 0; list-style: none; font-size: 15.5px; color: var(--ink-2); }
.mk .included li { position: relative; padding-left: 26px; }
.mk .included li::before { content: ""; position: absolute; left: 0; top: 7px; width: 14px; height: 8px; border-left: 2.5px solid var(--ok); border-bottom: 2.5px solid var(--ok); transform: rotate(-45deg); }
.mk .price-side { display: grid; gap: 20px; align-content: start; }
.mk .price-table { width: 100%; border-collapse: collapse; font-size: 15px; }
.mk .price-table caption { text-align: left; font: 600 18px/1.3 var(--display); color: var(--ink); padding-bottom: 10px; }
.mk .price-table th, .mk .price-table td { padding: 10px 4px; border-bottom: 1px solid var(--line); text-align: left; }
.mk .price-table thead th { font: 600 12.5px/1 var(--body); letter-spacing: .1em; text-transform: uppercase; color: var(--faint); }
.mk .price-table tbody th { font-weight: 500; color: var(--ink); }
.mk .price-table td { text-align: right; font-weight: 500; font-variant-numeric: tabular-nums; color: var(--ink); }
.mk .price-table .muted { font-size: 13.5px; margin-left: 6px; }
.mk .price-tax { font-size: 13.5px; color: var(--faint); }
.mk .calc { display: grid; gap: 14px; }
.mk :is(.calc, .cost-calc) fieldset { margin: 0; padding: 0; border: 0; min-width: 0; }
.mk :is(.calc, .cost-calc) legend { padding: 0; margin-bottom: 10px; font: 600 16px/1.3 var(--display); color: var(--ink); }
.mk .seg-row { display: flex; flex-wrap: wrap; gap: 8px; }
.mk .seg { position: relative; display: inline-flex; align-items: center; justify-content: center; min-width: 64px; min-height: 44px; padding: 0 14px; border-radius: var(--r-pill); background: var(--surface-3); color: var(--ink); font: 600 15px/1 var(--mono); font-variant-numeric: tabular-nums; cursor: pointer; box-shadow: inset 0 0 0 1px var(--line); margin: 0; }
.mk .seg input { position: absolute; opacity: 0; width: 1px; height: 1px; margin: 0; }
.mk .seg:has(input:checked) { background: var(--accent); color: var(--accent-ink); box-shadow: none; }
.mk .seg:has(input:focus-visible) { outline: 3px solid var(--accent); outline-offset: 3px; }
.mk .calc-out { display: grid; gap: 6px; font-size: 17px; color: var(--ink-2); }
.mk .calc-out output { display: none; }
.mk .calc-out b { font-size: 24px; color: var(--ink); font-variant-numeric: tabular-nums; }
@supports not selector(:has(a)) { .mk .calc-out output { display: block; } }
.mk .calc-note { font-size: 13.5px; color: var(--faint); }

/* ==== 8. Cost guide: calculator bars and comparison tables ==== */
.mk .cost-calc { display: grid; gap: 24px; padding: 24px; border-radius: var(--r-lg); border: 1px solid var(--line); background: var(--surface); }
.mk .cost-inputs { display: grid; gap: 16px; }
@media (min-width: 700px) { .mk .cost-inputs { grid-template-columns: repeat(2, 1fr); } }
.mk .range-bars { display: grid; gap: 14px; }
.mk .range-row { display: grid; gap: 6px; padding: 12px 14px; border-radius: var(--r-md); background: rgba(255, 255, 255, .03); box-shadow: inset 0 0 0 1px var(--line); }
.mk .range-row.us { background: var(--accent-soft); box-shadow: inset 0 0 0 1px var(--line-accent); }
.mk .range-row .label { display: flex; justify-content: space-between; gap: 12px; font-size: 15px; font-weight: 600; }
.mk .range-row .figures { font-variant-numeric: tabular-nums; color: var(--ink); font-weight: 500; white-space: nowrap; }
.mk .range-track { position: relative; height: 10px; border-radius: 5px; background: rgba(255, 255, 255, .07); }
.mk .range-fill { position: absolute; top: 0; bottom: 0; border-radius: 5px; background: var(--grad); opacity: .85; }
.mk .range-row.us .range-fill { opacity: 1; }
.mk .range-row .why { font-size: 13.5px; color: var(--faint); }
/* On the amber tint --faint drops under 4.5:1; --muted keeps it readable. */
.mk .range-row.us .why { color: var(--muted); }
.mk .cmp-wrap { width: 100%; overflow-x: auto; -webkit-overflow-scrolling: touch; }
.mk .cmp { width: 100%; border-collapse: collapse; font-size: 15px; line-height: 1.5; }
.mk .cmp caption { text-align: left; padding-bottom: 12px; font: 600 18px/1.3 var(--display); color: var(--ink); }
.mk .cmp th, .mk .cmp td { padding: 14px; text-align: left; vertical-align: top; border-bottom: 1px solid var(--line); font-variant-numeric: tabular-nums; }
.mk .cmp thead th { font: 600 12.5px/1.3 var(--body); letter-spacing: .08em; text-transform: uppercase; color: var(--faint); }
.mk .cmp thead th.us { color: var(--accent); }
.mk .cmp tbody th { font-weight: 600; color: var(--ink); }
.mk .cmp td { color: var(--muted); }
.mk .cmp td.us { background: var(--accent-soft); color: var(--ink); }
.mk .cmp-checked { margin-top: 12px; font-size: 13.5px; color: var(--faint); }
@media (max-width: 719px) {
  .mk .cmp thead { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }
  .mk .cmp, .mk .cmp tbody, .mk .cmp tr, .mk .cmp th, .mk .cmp td { display: block; }
  .mk .cmp tr { margin-bottom: 12px; padding: 16px; border-radius: var(--r-md); border: 1px solid var(--line); }
  .mk .cmp th, .mk .cmp td { padding: 6px 0; border: 0; }
  .mk .cmp tbody th { padding-bottom: 10px; font-size: 16px; }
  .mk .cmp td { display: grid; grid-template-columns: 9em 1fr; gap: 10px; }
  /* The label is for sighted readers; screen readers get the column header from the ARIA roles. */
  .mk .cmp td::before { content: attr(data-th); content: attr(data-th) / ""; font-size: 13.5px; color: var(--faint); }
  /* On the amber tint --faint drops under 4.5:1; --muted keeps it readable. */
  .mk .cmp td.us::before { color: var(--muted); }
  .mk .cmp td.us { border-radius: var(--r-sm); padding: 8px; }
}
@media (min-width: 720px) {
  .mk .cmp thead th { position: sticky; top: var(--header-h); background: var(--page); z-index: 1; }
  .mk .cmp tbody th { position: sticky; left: 0; background: var(--page); }
}

/* ==== 9. FAQ ==== */
.mk .faq { max-width: 860px; }
.mk .faq details { border-bottom: 1px solid var(--line); }
.mk .faq details:first-of-type { border-top: 1px solid var(--line); }
.mk .faq summary { position: relative; display: flex; align-items: center; gap: 16px; min-height: 44px; padding: 22px 44px 22px 0; cursor: pointer; list-style: none; font: 600 19px/1.3 var(--display); color: var(--ink); }
.mk .faq summary::-webkit-details-marker { display: none; }
.mk .faq summary::after { content: "+"; content: "+" / ""; position: absolute; right: 4px; top: 50%; width: 28px; margin-top: -14px; text-align: center; color: var(--accent); font: 300 28px/28px var(--body); transition: transform var(--t-base) var(--ease); }
.mk .faq details[open] summary::after { transform: rotate(45deg); }
.mk .faq .answer { padding: 0 0 22px; max-width: 40em; font-size: 15.5px; line-height: 1.6; color: var(--muted); }
.mk .faq .answer a { color: var(--accent-text); }
.mk .faq .answer p + p { margin-top: 10px; }

/* ==== 10. CTA bands ==== */
.mk .cta { background: var(--surface); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.mk .cta .actions { margin-top: 24px; }
.mk .cta.closed .note { margin-top: 22px; }

/* ==== 11. Forms and controls ==== */
.mk label { display: block; font-size: 15px; font-weight: 600; margin-bottom: 6px; }
.mk label .optional { color: var(--muted); font-weight: 400; }
.mk .field input[type="text"], .mk .field input[type="email"], .mk .field input[type="number"], .mk .field select, .mk .field textarea { display: block; width: 100%; min-height: 50px; padding: 10px 14px; border-radius: var(--r-md); border: 1px solid var(--line-2); background: rgba(0, 0, 0, .3); color: var(--ink); font-size: 16px; }
.mk .field input:focus, .mk .field select:focus, .mk .field textarea:focus { border-color: var(--accent); }
.mk .field select { appearance: none; -webkit-appearance: none; padding-right: 40px; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23a4a8c8' stroke-width='2' stroke-linecap='round'%3E%3Cpath d='M6 9l6 6 6-6'/%3E%3C/svg%3E"); background-repeat: no-repeat; background-position: right 12px center; background-size: 18px; }
.mk .help { margin-top: 6px; font-size: 13.5px; color: var(--faint); }
.mk .error { margin-top: 6px; font-size: 14px; color: var(--danger); }
.mk .choice { display: flex; gap: 12px; align-items: flex-start; padding: 14px 16px; border-radius: var(--r-md); box-shadow: inset 0 0 0 1px var(--line-2); cursor: pointer; font-weight: 500; }
.mk .choice input { width: 18px; height: 18px; margin: 2px 0 0; accent-color: var(--accent); flex: none; }
.mk .choice:has(input:checked) { background: var(--accent-soft); box-shadow: inset 0 0 0 1px var(--accent); }
.mk input[type="range"] { accent-color: var(--accent); width: 100%; }
.mk input[type="checkbox"] { accent-color: var(--accent); width: 18px; height: 18px; }

/* ==== 12. Prose, legal pages, blog, breadcrumbs, table of contents ==== */
.mk .prose p + p, .mk .prose p + ul, .mk .prose ul + p { margin-top: 12px; }
.mk .prose h2 { margin: 2em 0 .6em; font-size: clamp(26px, 3vw, 32px); }
.mk .prose h3 { margin: 1.6em 0 .5em; font-size: 21px; }
.mk .prose a { color: var(--accent-text); }
.mk .prose strong { color: var(--ink); }
.mk .prose ul, .mk .prose ol { padding-left: 1.3em; }
.mk .prose li + li { margin-top: .45em; }
.mk .prose li::marker { color: var(--accent); }
.mk .prose blockquote { margin: 0; padding: 16px 20px; border-left: 3px solid var(--accent); background: var(--accent-soft); border-radius: 0 12px 12px 0; }
.mk .prose code { font: 15px var(--mono); background: rgba(255, 255, 255, .07); padding: 2px 6px; border-radius: 6px; overflow-wrap: anywhere; }
.mk .prose pre { overflow-x: auto; padding: 16px; border-radius: 12px; background: rgba(0, 0, 0, .35); border: 1px solid var(--line); }
.mk .prose pre code { background: none; padding: 0; }
.mk .prose hr { border: 0; border-top: 1px solid var(--line); margin: 2.2em 0; }
.mk .prose .table-wrap, .mk .table-wrap { overflow-x: auto; border: 1px solid var(--line); border-radius: 14px; -webkit-overflow-scrolling: touch; }
/* Phones: say the table scrolls, and fade its right edge while there is more to see (the fade scrolls away with the content). */
@media (max-width: 719px) {
  .mk .table-wrap { position: relative; background: linear-gradient(90deg, rgba(6, 7, 13, 0), rgba(6, 7, 13, .9)) right / 48px 100% no-repeat; background-attachment: local; }
  .mk .table-wrap::before { content: "Scroll sideways to see every column"; display: block; position: sticky; left: 0; padding: 8px 14px; font-size: 13px; color: var(--faint); }
}
.mk .prose table { width: 100%; min-width: 560px; border-collapse: collapse; font-size: 15px; line-height: 1.5; }
.mk .prose th, .mk .prose td { padding: 12px 14px; text-align: left; vertical-align: top; border-bottom: 1px solid var(--line); }
.mk .prose thead th { font-weight: 600; color: var(--ink); background: rgba(255, 255, 255, .04); }
.mk .prose tbody th { font-weight: 600; color: var(--ink); }
.mk .prose tbody tr:last-child > * { border-bottom: 0; }
.mk .crumbs ol { display: flex; flex-wrap: wrap; gap: 6px; list-style: none; margin: 0 0 22px; padding: 0; font-size: 14px; color: var(--faint); }
.mk .crumbs li + li::before { content: "/"; margin-right: 6px; color: var(--faint); }
.mk .crumbs a { color: var(--muted); text-decoration: none; }
.mk .crumbs a:hover { color: var(--ink); }
.mk .crumbs [aria-current] { color: var(--muted); overflow-wrap: anywhere; }
.mk .page-head { padding: 40px 0 8px; }
@media (min-width: 1000px) { .mk .page-head { padding: 64px 0 12px; } }
.mk .page-head h1 { margin-top: 14px; max-width: 18em; }
.mk .page-head .lede { max-width: 38em; }
.mk .page-head .meta { margin-top: 18px; }
/* Blog index */
.mk .blog-hero { position: relative; isolation: isolate; padding: 56px 0 28px; }
@media (min-width: 1000px) { .mk .blog-hero { padding: 88px 0 36px; } }
.mk .blog-hero::before { content: ""; position: absolute; inset: calc(var(--header-h) * -1) 0 0; z-index: -1; pointer-events: none; background: radial-gradient(60% 80% at 80% 0%, rgba(255, 176, 32, .2), transparent 70%); }
.mk .blog-hero h1 { margin-top: 16px; }
.mk .blog-hero .actions { margin-top: 26px; font-size: 15px; }
.mk .blog-hero .actions a:not(.btn) { color: var(--muted); }
.mk .blog-chips { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 30px; list-style: none; padding: 0; }
.mk .blog-chips a { display: inline-flex; align-items: center; gap: 8px; min-height: 44px; padding: 0 16px; border-radius: var(--r-pill); background: rgba(255, 255, 255, .04); box-shadow: inset 0 0 0 1px var(--line-2); color: var(--ink); text-decoration: none; font-size: 14.5px; font-weight: 500; }
.mk .blog-chips a:hover { background: rgba(255, 255, 255, .08); }
.mk .blog-chips a[aria-current="page"] { background: var(--accent-soft); box-shadow: inset 0 0 0 1px var(--line-accent); }
.mk .blog-chips span { color: var(--faint); font-size: 13px; }
.mk .blog-list { padding: 24px 0 96px; }
.mk .blog-grid { display: grid; gap: 20px; grid-template-columns: 1fr; list-style: none; margin: 0; padding: 0; }
@media (min-width: 720px) { .mk .blog-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (min-width: 1080px) { .mk .blog-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 24px; } }
.mk .post-card { padding: 0; gap: 0; overflow: hidden; height: 100%; }
.mk .post-card .ph { aspect-ratio: 16 / 9; overflow: hidden; background: var(--surface-2); }
.mk .post-card .ph img { width: 100%; height: 100%; object-fit: cover; transition: transform .8s var(--ease); }
@media (hover: hover) { .mk .post-card:hover .ph img { transform: scale(1.04); } }
.mk .post-card .body { display: flex; flex-direction: column; gap: 10px; padding: 22px 22px 24px; flex: 1; }
.mk .post-card .cat { font: 600 11.5px/1 var(--body); letter-spacing: .12em; text-transform: uppercase; color: var(--accent); }
.mk .post-card h2, .mk .post-card h3 { font-size: 21px; line-height: 1.25; letter-spacing: -0.015em; }
.mk .post-card h2 a, .mk .post-card h3 a { color: var(--ink); text-decoration: none; }
.mk .post-card h2 a::after, .mk .post-card h3 a::after { content: ""; position: absolute; inset: 0; }
.mk .post-card p { color: var(--muted); font-size: 15.5px; }
.mk .post-card .meta { margin-top: auto; padding-top: 6px; }
@media (min-width: 1080px) {
  .mk .post-card.featured { grid-column: span 3; display: grid; grid-template-columns: 1.25fr 1fr; box-shadow: var(--shadow-amber); }
  .mk .post-card.featured .ph { aspect-ratio: auto; min-height: 340px; }
  .mk .post-card.featured .body { justify-content: center; padding: 40px; gap: 14px; }
  .mk .post-card.featured h2 { font-size: 32px; }
  .mk .post-card.featured p { font-size: 17px; }
}
@media (min-width: 720px) and (max-width: 1079px) { .mk .post-card.featured { grid-column: span 2; } }
.mk .blog-empty { color: var(--muted); padding: 40px 0; }
/* Post */
.mk .post-head { position: relative; isolation: isolate; padding: 40px 0 8px; }
@media (min-width: 1000px) { .mk .post-head { padding: 64px 0 12px; } }
.mk .post-head::before { content: ""; position: absolute; inset: calc(var(--header-h) * -1) 0 0; z-index: -1; pointer-events: none; background: radial-gradient(55% 80% at 85% 0%, rgba(255, 176, 32, .18), transparent 70%); }
.mk .post-head h1 { margin-top: 14px; max-width: 18em; font-size: clamp(34px, 5vw, 56px); }
.mk .post-head .lede { max-width: 38em; }
.mk .post-meta { margin-top: 22px; font-size: 14.5px; color: var(--muted); }
.mk .post-meta span { white-space: nowrap; }
.mk .post-meta .sep { margin: 0 8px; color: var(--faint); }
.mk .post-hero { margin: 34px 0 0; border-radius: var(--r-xl); overflow: hidden; border: 1px solid var(--line-2); box-shadow: var(--shadow-amber); aspect-ratio: 16 / 9; background: var(--surface-2); }
.mk .post-hero img { width: 100%; height: 100%; object-fit: cover; }
.mk .post-layout { display: grid; gap: 32px; padding: 44px 0 72px; }
@media (min-width: 1080px) { .mk .post-layout { grid-template-columns: minmax(0, 1fr) 260px; gap: 64px; align-items: start; } }
.mk .post-toc { font-size: 14.5px; }
.mk .post-toc ol { list-style: none; margin: 0; padding: 0; display: grid; gap: 4px; }
.mk .post-toc a { display: flex; align-items: center; min-height: 44px; color: var(--muted); text-decoration: none; }
.mk .post-toc a:hover { color: var(--ink); }
.mk .post-toc-menu { order: -1; border: 1px solid var(--line); border-radius: 14px; background: rgba(255, 255, 255, .02); }
.mk .post-toc-menu summary { cursor: pointer; padding: 14px 18px; font-weight: 600; list-style: none; display: flex; justify-content: space-between; min-height: 44px; }
.mk .post-toc-menu summary::-webkit-details-marker { display: none; }
.mk .post-toc-menu summary::after { content: "+"; color: var(--accent); font-size: 20px; line-height: 1; }
.mk .post-toc-menu[open] summary::after { content: "\2013"; }
.mk .post-toc-menu ol { padding: 0 18px 16px; }
.mk .post-toc-side { display: none; }
@media (min-width: 1080px) {
  .mk .post-toc-menu { display: none; }
  .mk .post-toc-side { display: block; order: 2; position: sticky; top: calc(var(--header-h) + 24px); }
  .mk .post-toc-title { margin: 0 0 12px; font: 600 12px/1 var(--body); letter-spacing: .12em; text-transform: uppercase; color: var(--faint); }
  .mk .post-toc-side ol { border-left: 1px solid var(--line); gap: 0; }
  .mk .post-toc-side a { min-height: 36px; padding: 4px 0 4px 14px; margin-left: -1px; border-left: 1px solid transparent; line-height: 1.4; }
  .mk .post-toc-side a:hover { border-left-color: var(--accent); }
}
.mk .prose-blog { max-width: 720px; min-width: 0; font-size: 18px; line-height: 1.72; color: var(--ink-2); text-wrap: pretty; }
.mk .prose-blog :is(p, ul, ol, blockquote, pre, .table-wrap) { margin: 0 0 1.1em; }
.mk .prose-blog h2 { margin: 2em 0 .6em; font-size: clamp(26px, 3vw, 32px); }
.mk .prose-blog h3 { margin: 1.6em 0 .5em; font-size: 21px; letter-spacing: -0.015em; line-height: 1.3; }
.mk .prose-blog > :first-child, .mk .prose-blog > :first-child > :first-child { margin-top: 0; }
.mk .prose-blog p, .mk .prose-blog li { color: var(--ink-2); }
.mk .prose-blog strong { color: var(--ink); }
.mk .prose-blog a { color: var(--accent-text); }
.mk .prose-blog a:hover { color: var(--ink); }
.mk .prose-blog ul, .mk .prose-blog ol { padding-left: 1.3em; }
.mk .prose-blog li + li { margin-top: .45em; }
.mk .prose-blog li::marker { color: var(--accent); }
.mk .prose-blog blockquote { margin-left: 0; margin-right: 0; padding: 16px 20px; border-left: 3px solid var(--accent); background: var(--accent-soft); border-radius: 0 12px 12px 0; }
.mk .prose-blog code { font: 15px var(--mono); background: rgba(255, 255, 255, .07); padding: 2px 6px; border-radius: 6px; overflow-wrap: anywhere; }
.mk .prose-blog pre { overflow-x: auto; padding: 16px; border-radius: 12px; background: rgba(0, 0, 0, .35); border: 1px solid var(--line); }
.mk .prose-blog pre code { background: none; padding: 0; }
.mk .prose-blog hr { border: 0; border-top: 1px solid var(--line); margin: 2.2em 0; }
.mk .prose-blog table { width: 100%; min-width: 560px; border-collapse: collapse; font-size: 15px; line-height: 1.5; }
.mk .prose-blog th, .mk .prose-blog td { padding: 12px 14px; text-align: left; vertical-align: top; border-bottom: 1px solid var(--line); }
.mk .prose-blog thead th { font-weight: 600; color: var(--ink); background: rgba(255, 255, 255, .04); }
.mk .prose-blog tbody th { font-weight: 600; color: var(--ink); }
.mk .prose-blog tbody tr:last-child > * { border-bottom: 0; }
.mk .post-video { margin: 2em 0; }
.mk .post-video .frame { border-radius: var(--r-lg); padding: 8px; background: linear-gradient(140deg, rgba(255, 176, 32, .5), rgba(255, 122, 69, .25) 40%, rgba(255, 255, 255, .06) 70%); }
.mk .post-video video { width: 100%; aspect-ratio: 16 / 9; border-radius: 12px; background: #000; }
.mk .post-video figcaption { margin-top: 10px; font-size: 14.5px; color: var(--muted); }
.mk .post-cta { margin: 2.2em 0; padding: 28px; border-radius: 20px; background: linear-gradient(160deg, rgba(255, 176, 32, .26), rgba(13, 15, 28, .92) 62%); border: 1px solid var(--line-accent); }
.mk .post-cta h2, .mk .prose-blog .post-cta h2 { margin: 0; font-size: 24px; }
.mk .post-cta p { margin-top: 10px; color: var(--ink-2); }
.mk .post-cta .row { display: flex; flex-wrap: wrap; gap: 12px 18px; align-items: center; margin-top: 20px; }
.mk .post-cta .row a:not(.btn) { font-size: 15px; }
.mk .post-foot { margin-top: 2.4em; padding-top: 22px; border-top: 1px solid var(--line); font-size: 15px; color: var(--muted); }
.mk .related { padding: 0 0 96px; }
.mk .related h2 { font-size: clamp(26px, 3vw, 34px); margin-bottom: 26px; }
.mk .family-box { display: grid; gap: 14px; margin: 24px 0 0; padding: 22px 24px; border-radius: var(--r-lg); border: 1px solid var(--line); background: rgba(255, 255, 255, .02); }
.mk .family-box h2 { font-size: 20px; }
.mk .family-box ul { padding: 0; list-style: none; display: grid; gap: 6px; font-size: 15px; }

/* ==== 13. Footer and family line ==== */
.mk .site-footer { padding: 56px 0 calc(56px + 72px); border-top: 1px solid var(--line); font-size: 14px; color: var(--muted); background: linear-gradient(180deg, rgba(255, 255, 255, .015), transparent); }
@media (min-width: 700px) { .mk .site-footer { padding-bottom: 56px; } }
.mk .footer-cols { display: grid; gap: 24px 32px; }
@media (min-width: 700px) { .mk .footer-cols { grid-template-columns: repeat(4, 1fr); } }
.mk .footer-cols ul { list-style: none; padding: 0; display: grid; }
.mk .footer-cols li a { display: inline-flex; align-items: center; min-height: 44px; min-width: 44px; color: var(--muted); text-decoration: none; }
.mk .footer-cols li a:hover { color: var(--ink); }
.mk .footer-head { margin-bottom: 4px; font: 600 12.5px/1 var(--body); letter-spacing: .12em; text-transform: uppercase; color: var(--faint); }
.mk .footer-head a { display: inline-flex; align-items: center; min-height: 44px; color: inherit; text-decoration: none; }
.mk .footer-head a:hover { color: var(--ink); text-decoration: underline; }
.mk .site-footer .family { margin-top: 36px; padding-top: 24px; border-top: 1px solid var(--line); font-size: 13px; }
.mk .site-footer .family a { color: var(--ink); font-weight: 600; text-decoration: none; }
.mk .site-footer .family a:hover { color: var(--accent-text); }
.mk .site-footer .legal { margin-top: 10px; font-size: 13px; color: var(--faint); }
.mk .site-footer .legal a { color: var(--muted); text-decoration: none; }
.mk .site-footer .legal a:hover { color: var(--ink); }

/* ==== 14. Motion ==== */
@keyframes mk-reveal { from { opacity: 0; transform: translateY(26px); } to { opacity: 1; transform: none; } }
@supports (animation-timeline: view()) {
  .mk .reveal { animation: mk-reveal both linear; animation-timeline: view(); animation-range: entry 0% entry 40%; }
}
@media (prefers-reduced-motion: reduce) {
  .mk, .mk * { scroll-behavior: auto; }
  /* The nth-child selectors repeat the per-shot and per-take rules at the same specificity, so this block (later in the file) wins. */
  .mk .hs-stage, .mk .hs-shot, .mk .hs-shot:nth-child(n), .mk .hs-stamp, .mk .hs-frame, .mk .hs-take, .mk .hs-take:nth-child(n), .mk .hs-super, .mk .hs-end, .mk .hs-playhead, .mk .hs-916, .mk .hs-11, .mk .reveal { animation: none; }
  .mk .hs-toggle { display: none; }
  .mk .btn, .mk .burger i, .mk .faq summary::after, .mk .post-card .ph img, .mk .format-card, .mk .industry-card, .mk .example-card, .mk .post-card { transition: none; }
  .mk .btn-primary:hover, .mk .post-card:hover, .mk a.format-card:hover, .mk a.industry-card:hover, .mk .example-card:hover, .mk .post-card:hover .ph img { transform: none; }
}

/* ==== 15. Print ==== */
@media print {
  html:has(.mk), body:has(.mk), .mk { background: #fff; color: #000; }
  .mk .site-header, .mk .site-footer, .mk .hero-seq-wrap, .mk .spot, .mk .cta, .mk .skip { display: none; }
  .mk a { color: #000; text-decoration: underline; }
}
