/* ============================================================
   Modernize Marketing — global stylesheet
   Self-hosted fonts + design tokens + reset + utilities.
   Design tokens are the source of truth from the Modernize
   Marketing Design System (.claude/skills/modernize-marketing-design).
   Single self-contained file — no CDN, no @import.
   ============================================================ */

/* ---------- Self-hosted webfonts ---------- */
/* Manrope + Space Grotesk are variable fonts (one file covers all weights).
   Space Mono is static (400 / 700). */
@font-face {
  font-family: "Manrope";
  font-style: normal;
  font-weight: 400 800;
  font-display: swap;
  src: url("assets/fonts/manrope-variable.woff2") format("woff2");
}
@font-face {
  font-family: "Space Grotesk";
  font-style: normal;
  font-weight: 400 700;
  font-display: swap;
  src: url("assets/fonts/space-grotesk-variable.woff2") format("woff2");
}
@font-face {
  font-family: "Space Mono";
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url("assets/fonts/space-mono-400.woff2") format("woff2");
}
@font-face {
  font-family: "Space Mono";
  font-style: normal;
  font-weight: 700;
  font-display: swap;
  src: url("assets/fonts/space-mono-700.woff2") format("woff2");
}

/* ---------- Color tokens ---------- */
:root {
  --ink-950: #0b0c0f;
  --ink-900: #14161b;
  --ink-800: #21242c;
  --ink-700: #343842;
  --ink-600: #4c515d;
  --ink-500: #6b7280;
  --ink-400: #9aa1ad;
  --ink-300: #c4c9d2;
  --ink-200: #e0e3e9;
  --ink-100: #eef0f3;
  --ink-50:  #f6f7f9;
  --paper:   #ffffff;
  --paper-warm: #fbfbf9;

  --blue-700: #1c37b8;
  --blue-600: #2547f0;
  --blue-500: #3d5cf5;
  --blue-400: #6a82f8;
  --blue-200: #c3ccfc;
  --blue-100: #e6ebff;
  --blue-50:  #f2f5ff;

  --green-600: #0e9f6e;
  --green-100: #d6f3e6;
  --amber-600: #c77700;
  --amber-100: #fbecc8;
  --red-600:   #e02b3f;
  --red-100:   #fbdde1;

  --bg-page:       var(--paper-warm);
  --bg-surface:    var(--paper);
  --bg-subtle:     var(--ink-50);
  --bg-muted:      var(--ink-100);
  --bg-inverse:    var(--ink-950);

  --text-primary:   var(--ink-950);
  --text-secondary: var(--ink-600);
  --text-muted:     var(--ink-500);
  --text-inverse:   var(--paper);
  --text-brand:     var(--blue-600);

  --border-subtle:  var(--ink-200);
  --border-default: var(--ink-300);
  --border-strong:  var(--ink-400);

  --accent:       var(--blue-600);
  --accent-hover: var(--blue-700);
  --accent-soft:  var(--blue-100);
  --accent-tint:  var(--blue-50);

  --success: var(--green-600);
  --warning: var(--amber-600);
  --danger:  var(--red-600);

  --focus-ring: color-mix(in srgb, var(--blue-600) 45%, transparent);

  /* ---------- Typography tokens ---------- */
  --font-display: "Space Grotesk", "Segoe UI", system-ui, sans-serif;
  --font-body: "Manrope", system-ui, -apple-system, sans-serif;
  --font-mono: "Space Mono", ui-monospace, "SF Mono", Menlo, monospace;

  --text-xs:   0.75rem;
  --text-sm:   0.875rem;
  --text-base: 1rem;
  --text-md:   1.125rem;
  --text-lg:   1.375rem;
  --text-xl:   1.75rem;
  --text-2xl:  2.25rem;
  --text-3xl:  3rem;
  --text-4xl:  4rem;
  --text-5xl:  5.25rem;

  --fw-regular: 400;
  --fw-medium: 500;
  --fw-semibold: 600;
  --fw-bold: 700;
  --fw-black: 800;

  --lh-tight: 1.05;
  --lh-snug: 1.2;
  --lh-normal: 1.5;
  --lh-relaxed: 1.65;

  --ls-tight: -0.03em;
  --ls-snug: -0.01em;
  --ls-normal: 0;
  --ls-wide: 0.08em;
  --ls-wider: 0.14em;

  /* ---------- Spacing / layout tokens ---------- */
  --space-0: 0;
  --space-1: 0.25rem;
  --space-2: 0.5rem;
  --space-3: 0.75rem;
  --space-4: 1rem;
  --space-5: 1.5rem;
  --space-6: 2rem;
  --space-7: 3rem;
  --space-8: 4rem;
  --space-9: 6rem;
  --space-10: 8rem;

  --container-sm: 640px;
  --container-md: 880px;
  --container-lg: 1120px;
  --container-xl: 1320px;

  --section-pad-y: var(--space-9);
  --gutter: var(--space-5);

  /* ---------- Radii / borders / shadows / motion ---------- */
  --radius-xs: 4px;
  --radius-sm: 8px;
  --radius-md: 12px;
  --radius-lg: 16px;
  --radius-xl: 24px;
  --radius-pill: 999px;

  --border-width: 1px;
  --border-hairline: 1px solid var(--border-subtle);

  --shadow-xs: 0 1px 2px rgba(11, 12, 15, 0.05);
  --shadow-sm: 0 1px 3px rgba(11, 12, 15, 0.07), 0 1px 2px rgba(11, 12, 15, 0.04);
  --shadow-md: 0 4px 12px rgba(11, 12, 15, 0.08), 0 2px 4px rgba(11, 12, 15, 0.04);
  --shadow-lg: 0 12px 32px rgba(11, 12, 15, 0.10), 0 4px 8px rgba(11, 12, 15, 0.05);
  --shadow-focus: 0 0 0 3px var(--focus-ring);

  --ease-out: cubic-bezier(0.22, 1, 0.36, 1);
  --ease-in-out: cubic-bezier(0.65, 0, 0.35, 1);
  --dur-fast: 120ms;
  --dur-base: 200ms;
  --dur-slow: 320ms;
}

