/* =========================================================================
 * GRF Marketing — shared layout + responsive system
 * Mobile-first. Breakpoints: 640 (sm), 900 (md), 1200 (lg)
 * All sections snap to one column under 900.
 * ========================================================================= */

.mk {
  color: var(--c-fog-2);
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

.mk * { box-sizing: border-box; }

.mk section {
  position: relative;
  padding: 40px 24px;
  overflow: hidden;
}

@media (min-width: 900px) {
  .mk section { padding: 56px 48px; }
}

@media (min-width: 1200px) {
  .mk section { padding: 64px 72px; }
}

.mk .container {
  max-width: 1440px;
  margin: 0 auto;
  position: relative;
  width: 100%;
}

/* ---------- TYPE SYSTEM (matches hero) ---------------------------------- */

.mk h1, .mk h2, .mk h3, .mk h4 {
  font-family: var(--font-display);
  font-weight: 500;
  color: var(--c-bone);
  letter-spacing: -0.03em;
  line-height: 1.02;
  text-wrap: balance;
  margin: 0;
}

.mk h2.section-h {
  font-size: clamp(34px, 5vw, 64px);
  letter-spacing: -0.035em;
  line-height: 1;
  max-width: 18ch;
  margin-bottom: 24px;
}

/* Editorial italic emphasis word inside headings — same as hero */
.mk h2.section-h em,
.mk em.serif {
  font-family: var(--font-serif);
  font-style: italic;
  font-weight: 400;
  color: var(--c-fog-3);
  letter-spacing: -0.02em;
  padding: 0 0.04em;
}

.mk h2.section-h em.accent {
  background: linear-gradient(90deg, var(--c-orange), var(--c-sand), var(--c-orange));
  background-size: 200% auto;
  -webkit-background-clip: text; background-clip: text;
  color: transparent;
  animation: mk-shimmer 7s ease-in-out infinite;
}

@keyframes mk-shimmer {
  0%, 100% { background-position: 200% center; }
  50%      { background-position: -100% center; }
}

.mk .lede {
  font-family: var(--font-body);
  font-size: clamp(15px, 1.3vw, 18px);
  line-height: 1.55;
  color: var(--c-fog-2);
  max-width: 58ch;
  font-weight: 400;
}

.mk p { margin: 0; text-wrap: pretty; }

/* Section eyebrow */
.mk .eyebrow {
  display: inline-block;
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.22em;
  color: var(--c-orange);
  text-transform: uppercase;
  margin-bottom: 18px;
}
.mk .eyebrow::before { content: '/ '; opacity: 0.55; }

/* Left rail label */
.mk .rail-label {
  display: none; /* opt-in only — currently hidden everywhere to keep content the focus */
}

/* ---------- HEADER + LEDE GRID -------------------------------------------- */
/* Section heads use a 2-up that collapses on mobile */
.mk .head-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 16px;
  align-items: end;
  margin-bottom: 48px;
}

@media (min-width: 900px) {
  .mk .head-grid {
    grid-template-columns: 5fr 7fr;
    gap: 64px;
    margin-bottom: 64px;
  }
}

/* ---------- N-up grid that collapses ------------------------------------- */
.mk .n-up {
  display: grid;
  grid-template-columns: 1fr;
  gap: 16px;
  border: 1px solid var(--c-line-2);
}
.mk .n-up > * {
  border-top: 1px solid var(--c-line-1);
}
.mk .n-up > *:first-child { border-top: 0; }

@media (min-width: 700px) {
  .mk .n-up {
    grid-template-columns: 1fr 1fr;
    gap: 0;
  }
  .mk .n-up > * { border-top: 0; }
  .mk .n-up > *:nth-child(2n) { border-left: 1px solid var(--c-line-1); }
}

@media (min-width: 760px) {
  .mk .n-up.n-up-3 { grid-template-columns: repeat(3, 1fr); }
  .mk .n-up.n-up-3 > * { border-left: 1px solid var(--c-line-1); border-top: 0; }
  .mk .n-up.n-up-3 > *:first-child { border-left: 0; }
}

@media (min-width: 1000px) {
  .mk .n-up.n-up-4 { grid-template-columns: repeat(4, 1fr); }
  .mk .n-up.n-up-4 > * { border-left: 1px solid var(--c-line-1); }
  .mk .n-up.n-up-4 > *:first-child { border-left: 0; }
}

/* ---------- TWO-COL stack ------------------------------------------------- */
.mk .two-col {
  display: grid;
  grid-template-columns: 1fr;
  gap: 24px;
  align-items: start;
}

