/* Marketing pages: landing, /themes, legal. Builds on site.css tokens. */
.page-marketing { background: #fff; }
.page-marketing .pm-header { background: rgba(255, 255, 255, .72); }

/* Animated gradient mesh used behind the hero and the final CTA */
.mk-mesh { position: absolute; inset: 0; pointer-events: none; overflow: hidden; }
.mk-mesh::before, .mk-mesh::after { content: ""; position: absolute; width: 60vmax; height: 60vmax; border-radius: 50%; filter: blur(90px); opacity: .55; animation: mk-drift 22s ease-in-out infinite alternate; }
.mk-mesh::before { background: #c7d2fe; left: -20vmax; top: -30vmax; }
.mk-mesh::after { background: #f5d0fe; right: -25vmax; top: -10vmax; animation-duration: 28s; }
@keyframes mk-drift { to { transform: translate3d(6vmax, 5vmax, 0) scale(1.12); } }

/* ---------- Hero ---------- */
.mk-hero { position: relative; overflow: hidden; padding: clamp(48px, 9vw, 96px) 0 0; background: linear-gradient(#fff, #fafaff); }
.mk-hero-copy { text-align: center; max-width: 860px; margin: 0 auto; position: relative; z-index: 1; }
.mk-eyebrow { display: inline-flex; align-items: center; gap: .6rem; padding: .35rem .9rem .35rem .4rem; border-radius: 999px; font-size: .88rem; font-weight: 500; color: var(--pm-ink-2);
    text-decoration: none; background: rgba(255,255,255,.8); border: 1px solid var(--pm-line); box-shadow: var(--pm-shadow-sm); transition: border-color .2s, transform .2s; }
.mk-eyebrow:hover { color: var(--pm-ink); border-color: #c7d2fe; transform: translateY(-1px); }
.mk-eyebrow span { padding: .15rem .55rem; border-radius: 999px; background: var(--pm-gradient); color: #fff; font-weight: 600; font-size: .75rem; }
.mk-hero h1 { font-size: clamp(2.6rem, 7.2vw, 5rem); line-height: 1.02; letter-spacing: -.045em; font-weight: 800; margin: 1.4rem 0 1.1rem; }
.mk-sub { font-size: clamp(1.05rem, 2.2vw, 1.25rem); color: var(--pm-muted); max-width: 640px; margin: 0 auto 2rem; line-height: 1.6; }
.mk-cta { display: flex; flex-wrap: wrap; gap: .75rem; justify-content: center; }
.mk-trust { list-style: none; padding: 0; margin: 1.4rem 0 0; display: flex; flex-wrap: wrap; justify-content: center; gap: .4rem 1.4rem; color: var(--pm-muted); font-size: .92rem; }
.mk-trust li::before { content: "✓"; color: #10b981; font-weight: 700; margin-right: .4rem; }

.mk-hero h1, .mk-sub, .mk-cta, .mk-trust, .mk-eyebrow { animation: mk-up .9s var(--pm-ease) both; }
.mk-hero h1 { animation-delay: .06s; } .mk-sub { animation-delay: .14s; } .mk-cta { animation-delay: .22s; } .mk-trust { animation-delay: .3s; }
@keyframes mk-up { from { opacity: 0; transform: translateY(18px); } }

/* Product mock */
.mk-product { position: relative; z-index: 1; max-width: 1100px; margin: clamp(40px, 7vw, 72px) auto 0; animation: mk-rise 1.2s var(--pm-ease) .35s both; }
@keyframes mk-rise { from { opacity: 0; transform: translateY(40px) scale(.98); } }
.mk-window { border-radius: 16px 16px 0 0; background: #fff; border: 1px solid #e3e6f0; border-bottom: 0; overflow: hidden; box-shadow: 0 -2px 0 rgba(255,255,255,.6) inset, 0 40px 80px -30px rgba(30, 27, 75, .35); }
.mk-bar { display: flex; align-items: center; gap: 6px; padding: 10px 14px; background: #f7f8fc; border-bottom: 1px solid #eceef5; }
.mk-bar i { width: 10px; height: 10px; border-radius: 50%; background: #e3e6f0; }
.mk-bar i:nth-child(1) { background: #fda4af; } .mk-bar i:nth-child(2) { background: #fde68a; } .mk-bar i:nth-child(3) { background: #86efac; }
.mk-bar span { margin: 0 auto; padding: 4px 14px; border-radius: 8px; background: #fff; border: 1px solid #eceef5; font-size: .78rem; color: var(--pm-muted); max-width: 60%; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.mk-split { display: grid; grid-template-columns: 1fr; }
.mk-editor { display: none; }
.mk-preview { position: relative; background: #f1f3f9; }
.mk-preview img { display: block; width: 100%; height: auto; }
.mk-live { position: absolute; left: 12px; top: 12px; z-index: 1; display: inline-flex; align-items: center; gap: 6px; padding: 5px 10px; border-radius: 999px; font-size: .74rem; font-weight: 600; background: rgba(255,255,255,.92); box-shadow: var(--pm-shadow); }
.mk-live i { width: 7px; height: 7px; border-radius: 50%; background: #22c55e; box-shadow: 0 0 0 3px rgba(34,197,94,.2); animation: mk-blink 2s infinite; }
@keyframes mk-blink { 50% { box-shadow: 0 0 0 6px rgba(34,197,94,0); } }
.mk-phone { display: none; }
.mk-float { display: none; }

@media (min-width: 768px) {
    .mk-split { grid-template-columns: 300px 1fr; }
    .mk-editor { display: block; padding: 20px 18px; border-right: 1px solid #eceef5; background: #fff; font-size: .78rem; }
    .mk-ed-title { font-weight: 700; font-size: 1.05rem; margin-bottom: 14px; }
    .mk-editor label { display: block; font-weight: 600; color: var(--pm-ink-2); margin: 10px 0 5px; }
    .mk-input { padding: 8px 10px; border-radius: 8px; border: 1px solid #e3e6f0; color: var(--pm-ink); background: #fff; box-shadow: var(--pm-shadow-sm); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
    .mk-input:first-of-type { border-color: #a5b4fc; box-shadow: 0 0 0 3px rgba(99,102,241,.15); }
    .mk-select { color: #059669; }
    .mk-area { white-space: normal; line-height: 1.6; }
    .mk-caret { display: inline-block; width: 1px; height: 1em; background: var(--pm-primary); margin-left: 1px; vertical-align: -2px; animation: mk-caret 1s steps(1) infinite; }
    @keyframes mk-caret { 50% { opacity: 0; } }
    .mk-save { display: inline-block; margin-top: 16px; padding: 7px 12px; border-radius: 8px; background: var(--pm-primary); color: #fff; font-weight: 600; }
    .mk-phone { display: block; position: absolute; right: -20px; bottom: 30px; width: 150px; padding: 7px; border-radius: 26px; background: #0f172a; box-shadow: 0 30px 60px -20px rgba(15,23,42,.55); animation: mk-float 7s ease-in-out infinite; }
    .mk-phone img { display: block; width: 100%; aspect-ratio: 9 / 18; object-fit: cover; object-position: 50% 0; border-radius: 20px; }
    .mk-float { display: block; position: absolute; padding: 10px 14px; border-radius: 12px; background: #fff; box-shadow: var(--pm-shadow-lg); font-size: .85rem; color: var(--pm-ink-2); border: 1px solid var(--pm-line); animation: mk-float 6s ease-in-out infinite; }
    .mk-float b { font-size: 1.15rem; color: var(--pm-primary); }
    .mk-float-a { right: 150px; top: -18px; z-index: 2; }
    .mk-float-b { left: 18%; bottom: -18px; z-index: 2; font-family: ui-monospace, Consolas, monospace; font-size: .8rem; animation-delay: -3s; }
    .mk-float-b span { color: var(--pm-muted); }
}
@keyframes mk-float { 50% { transform: translateY(-10px); } }

/* ---------- Theme wall (auto-scrolling) ---------- */
.mk-wall { position: relative; padding: 28px 0; background: #0b1020; overflow: hidden; }
.mk-wall::before, .mk-wall::after { content: ""; position: absolute; top: 0; bottom: 0; width: 12%; z-index: 1; pointer-events: none; }
.mk-wall::before { left: 0; background: linear-gradient(90deg, #0b1020, transparent); }
.mk-wall::after { right: 0; background: linear-gradient(-90deg, #0b1020, transparent); }
.mk-wall-row { display: flex; gap: 16px; width: max-content; animation: mk-marquee 80s linear infinite; }
.mk-wall:hover .mk-wall-row { animation-play-state: paused; }
.mk-wall a { flex: 0 0 auto; border-radius: 10px; overflow: hidden; box-shadow: 0 10px 30px -10px rgba(0,0,0,.6); transition: transform .3s var(--pm-ease); }
.mk-wall a:hover { transform: translateY(-4px) scale(1.02); }
.mk-wall img { display: block; width: 240px; height: 150px; object-fit: cover; object-position: top; }
@keyframes mk-marquee { to { transform: translateX(-50%); } }

/* ---------- Sections ---------- */
.mk-section { padding: clamp(64px, 10vw, 112px) 0; scroll-margin-top: 64px; }
.mk-head { max-width: 680px; margin: 0 auto clamp(32px, 5vw, 56px); text-align: center; }
.mk-head h2 { font-size: clamp(1.9rem, 4.4vw, 2.9rem); line-height: 1.08; letter-spacing: -.035em; font-weight: 800; margin: .5rem 0 .9rem; }
.mk-head p { color: var(--pm-muted); font-size: 1.08rem; margin: 0; }
.mk-head-row { max-width: none; display: flex; flex-wrap: wrap; align-items: flex-end; justify-content: space-between; gap: 1rem; text-align: left; }
.mk-head-row > div { max-width: 640px; }
.mk-kicker { display: inline-block; margin: 0; font-size: .8rem; font-weight: 700; letter-spacing: .14em; text-transform: uppercase; background: var(--pm-gradient); -webkit-background-clip: text; background-clip: text; color: transparent; }

/* Features */
.mk-features { display: grid; gap: 16px; grid-template-columns: repeat(auto-fit, minmax(min(260px, 100%), 1fr)); }
.mk-feature { position: relative; padding: 26px; border-radius: var(--pm-radius-lg); background: #fff; border: 1px solid var(--pm-line); box-shadow: var(--pm-shadow); transition: transform .3s var(--pm-ease), box-shadow .3s; }
.mk-feature:hover { transform: translateY(-3px); box-shadow: var(--pm-shadow-lg); }
.mk-feature h3 { font-size: 1.12rem; margin: 1rem 0 .45rem; }
.mk-feature p { color: var(--pm-muted); margin: 0; }
.mk-feature code { font-size: .85em; color: var(--pm-primary); background: var(--pm-primary-soft); padding: .1em .35em; border-radius: 5px; }
.mk-icon { width: 44px; height: 44px; border-radius: 12px; display: grid; place-items: center; }
.mk-icon svg { width: 22px; height: 22px; fill: none; stroke: currentColor; stroke-width: 1.9; stroke-linecap: round; stroke-linejoin: round; }
.mk-feature-xl { display: grid; gap: 22px; background: linear-gradient(160deg, #fff, #f7f7ff); }
.mk-mini-split { display: grid; grid-template-columns: 40% 1fr; border-radius: 12px; overflow: hidden; border: 1px solid #e3e6f0; background: #fff; box-shadow: var(--pm-shadow); }
.mk-mini-form { padding: 12px; display: grid; gap: 7px; align-content: start; border-right: 1px solid #eceef5; }
.mk-mini-form i { display: block; height: 14px; border-radius: 5px; background: #eef0f6; }
.mk-mini-form i.w60 { width: 60%; }
.mk-mini-form b { display: block; width: 50%; height: 16px; border-radius: 5px; background: var(--pm-primary); margin-top: 4px; }
.mk-mini-split img { width: 100%; height: 100%; object-fit: cover; object-position: top left; }
@media (min-width: 992px) {
    .mk-features { grid-template-columns: repeat(4, minmax(0, 1fr)); }
    .mk-feature-xl { grid-column: span 2; grid-row: span 2; align-content: space-between; }
}

/* How it works */
.mk-how { background: linear-gradient(#f8f9ff, #fff); }
.mk-steps { list-style: none; padding: 0; margin: 0; display: grid; gap: 18px; counter-reset: s; }
.mk-steps li { position: relative; padding: 28px; border-radius: var(--pm-radius-lg); background: #fff; border: 1px solid var(--pm-line); box-shadow: var(--pm-shadow); }
.mk-step { display: grid; place-items: center; width: 42px; height: 42px; border-radius: 12px; background: var(--pm-gradient); color: #fff; font-weight: 800; margin-bottom: 1rem; box-shadow: 0 10px 20px -10px rgba(139,92,246,.8); }
.mk-steps h3 { font-size: 1.15rem; margin-bottom: .4rem; }
.mk-steps p { color: var(--pm-muted); margin: 0; }
@media (min-width: 768px) {
    .mk-steps { grid-template-columns: repeat(3, 1fr); }
    .mk-steps li:not(:last-child)::after { content: ""; position: absolute; top: 49px; right: -18px; width: 18px; height: 2px; background: #c7d2fe; }
}

/* Theme gallery */
.tg-filters { display: flex; gap: 8px; flex-wrap: wrap; justify-content: center; margin: 0 0 32px; }
.tg-chip { display: inline-flex; align-items: center; gap: .45rem; min-height: 40px; padding: 0 14px; border-radius: 999px; border: 1px solid var(--pm-line); background: #fff; color: var(--pm-ink-2); font-weight: 600; font-size: .9rem; box-shadow: var(--pm-shadow-sm); transition: all .2s; }
.tg-chip span { font-size: .75rem; color: var(--pm-muted); background: #f1f3f9; padding: .05rem .45rem; border-radius: 999px; }
.tg-chip:hover { border-color: #c7d2fe; color: var(--pm-ink); }
.tg-chip.is-active { background: var(--pm-ink); border-color: var(--pm-ink); color: #fff; }
.tg-chip.is-active span { background: rgba(255,255,255,.18); color: #fff; }
.tg-grid { display: grid; gap: 22px; grid-template-columns: repeat(auto-fill, minmax(min(280px, 100%), 1fr)); }
.tg-card { display: flex; flex-direction: column; border-radius: var(--pm-radius-lg); background: #fff; border: 1px solid var(--pm-line); box-shadow: var(--pm-shadow); overflow: hidden; transition: transform .3s var(--pm-ease), box-shadow .3s; }
.tg-card:hover { transform: translateY(-4px); box-shadow: var(--pm-shadow-lg); }
.tg-card[hidden] { display: none; }
.tg-shot { position: relative; display: block; aspect-ratio: 16 / 10; overflow: hidden; background: #eef0f6; border-bottom: 1px solid var(--pm-line); }
.tg-shot img { width: 100%; height: 100%; object-fit: cover; object-position: top; transition: transform .8s var(--pm-ease); }
.tg-card:hover .tg-shot img { transform: scale(1.04); }
.tg-open { position: absolute; right: 12px; bottom: 12px; padding: 6px 12px; border-radius: 999px; background: rgba(15,23,42,.85); color: #fff; font-size: .8rem; font-weight: 600; opacity: 0; transform: translateY(6px); transition: .3s var(--pm-ease); }
.tg-card:hover .tg-open, .tg-shot:focus-visible .tg-open { opacity: 1; transform: none; }
.tg-body { padding: 18px 18px 16px; display: flex; flex-direction: column; gap: .5rem; flex: 1; }
.tg-title { display: flex; align-items: center; justify-content: space-between; gap: .5rem; }
.tg-title h3 { font-size: 1.08rem; margin: 0; }
.tg-badge { font-size: .7rem; font-weight: 700; letter-spacing: .04em; padding: .2rem .55rem; border-radius: 999px; color: #6d28d9; background: #f3e8ff; }
.tg-body p { color: var(--pm-muted); font-size: .92rem; margin: 0; }
.tg-actions { margin-top: auto; padding-top: .4rem; display: flex; justify-content: space-between; align-items: center; font-weight: 600; font-size: .9rem; }
.tg-actions a { text-decoration: none; min-height: 32px; display: inline-flex; align-items: center; }
.tg-actions a:first-child { color: var(--pm-ink-2); }
.tg-use { color: var(--pm-primary); }

/* Story spotlight */
.mk-spotlight { display: grid; gap: 40px; align-items: center; padding: clamp(28px, 5vw, 56px); border-radius: 28px; background: linear-gradient(135deg, #0f1020, #1e1b4b); color: #c7d2fe; overflow: hidden; position: relative; }
.mk-spotlight h2 { color: #fff; font-size: clamp(1.8rem, 4vw, 2.6rem); letter-spacing: -.035em; line-height: 1.1; margin: .5rem 0 1rem; }
.mk-spotlight p { color: #c7d2fe; font-size: 1.05rem; }
.mk-checks { list-style: none; padding: 0; margin: 1.25rem 0 1.75rem; display: grid; gap: .6rem; }
.mk-checks li { display: flex; gap: .6rem; color: #e0e7ff; }
.mk-checks li::before { content: "✓"; flex: 0 0 22px; height: 22px; display: grid; place-items: center; border-radius: 50%; background: rgba(255,255,255,.12); font-size: .75rem; font-weight: 700; }
.mk-spot-shots { position: relative; min-height: 260px; }
.mk-spot-shots img { position: absolute; width: 78%; border-radius: 14px; box-shadow: 0 30px 60px -20px rgba(0,0,0,.7); border: 1px solid rgba(255,255,255,.1); }
.mk-spot-shots img:first-child { left: 0; top: 0; transform: rotate(-3deg); }
.mk-spot-shots img:last-child { right: 0; bottom: 0; transform: rotate(3deg); }
@media (min-width: 992px) { .mk-spotlight { grid-template-columns: 1fr 1.1fr; } .mk-spot-shots { min-height: 380px; } }

/* FAQ */
.mk-faq { max-width: 780px; margin: 0 auto; display: grid; gap: 12px; }
.mk-faq details { border-radius: 14px; background: #fff; border: 1px solid var(--pm-line); box-shadow: var(--pm-shadow-sm); transition: box-shadow .2s, border-color .2s; }
.mk-faq details[open] { border-color: #c7d2fe; box-shadow: var(--pm-shadow); }
.mk-faq summary { list-style: none; cursor: pointer; padding: 18px 52px 18px 20px; font-weight: 600; position: relative; }
.mk-faq summary::-webkit-details-marker { display: none; }
.mk-faq summary::after { content: "+"; position: absolute; right: 18px; top: 50%; transform: translateY(-50%); width: 26px; height: 26px; display: grid; place-items: center; border-radius: 50%; background: #f1f3f9; color: var(--pm-ink-2); font-weight: 500; transition: transform .25s; }
.mk-faq details[open] summary::after { content: "–"; background: var(--pm-primary-soft); color: var(--pm-primary); }
.mk-faq p { padding: 0 20px 18px; margin: 0; color: var(--pm-muted); }
.mk-faq code { color: var(--pm-primary); }

/* Final CTA */
.mk-final { position: relative; overflow: hidden; text-align: center; padding: clamp(48px, 8vw, 88px) 24px; border-radius: 28px; color: #fff; background: linear-gradient(135deg, #4f46e5, #7c3aed 55%, #c026d3); box-shadow: 0 40px 80px -40px rgba(79,70,229,.8); }
.mk-final .mk-mesh::before { background: rgba(255,255,255,.35); opacity: .3; }
.mk-final .mk-mesh::after { background: #f0abfc; opacity: .35; }
.mk-final h2 { position: relative; color: #fff; font-size: clamp(1.9rem, 4.6vw, 3rem); letter-spacing: -.035em; line-height: 1.08; margin-bottom: .8rem; }
.mk-final p { position: relative; color: #e0e7ff; font-size: 1.1rem; margin: 0 auto 1.8rem; max-width: 520px; }
.mk-final .btn { position: relative; }

/* ---------- Themes page ---------- */
.mk-page-hero { position: relative; overflow: hidden; padding: clamp(48px, 8vw, 88px) 0 clamp(28px, 4vw, 40px); text-align: center; background: linear-gradient(#fff, #fafaff); }
.mk-page-hero h1 { position: relative; font-size: clamp(2.2rem, 5.6vw, 3.6rem); letter-spacing: -.04em; font-weight: 800; line-height: 1.05; margin: .6rem 0 1rem; }
.mk-page-hero p { position: relative; color: var(--pm-muted); font-size: 1.12rem; max-width: 620px; margin: 0 auto; }

/* ---------- Legal pages ---------- */
.legal { max-width: 760px; margin: 0 auto; padding: clamp(40px, 6vw, 72px) 0; }
.legal h1 { font-size: clamp(2rem, 4.6vw, 2.8rem); letter-spacing: -.035em; font-weight: 800; }
.legal .updated { color: var(--pm-muted); margin-bottom: 2rem; }
.legal h2 { font-size: 1.25rem; margin: 2.2rem 0 .7rem; }
.legal p, .legal li { color: var(--pm-ink-2); line-height: 1.75; }
.legal ul { padding-left: 1.2rem; }
.legal .note { padding: 14px 16px; border-radius: 12px; background: #fffbeb; border: 1px solid #fde68a; color: #92400e; font-size: .92rem; }

/* ---------- Status pages (404/500) ---------- */
.status-page { min-height: 60vh; display: grid; place-items: center; text-align: center; padding: 48px 0; }
.status-code { font-size: clamp(5rem, 18vw, 9rem); font-weight: 800; letter-spacing: -.06em; line-height: 1; background: var(--pm-gradient); -webkit-background-clip: text; background-clip: text; color: transparent; }
.status-page h1 { font-size: 1.6rem; margin: .5rem 0 .6rem; }
.status-page p { color: var(--pm-muted); max-width: 440px; margin: 0 auto 1.6rem; }

@media (prefers-reduced-motion: reduce) {
    .mk-mesh::before, .mk-mesh::after, .mk-wall-row, .mk-phone, .mk-float, .mk-live i, .mk-caret,
    .mk-hero h1, .mk-sub, .mk-cta, .mk-trust, .mk-eyebrow, .mk-product { animation: none !important; }
    .mk-feature, .tg-card, .tg-shot img { transition: none; }
}

/* ---------------- Two paths: portfolio or resume ---------------- */
.mk-paths { display: grid; grid-template-columns: minmax(0, 1fr); gap: .8rem; max-width: 760px; margin: 0 auto; text-align: left; animation: mk-up .9s var(--pm-ease) .22s both; }
@media (min-width: 640px) { .mk-paths { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
.mk-path { position: relative; display: grid; grid-template-columns: auto minmax(0, 1fr); grid-template-areas: "icon body" "icon cta"; column-gap: .9rem; row-gap: .55rem;
    padding: 1.05rem 1.15rem; border-radius: 18px; background: #fff; border: 1px solid var(--pm-line); box-shadow: var(--pm-shadow); color: var(--pm-ink); text-decoration: none;
    transition: transform .25s var(--pm-ease), box-shadow .25s, border-color .25s; }
.mk-path:hover { transform: translateY(-3px); box-shadow: var(--pm-shadow-lg); border-color: #c7cbf5; color: var(--pm-ink); }
.mk-path-icon { grid-area: icon; width: 46px; height: 46px; border-radius: 13px; display: grid; place-items: center; }
.mk-path-icon svg { width: 22px; height: 22px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.mk-path-body { grid-area: body; display: flex; flex-direction: column; gap: .2rem; }
.mk-path-body strong { font-size: 1.08rem; letter-spacing: -.01em; display: flex; align-items: center; gap: .45rem; flex-wrap: wrap; }
.mk-path-body > span { color: var(--pm-muted); font-size: .92rem; line-height: 1.45; }
.mk-path-tag { font-style: normal; font-size: .68rem; font-weight: 700; letter-spacing: .04em; padding: .15rem .5rem; border-radius: 999px; background: #ecfdf5; color: #047857; border: 1px solid #a7f3d0; }
.mk-path-cta { grid-area: cta; font-weight: 600; font-size: .94rem; color: var(--pm-primary); }
.mk-path-cta i { font-style: normal; display: inline-block; transition: transform .2s var(--pm-ease); }
.mk-path:hover .mk-path-cta i { transform: translateX(4px); }
.mk-path-resume { background: linear-gradient(160deg, #fff 55%, #f0fdf4); }
.mk-path .tone-indigo { background: #eef2ff; color: #4f46e5; }
.mk-path .tone-green { background: #ecfdf5; color: #059669; }

/* Floating resume page on the hero mock (desktop only) */
.mk-resume-float { display: none; }
@media (min-width: 1100px) {
    .mk-resume-float { display: block; position: absolute; left: -64px; top: 150px; width: 168px; z-index: 3; transform: rotate(-4deg); animation: mk-float 8s ease-in-out infinite; animation-delay: -2s; }
    .mk-resume-float img { display: block; width: 100%; height: auto; border-radius: 6px; background: #fff; box-shadow: 0 30px 60px -20px rgba(15,23,42,.45), 0 0 0 1px rgba(15,23,42,.06); }
    .mk-ats-badge { position: absolute; right: -18px; top: 18px; padding: 6px 10px; border-radius: 12px; background: #fff; border: 1px solid #bbf7d0; box-shadow: var(--pm-shadow-lg); font-size: .76rem; color: #166534; font-weight: 600; white-space: nowrap; }
    .mk-ats-badge b { font-size: 1rem; color: #16a34a; margin-right: 2px; }
}

/* ---------------- Resume section ---------------- */
.mk-resume { background: linear-gradient(180deg, #fafaff, #f3f6ff 60%, #fafaff); }
.mk-resume-grid { display: grid; gap: clamp(32px, 5vw, 64px); align-items: center; }
@media (min-width: 992px) { .mk-resume-grid { grid-template-columns: 1fr 1.05fr; } }
.mk-resume-copy h2 { font-size: clamp(1.9rem, 4.2vw, 2.8rem); letter-spacing: -.035em; line-height: 1.08; margin: .4rem 0 1rem; }
.mk-resume-copy > p { color: var(--pm-ink-2); font-size: 1.06rem; }
.mk-resume-points { list-style: none; padding: 0; margin: 1.4rem 0 1.8rem; display: grid; gap: .8rem; }
.mk-resume-points li { position: relative; padding-left: 2rem; color: var(--pm-ink-2); line-height: 1.5; }
.mk-resume-points li::before { content: "✓"; position: absolute; left: 0; top: .1rem; width: 1.35rem; height: 1.35rem; border-radius: 50%; display: grid; place-items: center; font-size: .72rem; font-weight: 800; background: #dcfce7; color: #15803d; }
.mk-resume-points b { color: var(--pm-ink); }
.mk-resume-visual { position: relative; min-height: clamp(360px, 52vw, 520px); }
.mk-resume-stack { position: absolute; inset: 0; }
.mk-resume-stack img { position: absolute; width: min(56%, 300px); height: auto; border-radius: 6px; background: #fff; box-shadow: 0 30px 60px -24px rgba(30,27,75,.45), 0 0 0 1px rgba(15,23,42,.05); transition: transform .5s var(--pm-ease); }
.mk-resume-stack img:nth-child(1) { left: 2%; top: 8%; transform: rotate(-7deg); }
.mk-resume-stack img:nth-child(2) { right: 2%; top: 4%; transform: rotate(6deg); }
.mk-resume-stack img:nth-child(3) { left: 50%; top: 0; transform: translateX(-50%); z-index: 2; }
.mk-resume-visual:hover .mk-resume-stack img:nth-child(1) { transform: rotate(-10deg) translateX(-12px); }
.mk-resume-visual:hover .mk-resume-stack img:nth-child(2) { transform: rotate(9deg) translateX(12px); }
.mk-ats-mock { position: absolute; z-index: 3; left: 50%; bottom: 0; transform: translateX(-50%); width: min(92%, 380px); display: flex; gap: .9rem; align-items: center;
    padding: .9rem 1rem; border-radius: 16px; background: rgba(255,255,255,.92); backdrop-filter: blur(10px); border: 1px solid var(--pm-line); box-shadow: var(--pm-shadow-lg); }
.mk-ats-ring { --p: 100; flex-shrink: 0; width: 62px; height: 62px; border-radius: 50%; display: grid; place-items: center; background: conic-gradient(#16a34a calc(var(--p) * 1%), #e5e7eb 0); }
.mk-ats-ring span { width: 48px; height: 48px; border-radius: 50%; background: #fff; display: grid; place-items: center; font-weight: 800; font-size: 1.05rem; color: var(--pm-ink); }
.mk-ats-title { font-size: .72rem; text-transform: uppercase; letter-spacing: .08em; color: var(--pm-muted); margin-bottom: .25rem; }
.mk-ats-title b { color: #16a34a; }
.mk-ats-row { font-size: .82rem; color: #166534; line-height: 1.5; }
.mk-ats-kw { display: flex; flex-wrap: wrap; gap: .25rem; margin-top: .35rem; }
.mk-ats-kw i { font-style: normal; font-size: .7rem; padding: .1rem .45rem; border-radius: 999px; background: #ecfdf5; color: #047857; }
@media (max-width: 575.98px) { .mk-ats-row:nth-child(4) { display: none; } }
@media (prefers-reduced-motion: reduce) { .mk-paths, .mk-resume-float { animation: none !important; } .mk-resume-stack img { transition: none; } }

/* ---------------- Resume templates page ---------------- */
.rt-hero { padding-bottom: clamp(32px, 6vw, 64px); }
.rt-h1 { font-size: clamp(2.3rem, 6.4vw, 4.4rem) !important; }
.rt-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(250px, 100%), 1fr)); gap: 1.25rem; }
.rt-card { display: flex; flex-direction: column; border-radius: 20px; background: #fff; border: 1px solid var(--pm-line); box-shadow: var(--pm-shadow); overflow: hidden; transition: transform .25s var(--pm-ease), box-shadow .25s; }
.rt-card:hover { transform: translateY(-4px); box-shadow: var(--pm-shadow-lg); }
.rt-thumb { display: block; padding: 18px 18px 0; background: linear-gradient(180deg, #eef1fa, #e6e9f3); height: 330px; overflow: hidden; }
.rt-thumb img { display: block; width: 100%; height: auto; border-radius: 4px 4px 0 0; box-shadow: 0 12px 30px -12px rgba(15,23,42,.35); transition: transform .6s var(--pm-ease); }
.rt-card:hover .rt-thumb img { transform: translateY(-16px); }
.rt-body { padding: 1.1rem 1.2rem 1.3rem; display: flex; flex-direction: column; gap: .4rem; flex: 1; }
.rt-body h3 { font-size: 1.2rem; margin: 0; }
.rt-body p { color: var(--pm-muted); font-size: .93rem; flex: 1; }
@media (min-width: 992px) { .rt-why { grid-template-columns: repeat(4, minmax(0, 1fr)) !important; } .rt-why .mk-feature { grid-column: auto !important; } }
.mk-hero h1.mk-h1-duo { font-size: clamp(2.2rem, 6vw, 4.6rem); }
.mk-hero-copy:has(.mk-h1-duo) { max-width: 1000px; }
.mk-feature-link { color: inherit; text-decoration: none; display: block; } .mk-feature-link:hover { color: inherit; }