/* ---------- Reset / base ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  font-family: var(--font-body);
  color: var(--text-primary);
  background: var(--bg-page);
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
a { text-decoration: none; color: inherit; }
img { max-width: 100%; }
h1, h2, h3, p { margin: 0; }
:focus-visible { outline: none; box-shadow: var(--shadow-focus); border-radius: var(--radius-xs); }

/* ---------- Logo ---------- */
.mm-logo { display: block; width: auto; object-fit: contain; }

/* ---------- Buttons (ported from design-system Button.jsx) ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  font-family: var(--font-body);
  font-weight: var(--fw-semibold);
  letter-spacing: var(--ls-snug);
  line-height: 1;
  border-radius: var(--radius-sm);
  cursor: pointer;
  white-space: nowrap;
  border: 1px solid transparent;
  transition: background var(--dur-fast) var(--ease-out),
              transform var(--dur-fast) var(--ease-out),
              border-color var(--dur-fast) var(--ease-out);
}
.btn:hover { transform: translateY(-1px); }
.btn-lg { height: 54px; padding: 0 28px; font-size: var(--text-md); }
.btn-primary { background: var(--accent); color: var(--text-inverse); }
.btn-primary:hover { background: var(--accent-hover); }
.btn-secondary { background: var(--bg-surface); color: var(--text-primary); border-color: var(--border-default); }
.btn-secondary:hover { background: var(--bg-subtle); border-color: var(--border-strong); }

/* ---------- Icon wrapper ---------- */
.mm-ico { display: inline-flex; align-items: center; justify-content: center; flex-shrink: 0; }
.mm-ico svg { display: block; width: 100%; height: 100%; }