@media (min-width: 900px) {
  .mk .two-col {
    grid-template-columns: 1fr 1fr;
    gap: 24px;
  }
  .mk .two-col.left-heavy   { grid-template-columns: 5fr 7fr; gap: 64px; }
  .mk .two-col.right-heavy  { grid-template-columns: 7fr 5fr; gap: 64px; }
  .mk .two-col.balance      { grid-template-columns: 1fr 1fr; gap: 48px; }
}

/* ---------- Reveal helper ------------------------------------------------- */
.mk-reveal { opacity: 0; transform: translateY(20px); transition: opacity 900ms cubic-bezier(0.16,1,0.3,1), transform 900ms cubic-bezier(0.16,1,0.3,1); }
.mk-reveal.is-in { opacity: 1; transform: none; }

/* ---------- Grid bg, scan line, etc ------------------------------------- */
.mk .grid-bg {
  position: absolute; inset: 0; pointer-events: none;
  background-image:
    linear-gradient(to right, rgba(255,255,255,0.035) 1px, transparent 1px),
    linear-gradient(to bottom, rgba(255,255,255,0.035) 1px, transparent 1px);
  background-size: 48px 48px;
  mask-image: radial-gradient(ellipse at center, #000 30%, transparent 80%);
}

.mk .scan-line {
  position: absolute; left: 0; right: 0; top: 0;
  height: 1px;
  background: linear-gradient(to right, transparent, var(--c-orange) 50%, transparent);
  opacity: 0.6;
  animation: mk-scan-y 9s linear infinite;
}

@keyframes mk-scan-y {
  0%   { transform: translateY(-20%); opacity: 0; }
  20%  { opacity: 0.7; }
  100% { transform: translateY(120%); opacity: 0; }
}

/* ---------- Buttons (consistent across all sections) -------------------- */
.mk .btn {
  display: inline-flex; align-items: center; gap: 10px;
  height: 48px; padding: 0 22px;
  font-family: var(--font-body); font-size: 14px; font-weight: 500;
  letter-spacing: 0.04em;
  white-space: nowrap;
  flex-shrink: 0;
  border: 1px solid var(--c-line-3);
  background: rgba(7,10,18,0.55);
  color: var(--c-bone);
  border-radius: 2px;
  cursor: pointer;
  transition: all 240ms cubic-bezier(0.4,0,0.2,1);
  text-decoration: none;
}
.mk .btn:hover { border-color: rgba(255,255,255,0.32); }

.mk .btn--primary {
  background: var(--c-orange-deep);
  border-color: var(--c-orange);
  color: #fff;
}
.mk .btn--primary:hover {
  background: var(--c-orange);
  box-shadow: 0 0 0 1px rgba(255,106,26,0.35), 0 0 30px -8px var(--c-orange);
}

.mk .btn--ghost { border-color: transparent; background: transparent; color: var(--c-fog-2); }
.mk .btn--ghost:hover { color: var(--c-bone); background: rgba(255,255,255,0.03); }

/* ---------- Nav (responsive) -------------------------------------------- */
.mk-nav-links { display: none; }
.mk-nav-actions-desktop { display: none; }
.mk-nav-burger { display: inline-flex; }

@media (min-width: 900px) {
  .mk-nav-links   { display: flex; }
  .mk-nav-actions-desktop { display: inline-flex; }
  .mk-nav-burger  { display: none; }
}

/* ---------- Hide on small ----------------------------------------------- */
.mk-hide-sm { display: none; }
.mk-hide-md { display: none; }
@media (min-width: 700px)  { .mk-hide-sm { display: revert; } }
@media (min-width: 1000px) { .mk-hide-md { display: revert; } }

/* ---------- Scrollbar ---------------------------------------------------- */
.mk ::-webkit-scrollbar { width: 6px; height: 6px; }
.mk ::-webkit-scrollbar-track { background: var(--c-ink-0); }
.mk ::-webkit-scrollbar-thumb { background: var(--c-ink-4); border-radius: 3px; }
.mk ::-webkit-scrollbar-thumb:hover { background: var(--c-orange); }

/* ---------- Image slots (user-fillable photos) — dark-theme styling ------ */
.mk image-slot::part(frame) { background: rgba(255,255,255,0.025); }
.mk image-slot::part(ring)  { border-color: rgba(255,255,255,0.20); }
.mk image-slot::part(empty) { color: var(--c-fog-1); }