/* ---------- Sticky nav ---------- */
.mm-nav {
  position: sticky;
  top: 0;
  z-index: 50;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 18px 32px;
  background: rgba(251, 251, 249, 0.82);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--border-subtle);
}
.mm-nav a { transition: color var(--dur-fast) var(--ease-out); }
.mm-nav .mm-nav-link { font-size: 14px; font-weight: 500; color: var(--text-secondary); }
.mm-nav .mm-nav-link:hover { color: var(--text-primary); }
.mm-nav .mm-nav-email {
  font-family: var(--font-mono);
  font-size: 13px;
  font-weight: 700;
  color: var(--accent);
  letter-spacing: 0.02em;
}

/* ---------- Marquee ---------- */
.mm-marquee {
  display: flex;
  width: max-content;
  flex-wrap: nowrap;
  white-space: nowrap;
  animation: mm-scroll 30s linear infinite;
  will-change: transform;
}
.mm-mgroup { display: flex; flex-shrink: 0; align-items: center; }
.mm-mitem {
  font-family: var(--font-display);
  font-size: 26px;
  font-weight: 600;
  letter-spacing: -0.02em;
  color: var(--text-primary);
  padding: 0 28px;
  display: inline-flex;
  align-items: center;
  gap: 28px;
}
@keyframes mm-scroll {
  from { transform: translateX(0); }
  to   { transform: translateX(-50%); }
}
@media (prefers-reduced-motion: reduce) {
  .mm-marquee { animation: none; }
}

/* ---------- Service rows (hover = ink band) ---------- */
.mm-srv {
  display: flex;
  align-items: center;
  gap: 28px;
  padding: 30px 8px;
  border-top: 1px solid var(--border-subtle);
  transition: background var(--dur-base) var(--ease-out);
}
.mm-srv-num { font-family: var(--font-mono); font-size: 14px; font-weight: 700; color: var(--text-muted); width: 34px; flex-shrink: 0; }
.mm-srv-icon {
  width: 52px; height: 52px; border-radius: 14px;
  background: var(--accent-soft); color: var(--accent);
  display: inline-flex; align-items: center; justify-content: center; flex-shrink: 0;
  transition: background var(--dur-base) var(--ease-out), color var(--dur-base) var(--ease-out);
}
.mm-srv-title { font-family: var(--font-display); font-size: clamp(24px, 3vw, 34px); font-weight: 600; letter-spacing: -0.02em; line-height: 1.1; }
.mm-srv-body { font-size: 16px; color: var(--text-secondary); margin-top: 6px; max-width: 60ch; line-height: 1.45; }
.mm-srv-arrow { color: #fff; flex-shrink: 0; opacity: 0; transform: translateX(-8px); transition: opacity var(--dur-base) var(--ease-out), transform var(--dur-base) var(--ease-out); }
.mm-srv:hover { background: var(--ink-950); }
.mm-srv:hover .mm-srv-title { color: #fff; }
.mm-srv:hover .mm-srv-num { color: var(--blue-400); }
.mm-srv:hover .mm-srv-body { color: var(--ink-300); }
.mm-srv:hover .mm-srv-icon { background: var(--blue-600); color: #fff; }
.mm-srv:hover .mm-srv-arrow { transform: translateX(0); opacity: 1; }

/* ---------- Layout helpers ---------- */
.mm-container { max-width: var(--container-lg); margin: 0 auto; }
.mm-contact-card a { transition: opacity var(--dur-fast) var(--ease-out); }
.mm-contact-card a:hover { opacity: 0.8; }
.mm-contact-val {
  font-family: var(--font-display);
  font-size: clamp(19px, 4.5vw, 26px);
  font-weight: 600;
  letter-spacing: -0.01em;
  overflow-wrap: anywhere;
}

/* ---------- Responsive ---------- */
@media (max-width: 640px) {
  .mm-nav { padding: 14px 20px; }
  .mm-nav .mm-nav-links { gap: 16px !important; }
  .mm-srv { gap: 16px; padding: 24px 4px; }
  .mm-srv-icon { width: 44px; height: 44px; }
}
/* Long email in the nav crowds out the logo on phones — drop it there;
   the Contact link + contact band still expose the address. */
@media (max-width: 600px) {
  .mm-nav .mm-nav-email { display: none; }
}
